JWMenuStyleBuilder
@objcMembers
public class JWMenuStyleBuilder : NSObject, JWBuilder
The builder for JWMenuStyle.
-
Declaration
Swift
public typealias Output = JWMenuStyle -
Builds a
JWMenuStylestructure.Throws
throws An error if the style is not setup properly.Declaration
Swift
public func build() throws -> JWMenuStyle -
Sets the font color of text in the menu.
Declaration
Swift
@discardableResult public func fontColor(_ fontColor: UIColor) -> JWMenuStyleBuilderParameters
fontColorThe color for the text on the menu.
Return Value
The builder, so setters can be chained.
-
Sets the font of the text on the menu.
Declaration
Swift
@discardableResult public func font(_ font: UIFont) -> JWMenuStyleBuilderParameters
fontThe font to be set on the menu.
Return Value
The builder, so setters can be chained.
-
Set the color of the background in the menu.
Declaration
Swift
@discardableResult public func backgroundColor(_ backgroundColor: UIColor) -> JWMenuStyleBuilderParameters
backgroundColorThe color for the background in the menu.
Return Value
The builder, so setters can be chained.
JWMenuStyleBuilder Class Reference