BigJuJuMapLocationProtocol
public protocol BigJuJuMapLocationProtocol : AnyObject, Identifiable, Sendable where Self.ID : Sendable
This is used to designate a location, with an attached data entity, and a handler callback.
-
The location, associated with this data point.
Declaration
Swift
var location: CLLocation { get } -
A string, identifying this item, for use in displayed popovers.
Declaration
Swift
var name: String { get } -
This is a handler that is provided by the implementation.
Declaration
Swift
var handler: @Sendable (_ inItem: any BigJuJuMapLocationProtocol) -> Void { get }Parameters
inItemThe instance of this protocol, associated with the handler.
-
textColorDefault implementationIf provided (OPTIONAL, with default being nil), the text in the popover will be displayed in this color.
Default Implementation
Default is nil (whatever the system decides -since it’s a button, it’s going to be the accent color)
Declaration
Swift
var textColor: UIColor? { get } -
textFontDefault implementationIf provided (OPTIONAL, with default being nil), the text in the popover will be displayed in this font.
Default Implementation
Default is nil (whatever the system decides)
Declaration
Swift
var textFont: UIFont? { get } -
callHandler()Default implementationThis simply calls the handler, in whatever way is implemented. OPTIONAL: Default calls the handler in the main thread, with this instance as its parameter.
Default Implementation
This just calls the handler in the main thread, with this instance as its parameter.
Declaration
Swift
func callHandler()
View on GitHub