JWMenuStyleBuilder

@objcMembers
public class JWMenuStyleBuilder : NSObject, JWBuilder

The builder for JWMenuStyle.

  • Declaration

    Swift

    public typealias Output = JWMenuStyle
  • Builds a JWMenuStyle structure.

    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) -> JWMenuStyleBuilder

    Parameters

    fontColor

    The 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) -> JWMenuStyleBuilder

    Parameters

    font

    The 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) -> JWMenuStyleBuilder

    Parameters

    backgroundColor

    The color for the background in the menu.

    Return Value

    The builder, so setters can be chained.