FrameSpriteModel
@available(iOS 9.0, *)
public struct FrameSpriteModel : SpriteModel, Equatable
A FrameSpriteModel
holds information about a frame that should be added to an image.
-
The identifier of the
Frame
that should be added to an image.Declaration
Swift
public var identifier: String
-
This specifies the frame’s thickness, relative to the shortest side of the untransformed image. If
nil
the frame’s default value will be used.Declaration
Swift
public var scale: CGFloat?
-
This specifies the frame’s alpha value. Default is
1
.Declaration
Swift
public var alpha: CGFloat
-
The ratio that this frame was created for.
Declaration
Swift
public var ratio: CGFloat?
-
Creates a new
FrameSpriteModel
with the given identifier.Declaration
Swift
public init(identifier: String)
Parameters
identifier
The identifier of the
Frame
that should be added to an image.