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
class TestViewModel { | |
struct Inputs { | |
let tap = PublishSubject<Void>() | |
} | |
struct Outputs { | |
let someString: Observable<String?> | |
} | |
let inputs: TestViewModel.Inputs |
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
// | |
// UITextView+Rx.swift | |
// bodytonic-ios | |
// | |
// Created by Desmond McNamee on 2017-02-04. | |
// Copyright © 2017 Stadium Studio. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// ViewController.swift | |
// RetainCylceTests | |
// | |
// Created by Desmond McNamee on 15/09/16. | |
// Copyright © 2016 Teamplace. All rights reserved. | |
// | |
import UIKit |
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
// | |
// KeyboardHeight.swift | |
// bodytonic-ios | |
// | |
// Created by Desmond McNamee on 2016-08-28. | |
// Copyright © 2016 Stadium Studio. All rights reserved. | |
// | |
import UIKit | |
import RxSwift |
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
// | |
// CollectionViewMagic.swift | |
// bodytonic-ios | |
// | |
// Created by Desmond McNamee on 2016-10-29. | |
// Copyright © 2016 Stadium Studio. All rights reserved. | |
// | |
import UIKit |
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 Updateable where Self: RLMObject { | |
static func persistJSON(json: NSDictionary) { | |
let update = Self.partialUpdateDicWithJSON(json) | |
let realm = RealmPersister.realm | |
realm.beginWriteTransaction() | |
Self.createOrUpdateInRealm(realm, withValue: update) | |
try! realm.commitWriteTransaction() | |
} | |
} |
NewerOlder