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,
optionalDeclaration
Swift
public var backgroundColor: SFWColor? -
Background image,
optionalDeclaration
Swift
public var backgroundImage: SFWImage? -
Background gradient color,
optionalDeclaration
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
contentsContents in vertical align order
backgroundColorBackground color,
optionalgradientColorBackground gradient color,,
optionalbackgroundImageBackground image,
optional -
Slice content type, currently image or text
See moreDeclaration
Swift
public enum ContentType
Slice Structure Reference