FUIMapSnapshotFormCell
@MainActor
public class FUIMapSnapshotFormCell : FUIBaseDrawingTableViewCell<FUIMapSnapshotContentView>
Map snapshot form cell, where the custom geometry is shown on a map-based imagery.
Developer may specify the geometry object to display, and configure the title text, status text, and accessory type.
This cell height is automatically adjusted to allow the whole content to be displayed.
Usage
let snapshotFormCell = tableView.dequeueReusableCell(withIdentifier: FUIMapSnapshotFormCell.reuseIdentifier,
for: indexPath) as! FUIMapSnapshotFormCell
snapshotFormCell.title.text = "Location"
snapshotFormCell.geometry = self.provider?.editingGeometry
if let coordinates = snapshotFormCell.coordinates {
let numOfPoints = coordinates.count
snapshotFormCell.status.text = numOfPoints > 1 ? "\(numOfPoints) Points Added" : "\(numOfPoints) Point Added"
}
snapshotFormCell.accessoryType = .disclosureIndicator
return snapshotFormCell
-
Map snapshot image
Declaration
Swift
@MainActor public var snapshotImage: UIImage? { get set }
-
Editing geometry
Declaration
Swift
@MainActor public var geometry: MKShape? { get set }
-
Coordinates of editing geometry
Declaration
Swift
@MainActor public var coordinates: [CLLocationCoordinate2D]? { get }
-
Type of the accessory view
Declaration
Swift
@MainActor override open var accessoryType: UITableViewCellAccessoryType { get set }