This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class UberDeepLink: BaseDeepLink, ConstructDeepLinkProtocol { | |
func constructApp(){ | |
guard let uberProtocol = self.urlProtocol, let dropoffLocation = self.destinationLocation, let pickupLocation = self.originLocation else { | |
return nil | |
} | |
let httpsProtocol = "https://m.uber.com/" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init(originLocation : CLLocationCoordinate2D, destinationLocation:CLLocationCoordinate2D, originAddress: String, destinationAddress: String, urlProtocol: String){ | |
self.originLocation = originLocation | |
self.destinationLocation = destinationLocation | |
self.destinationAddress = dropoffFormattedAddress | |
self.originAddress = originAddress | |
self.urlProtocol = urlProtocol | |
} | |
func deepLink() { | |
if let appURL = finalURL { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import CoreLocation | |
protocol ConstructDeepLinkProtocol{ | |
func constructApp() | |
} | |
class BaseDeepLink: NSObject { | |
var originLocation : CLLocationCoordinate2D? |
NewerOlder