Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 0a4c9be

Browse files
author
benjaminsage
committed
Removed deprecation of keyboard type, since it works now
1 parent 3fcdf5a commit 0a4c9be

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ Modifier | Description
110110
`clearsOnInsertion(_ shouldClear: Bool)` | Modifies the **clear-on-insertion** setting of a text field. 👆
111111
`.showsClearButton(_ showsButton: Bool)` | Modifies whether and when the text field **clear button** appears on the view. ⭕️ ❌
112112
`.passwordRules(_ rules: UITextInputPasswordRules)` | Modifies the text field's **password rules** 🔒. Sets secure entry to `true`.
113-
`.spellChecking(_ spellChecking: Bool?)` | Modifies whether the text field should check the user's **spelling**.
114-
`.smartDashes(_ smartDashes: Bool?)` | Modifies whether the text field includes **smart dashes**.
113+
`.spellChecking(_ spellChecking: Bool? = nil)` | Modifies whether the text field should check the user's **spelling**.
114+
`.smartDashes(_ smartDashes: Bool? = nil)` | Modifies whether the text field includes **smart dashes**.
115115
`.smartInsertDelete(_ smartInsertDelete: Bool? = nil)` | Modifies whether the text field uses **smart insert-delete**.
116116
`.smartQuotes(_ smartQuotes: Bool? = nil)` | Modifies whether the text field uses **smart quotes**.
117117
`.disabled(disabled: Bool)` | Modifies whether the text field is **disabled**. ✋

Sources/iTextField/iTextField+ViewModifiers.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,4 @@ extension iTextField {
272272
/// - Returns:
273273
@available(*, deprecated, renamed: "fontFromUIFont", message: "At this time, Apple will not let us parse a `Font` object❗️ Please use `.fontFromUIFont(_:)` instead.")
274274
public func font(_ font: Font?) -> some View { return EmptyView() }
275-
276-
@available(*, deprecated, message: "If you would like to change they keyboard ⌨️ please email 📧 me (benjaminlsage@gmail.com). I didn't think anyone would need to 🙂.")
277-
public func keyboardType(_ type: UIKeyboardType) -> some View { return EmptyView() }
278275
}

0 commit comments

Comments
 (0)