I hereby claim:
- I am hartlco on github.
- I am hartlco (https://keybase.io/hartlco) on keybase.
- I have a public key whose fingerprint is B3A4 35FF 9D40 E298 DE76 8598 5089 83EA 8843 A189
To claim this, I am signing this object:
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version (i.e. 1.1.3)' | |
required: true | |
name: | |
description: 'Name of the Version' |
@propertyWrapper | |
struct UserDefault<T> { | |
let key: String | |
let defaultValue: T | |
let userDefaults: UserDefaults | |
init(_ key: String, | |
defaultValue: T, | |
userDefaults: UserDefaults) { | |
self.key = key |
I hereby claim:
To claim this, I am signing this object:
struct User { | |
let id: Int | |
let name: String | |
let email: String? | |
} | |
extension User: JSONDecodable { | |
static func create(id: Int, name: String, email: String?) -> User { | |
return User(id: id, name: name, email: email) | |
} |
override func viewDidLoad() { | |
... | |
self.highlightFirstLineInTextView(self.textView) | |
} | |
private func highlightFirstLineInTextView(textView: UITextView) { | |
let textAsNSString = textView.text as NSString | |
let lineBreakRange = textAsNSString.rangeOfString("\n") | |
let newAttributedText = NSMutableAttributedString(attributedString: textView.attributedText) | |
let boldRange: NSRange |
class MyViewController { | |
// Standard view controller stuff here | |
} | |
extension MyViewController: UITableViewDelegate { | |
// Table view delegate methods here | |
} | |
extension MyViewController: UITextFieldDelegate { | |
// Text field delegate methods here |
var textLabel: UILabel? | |
// later... | |
if let textLabel = textLabel { | |
// do something with textLabel, which is now unwrapped | |
} |
class AppStoreReceiptObtainer: NSObject, SKRequestDelegate { | |
let receiptUrl = NSBundle.mainBundle().appStoreReceiptURL | |
func obtainReceipt() { | |
var fileExists = NSFileManager.defaultManager().fileExistsAtPath(receiptUrl.path!) | |
if fileExists { | |
println("Appstore Receipt already exists") | |
return; |
### Keybase proof | |
I hereby claim: | |
* I am mhaddl on github. | |
* I am mhaddl (https://keybase.io/mhaddl) on keybase. | |
* I have a public key whose fingerprint is 03B8 D9BE F33B 873A 14AA 347D 0A25 C80A 3369 4945 | |
To claim this, I am signing this object: |