MerchantAnnotation.swift 506 Bytes
//
//  MerchantAnnotation.swift
//  SwiftWarplyFramework
//
//  Created by Manos Chorianopoulos on 20/9/22.
//

import Foundation
import MapKit

@objc public class MerchantAnnotation: NSObject, MKAnnotation {
    let model: swiftApi.MerchantModel
    public let coordinate: CLLocationCoordinate2D

    
    init(_ model: swiftApi.MerchantModel) {
        self.model = model
        self.coordinate = CLLocationCoordinate2D(latitude: model._latitude, longitude: model._longitude)
        super.init()
  }
}