OutOfActiveLevelStyle
public struct OutOfActiveLevelStyle
A struct containing information about the user location view style when the user is outside the current active level.
-
The foreground image when the user is outside the current active level. Default is nil
Declaration
Swift
public let foregroundImage: UIImage?
-
The heading image when the user is outside the current active level. Default is nil
Declaration
Swift
public let headingImage: UIImage?
-
The tint color for the foreground image when the user is outside the current active level. Default is nil
Tint color will be applied to the image only if image.renderingMode == .alwaysTemplate. If you don’t use custom images, tint color will be applied to the default layer.
Declaration
Swift
public let foregroundTintColor: UIColor?
-
The tint color for the heading image when the user is outside the current active level. Default is nil
Tint color will be applied to the image only if image.renderingMode == .alwaysTemplate. If you don’t use custom images, tint color will be applied to the default layer.
Declaration
Swift
public let headingTintColor: UIColor?
-
The alpha for user location view when the user is outside the current active level. Default is 0.5
Declaration
Swift
public let alpha: CGFloat
-
Initializes and returns a newly allocated style for the case when the user is outside the current active level with the specified parameters.
Declaration
Swift
public init( foregroundImage: UIImage? = nil, headingImage: UIImage? = nil, foregroundTintColor: UIColor? = nil, headingTintColor: UIColor? = nil, alpha: CGFloat = 0.5 )
Parameters
foregroundImage
The foreground image when the user is outside the current active level. Default is nil
headingImage
The heading image when the user is outside the current active level. Default is nil
foregroundTintColor
The tint color for the foreground image when the user is outside the current active level. Default is .gray
headingTintColor
The fill color for the arrow puck when the user is outside the current active level. Default is .blue
alpha
The alpha for User Location annotation view when the user is outside the current active level. Default is 0.5