ImagePreferences

public struct ImagePreferences

Image preferences

  • Prefered image size, required

    Declaration

    Swift

    public var preferredSize: CGSize
  • Horizontal offset in slice from the center, default value is 0

    Declaration

    Swift

    public var horizontalOffset: CGFloat
  • Vertical offset in slice from the center

    Declaration

    Swift

    public var verticalOffset: CGFloat
  • Flip the text upside down, default value is false

    Declaration

    Swift

    public var flipUpsideDown: Bool
  • Background color, optional

    Declaration

    Swift

    public var backgroundColor: SFWColor?
  • Tint color, optional

    Declaration

    Swift

    public var tintColor: SFWColor?
  • Initiates a image preferences

    Declaration

    Swift

    public init(preferredSize: CGSize,
                verticalOffset: CGFloat = 0)

    Parameters

    preferredSize

    Prefered image size, required

    verticalOffset

    Vertical offset in slice from the center, default value is 0