CreationKit Documentation

Structure Location​Message

public struct LocationMessage: MessageType  

Used in a MessagesViewController when it needs to show a location based message.

LocationMessage LocationMessage MessageType MessageType LocationMessage->MessageType

Conforms To

MessageType

Initializers

init(sender:​location:​sent​Date:​)

public init(sender: Sender, location: CLLocation, sentDate: Date = Date())  

Creates a LocationMessage.

Parameters

sender Sender

The sender of the message.

location CLLocation

The location to display.

Properties

sender

public var sender: Sender

message​Id

public var messageId: String = UUID().uuidString

sent​Date

public var sentDate: Date  

kind

public private(set) var kind: MessageKind

Methods

make(sender:​location:​sent​Date:​)

public static func make(sender: Sender, location: CLLocation, sentDate: Date = Date()) -> LocationMessage  

Creates a LocationMessage.

Parameters

sender Sender

The sender of the message.

location CLLocation

The location to display.