-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes problems with two way binding that was caused by
rx_text
and …
…always setting the text value even when the value was equal, and thus clearing the marked text state. #649
- Loading branch information
Showing
7 changed files
with
117 additions
and
6 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// RxTextInput.swift | ||
// Rx | ||
// | ||
// Created by Krunoslav Zaher on 5/12/16. | ||
// Copyright © 2016 Krunoslav Zaher. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
#if os(iOS) || os(tvOS) | ||
import UIKit | ||
|
||
/** | ||
Represents text input with reactive extensions. | ||
*/ | ||
public protocol RxTextInput : UITextInput { | ||
|
||
/** | ||
Reactive wrapper for `text` property. | ||
*/ | ||
var rx_text: ControlProperty<String> { get } | ||
} | ||
#endif | ||
|
||
#if os(OSX) | ||
import Cocoa | ||
|
||
/** | ||
Represents text input with reactive extensions. | ||
*/ | ||
public protocol RxTextInput : NSTextInput { | ||
|
||
/** | ||
Reactive wrapper for `text` property. | ||
*/ | ||
var rx_text: ControlProperty<String> { get } | ||
} | ||
#endif |
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
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
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
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
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