Skip to content

Commit

Permalink
Update and fix the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelHolec committed Sep 2, 2024
1 parent 4ddf764 commit fa8033a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Sources/Orbit/Components/Text.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import SwiftUI
///
/// ### Localization
///
/// The localization follows the same pattern as the native ``SwiftUI.Text``.
/// The localization follows the same pattern as the native ``SwiftUI/Text``.
/// The default `main` bundle can be modified by using ``SwiftUI/View/localizationBundle(_:)`` modifier.
///
/// ### Concatenation
Expand Down
9 changes: 5 additions & 4 deletions Sources/Orbit/Orbit.docc/Components/Extensions/InputField.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@

### Managing text entry

- ``autocapitalization(_:)-6ecdh``
- ``autocorrectionDisabled(_:)-7sz54``
- ``keyboardType(_:)-1uu7i``
- ``autocapitalization(_:)``
- ``autocorrectionDisabled(_:)``
- ``keyboardType(_:)``
- ``returnKeyType(_:)``
- ``shouldDeleteBackwardAction(_:)``
- ``textContentType(_:)-4ng7o``
- ``textContentType(_:)``

### UIKit components

- ``TextField``
- ``InsetableTextField``
- ``TextFieldCoordinator``

### Customizing Appearance

Expand Down
1 change: 0 additions & 1 deletion Sources/Orbit/Orbit.docc/Components/Extensions/Tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
### Customizing Appearance

- ``TagButtonStyle``
- ``TagStyle``
- ``BackgroundShape``
9 changes: 5 additions & 4 deletions Sources/Orbit/Orbit.docc/Components/Extensions/Textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@

### Managing text entry

- ``autocapitalization(_:)-9k9yh``
- ``autocorrectionDisabled(_:)-4x1d6``
- ``keyboardType(_:)-7khza``
- ``autocapitalization(_:)``
- ``autocorrectionDisabled(_:)``
- ``keyboardType(_:)``
- ``returnKeyType(_:)``
- ``shouldDeleteBackwardAction(_:)``
- ``textContentType(_:)-6etk6``
- ``textContentType(_:)``

### UIKit components

- ``TextView``
- ``InsetableTextView``
- ``TextFieldCoordinator``

### Customizing Appearance

Expand Down
2 changes: 0 additions & 2 deletions Sources/Orbit/Support/Forms/FieldWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public struct FieldWrapper<Label: View, Content: View, Footer: View>: View {
}

/// Creates Orbit ``FieldWrapper`` around form field content with a custom label and an additional message content.
///
/// ``FieldLabel`` is a default component for constructing custom label.
public init(
message: Message? = nil,
messageHeight: Binding<CGFloat> = .constant(0),
Expand Down
4 changes: 2 additions & 2 deletions Sources/Orbit/Support/Layout/HorizontalScrollReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class HorizontalScrollViewProxy: ObservableObject {

@Published fileprivate var scrollTarget: ScrollTargetValue?

/// Attempts to scroll to the item marked by Orbit ``identifier(_:)``.
/// Attempts to scroll to the item marked by Orbit ``SwiftUI/View/identifier(_:)``.
///
/// - Important: Animated variant may not be reliable when used in a quick succession.
public func scrollTo(_ id: some Hashable, animated: Bool = true) {
Expand All @@ -17,7 +17,7 @@ public class HorizontalScrollViewProxy: ObservableObject {
/// Orbit component that provides programmatic scrolling of ``HorizontalScroll`` component,
/// by working with a ``HorizontalScrollViewProxy`` to scroll to child views marked by Orbit ``identifier(_:)`` modifier.
///
/// A ``horizontalScrollPosition(id:)`` can be used instead for a bidirectional management of currently scrolled item.
/// A ``horizontalScrollPosition(id:animated:)`` can be used instead for a bidirectional management of currently scrolled item.
@available(iOS 14, *)
@available(iOS, obsoleted: 17.0, message: "Prefer using the native `ScrollViewReader`")
public struct HorizontalScrollReader<Content: View>: View {
Expand Down

0 comments on commit fa8033a

Please sign in to comment.