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
| extension ViewController { | |
| public class RecipeList: UITableViewController { | |
| public let sortDescriptorPickerView = PickerView<SortDescriptor>() | |
| public override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // setup subviews and layout | |
| } |
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
| extension ViewController { | |
| public class Authentication: UIViewController { | |
| public let usernameTextField = UITextField() | |
| public let passwordTextField = UITextField() | |
| public let loginButton = UIButton() | |
| public override func viewDidLoad() { | |
| super.viewDidLoad() |
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
| public class RecipeList { | |
| public let sortDescriptor: SafeObserver<SortDescriptor> | |
| public let recipes: SafeSignal<[Recipe]> | |
| public init(client: SafeClient, category: Category) { | |
| let recipes = client | |
| .response(for: API.Recipe.all(category: category)) | |
| .shareReplay(limit: 1) |
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
| public class Authentication { | |
| public typealias Credentials = (username: String, password: String) | |
| public let credentials: SafeObserver<Credentials> | |
| public let token: SafeSignal<Token> | |
| public init(client: SafeClient) { | |
| let credentials = SafePublishSubject<Credentials>() |
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
| /// Example interface of a control that does not manage its own state. | |
| public class Stepper { | |
| /// Enum is usually a convenient type to represent action. | |
| public enum Action { | |
| case increase | |
| case decrease | |
| } | |
| /// On the output is an action or intent describing what to do with the state. |
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 XCTest | |
| import ReactiveKit | |
| import ReactiveSwift | |
| import RxSwift | |
| let iterations = 1000 | |
| let elements = 100 | |
| class BenchmarkTests: XCTestCase { |
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
| verbose: 🔍 | |
| debug: 💬 | |
| warning: ☝️ | |
| error: ‼️ |
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
| error: Error in auto-import: | |
| failed to get module 'Realm Example' from AST context: | |
| could not build Objective-C module 'Realm' A fatal parse error has occurred. LLDB may become unstable; please restart your debug session as soon as possible. | |
| ---- | |
| /Users/srdan/Develop/RealmExample/RealmExample/RLMSupport.swift:19:8: Could not build Objective-C module 'Realm' |
NewerOlder