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 FooProtocol { | |
init() | |
func description() -> String | |
} | |
class Bar : FooProtocol { | |
required init() { |
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
### Keybase proof | |
I hereby claim: | |
* I am afarnham on github. | |
* I am afarnham (https://keybase.io/afarnham) on keybase. | |
* I have a public key whose fingerprint is 96B3 8D77 96D4 F6D3 3081 881B 3C38 2A68 DF5B 32FE | |
To claim this, I am signing this object: |
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
TextField("Target Weight", text: $viewModel.inputWeight) | |
.keyboardType(.decimalPad) | |
.onChange(of: viewModel.inputWeight, perform: { value in | |
viewModel.inputWeight = value.filter { "01234567890.".contains($0) } | |
}) | |
OlderNewer