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
extension AGSGeometry { | |
static func decodeCompressedGeometry(_ compressedString: String, spatialReference sr: AGSSpatialReference) -> AGSPolyline? { | |
// Break the string up into signed parts. | |
// The first part is a coefficient. | |
// Subsequent pairs of parts make up the remaining coordinates, encoded. | |
let pattern = #"((\+|\-)[^\+\-]+)"# | |
guard let regex = try? NSRegularExpression(pattern: pattern, options: []) else { | |
return nil | |
} |
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
class PaymentViewModel : ObservableObject{ | |
@Published var isLoadingRetrieveProducts = false | |
@Published var yearlySubscriptionPrice = "" | |
@Published var monthlySubscriptionPrice = "" | |
@Published var lifetimeSubscriptionPrice = "" | |
@Published var isLoadingPayment = false | |
@Published var showAlert = false |