I hereby claim:
- I am sunshinejr on github.
- I am sunshinejr (https://keybase.io/sunshinejr) on keybase.
- I have a public key ASC_9nKhKZwMWK4Ciutsh00FNk74FjRLf90QhujodtkmkQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
//: #typealias & associatedtype magic | |
//: ##Let's make a protocol without typealias (now associatedtype) | |
protocol Testable { | |
} | |
//: ##And another one with typealias | |
//: You could think, that the below typealias is just making | |
//: a typealiast for Int. In fact, we actually created a |
import Foundation | |
public let Defaults = UserDefaults.standard | |
open class DefaultsKeys { | |
fileprivate init() {} | |
} | |
open class DefaultsKey<ValueType>: DefaultsKeys { | |
public let _key: String |
@propertyWrapper | |
public final class Debounced<T: Hashable>: BindingConvertible { | |
public let delay: Double | |
private var _value: T | |
private var timer: Timer? = nil | |
public var wrappedValue: T { | |
get { | |
return _value |
import Foundation | |
import class UIKit.UIImage | |
struct AttributedString: ExpressibleByStringInterpolation { | |
enum Attribute: Hashable { | |
enum ImportanceLevel: String, Equatable { | |
case very | |
case enough | |
} | |
case important(ImportanceLevel = .enough) |