Slice
public struct Slice
Slice object that will be drawn as a custom content
-
Contents in vertical align order
Declaration
Swift
public var contents: [ContentType]
-
Background color,
optional
Declaration
Swift
public var backgroundColor: SFWColor?
-
Background image,
optional
Declaration
Swift
public var backgroundImage: SFWImage?
-
Background gradient color,
optional
Declaration
Swift
public var gradientColor: SFGradientColor?
-
Initiates a slice object
Declaration
Swift
public init(contents: [ContentType], backgroundColor: SFWColor? = nil, gradientColor: SFGradientColor? = nil, backgroundImage: SFWImage? = nil)
Parameters
contents
Contents in vertical align order
backgroundColor
Background color,
optional
gradientColor
Background gradient color,,
optional
backgroundImage
Background image,
optional
-
Slice content type, currently image or text
See moreDeclaration
Swift
public enum ContentType