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 Foundation | |
import StoreKit | |
import RxSwift | |
import RxCocoa | |
extension SKRequest: HasDelegate {} | |
class RxSKRequestDelegateProxy: | |
DelegateProxy<SKRequest, SKRequestDelegate>, | |
DelegateProxyType, |
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
void main() { | |
final now = DateTime.now(); | |
final nowUtc = now.toUtc(); | |
final nowLocal = now.toLocal(); | |
print(nowUtc == nowLocal); | |
print(nowUtc.millisecondsSinceEpoch == nowLocal.millisecondsSinceEpoch); | |
} |
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
// Usage: | |
let labelText = BehaviorRelay(value: "Text 1") | |
let label = UILabel() | |
label.bind.text = labelText | |
let textViewText = Driver<String>.just("Text 2") | |
let textView = UITextView() | |
textView.bind.text = textViewText |