File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Sources/DiffableTextViewsXiOS/Views
Tests/DiffableTextViewsXiOSTests/Views Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,7 @@ public extension ProxyTextField.Selection {
2020 //=------------------------------------------------------------------------=
2121 // MARK: Accessors
2222 //=------------------------------------------------------------------------=
23-
24- @inlinable var marked : String {
25- wrapped. text ( in: wrapped. markedTextRange!) !
26- }
27-
23+
2824 @inlinable var value : String {
2925 wrapped. text ( in: wrapped. selectedTextRange!) !
3026 }
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ final class ViewsTestsXUITextField: XCTestCase {
3838 uiTextField. selectedTextRange = nil
3939 XCTAssertNotNil ( uiTextField. selectedTextRange)
4040 }
41+
42+ func testForceUnwrappingMarkedTextRangeIsDisallowed( ) {
43+ XCTAssertNil ( uiTextField. markedTextRange)
44+ }
4145}
4246
4347#endif
You can’t perform that action at this time.
0 commit comments