Skip to content

Commit 1cd65cc

Browse files
Removed wrong doc and better doc structure
1 parent 18a1a51 commit 1cd65cc

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

Sources/SwiftUITextField/SwiftUITextField.docc/EnvironmentModifiers.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,15 @@ struct MyView: View {
129129

130130
## Topics
131131

132-
### Modify appearence
132+
### Modify basic appearence
133133

134134
- ``SUITextField/uiTextFieldFont(_:)``
135135
- ``SUITextField/uiTextFieldTextColor(_:)``
136136
- ``SUITextField/uiTextFieldTextAlignment(_:)``
137+
- ``SUITextField/uiTextFieldBorderStyle(_:)``
138+
139+
### Modify advanced appearence
140+
137141
- ``SUITextField/uiTextFieldDefaultTextAttributes(_:mergePolicy:)``
138142
- ``DefaultAttributesMergePolicy``
139143

@@ -142,7 +146,6 @@ struct MyView: View {
142146
- ``SUITextField/uiTextFieldReturnKeyType(_:)``
143147
- ``SUITextField/uiTextFieldSecureTextEntry(_:)``
144148
- ``SUITextField/uiTextFieldClearButtonMode(_:)``
145-
- ``SUITextField/uiTextFieldBorderStyle(_:)``
146149
- ``SUITextField/uiTextFieldAutocapitalizationType(_:)``
147150
- ``SUITextField/uiTextFieldAutocorrectionType(_:)``
148151
- ``SUITextField/uiTextFieldKeyboardType(_:)``

Sources/SwiftUITextField/TextField/Environments.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ public extension View {
242242
///
243243
/// Setting `nil` will restore the system font.
244244
///
245-
/// - Note: This modifier overrides font in ``SUITextField/uiTextFieldDefaultTextAttributes(_:mergePolicy:)``
246-
///
247245
/// - Parameter font: The default font to use in this view.
248246
/// - Returns: A view with the default font set to the value you supply.
249247
func uiTextFieldFont(_ font: UIFont?) -> some View {
@@ -254,8 +252,6 @@ public extension View {
254252
///
255253
/// Setting `nil` will restore the system color.
256254
///
257-
/// - Note: This modifier has higher priority than ``SUITextField/uiTextFieldDefaultTextAttributes(_:mergePolicy:)``
258-
///
259255
/// - Parameter color: The `UIColor` to be applied on all ``SUITextField`` in this view.
260256
/// - Returns: A view with the text color you supply.
261257
func uiTextFieldTextColor(_ color: UIColor?) -> some View {
@@ -334,8 +330,6 @@ public extension View {
334330

335331
/// Sets the text alignment for all ``SUITextField`` in this view.
336332
///
337-
/// - Note: This modifier has higher priority than ``SUITextField/uiTextFieldDefaultTextAttributes(_:mergePolicy:)``
338-
///
339333
/// - Parameter textAlignment: The `NSTextAlignment` to be applied.
340334
/// - Returns: A view with the chosen text alignment applied.
341335
func uiTextFieldTextAlignment(_ textAlignment: NSTextAlignment) -> some View {
@@ -366,8 +360,6 @@ public extension View {
366360
///
367361
/// You can style the text/font using this modifier, allowing the text fields to be high customized.
368362
///
369-
/// - Note: This modifier has low priority than font, color and text alignment modifiers.
370-
///
371363
/// - Parameters:
372364
/// - defaultTextAttributes: A dictionary of attributes applied to the `NSAttributedString` of text field.
373365
/// - mergePolicy: Indicates how apply the new attributes. If you used this modifier in a container view and you

0 commit comments

Comments
 (0)