diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index ba00cd8..1346a93 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,6 +1,11 @@ # Release Notes +## 0.9.2 + +`MockTexstDocumentProxy` has a new `keyboardAppearance` property. + + ## 0.9.1 Thanks to [@jinuman](https://github.com/jinuman) this version fixes the incorrectly high deployment targets. diff --git a/Sources/MockingKit/UIKit/MockTextDocumentProxy.swift b/Sources/MockingKit/UIKit/MockTextDocumentProxy.swift index 0c8ca40..3853bc1 100644 --- a/Sources/MockingKit/UIKit/MockTextDocumentProxy.swift +++ b/Sources/MockingKit/UIKit/MockTextDocumentProxy.swift @@ -27,9 +27,10 @@ open class MockTextDocumentProxy: NSObject, UITextDocumentProxy, Mockable { public var autocapitalizationType: UITextAutocapitalizationType = .none public var documentContextBeforeInput: String? public var documentContextAfterInput: String? - public var selectedText: String? - public var documentInputMode: UITextInputMode? public var documentIdentifier: UUID = UUID() + public var documentInputMode: UITextInputMode? + public var keyboardAppearance: UIKeyboardAppearance = .light + public var selectedText: String? public func adjustTextPosition(byCharacterOffset offset: Int) { call(adjustTextPositionRef, args: (offset))