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
let crtBase64 = "..." | |
if let certificateData = Data(base64Encoded: crtBase64, options: []), | |
let certificate = SecCertificateCreateWithData(nil, certificateData as CFData) { | |
// use certificate to initialize PinnedCertificatesTrustEvaluator, or ... | |
var trust: SecTrust? | |
let policy = SecPolicyCreateBasicX509() | |
let status = SecTrustCreateWithCertificates(certificate, policy, &trust) | |
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 | |
protocol AppNavigationProtocol { | |
var appDelegate: AppDelegate { get } | |
} | |
extension AppNavigationProtocol { | |