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
// Created by Kirill Budevich. | |
// Copyright © 2018 Kirill Budevich. All rights reserved. | |
// | |
import UIKit | |
public protocol Gradientable: class { | |
/// Drawed CAGradientLayer from sublayers, nil if not added | |
var gradientLayer: CAGradientLayer? { get } |
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
// | |
// Obfuscator.swift | |
// | |
// Created by Dejan Atanasov on 2017-05-31. | |
// | |
import Foundation | |
class Obfuscator: AnyObject { | |
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
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |