Skip to content

Commit

Permalink
Add keyboardAppearance property to mock
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Feb 19, 2021
1 parent aec4fe2 commit bdc1f66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 3 additions & 2 deletions Sources/MockingKit/UIKit/MockTextDocumentProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bdc1f66

Please sign in to comment.