This file contains hidden or 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
[ | |
{ | |
"name": "United States", | |
"dialCode": "+1", | |
"emoji": "🇺🇸", | |
"countryCode": "US", | |
"pattern": "(###) ###-####" | |
}, | |
{ | |
"name": "Canada", |
This file contains hidden or 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 ExtendedDotView: UIView { | |
var animDuration = 0.2 | |
private var mustGoCurrentItem: CGFloat = 0 | |
private var previuscurrentItem: CGFloat = 0 | |
private var displayLink: CADisplayLink? | |
private var startTime = 0.0 | |
This file contains hidden or 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 Foundation | |
extension URLRequest { | |
/// Returns a cURL command for a request | |
/// - return A String object that contains cURL command or "" if an URL is not properly initalized. | |
public var cURL: String { | |
guard let url = url, | |
let httpMethod = httpMethod, | |
!url.absoluteString.utf8.isEmpty else { return "" } |