Skip to content

Commit b4fbd90

Browse files
improve segmented control docs
1 parent 774b976 commit b4fbd90

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Sources/ComponentsKit/Components/RadioGroup/Models/RadioGroupVM.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import UIKit
33

4-
/// A model that defines the appearance properties for a radio group component.
4+
/// A model that defines the data and appearance properties for a radio group component.
55
public struct RadioGroupVM<ID: Hashable>: ComponentVM {
66
/// The scaling factor for the button's press animation, with a value between 0 and 1.
77
///

Sources/ComponentsKit/Components/SegmentedControl/Models/SegmentedControlItemVM.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
/// A model that defines the appearance properties for an item in a segmented control.
3+
/// A model that defines the data and appearance properties for an item in a segmented control.
44
public struct SegmentedControlItemVM<ID: Hashable>: Updatable {
55
/// The unique identifier for the segmented control item.
66
public var id: ID

Sources/ComponentsKit/Components/SegmentedControl/Models/SegmentedControlVM.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import SwiftUI
22
import UIKit
33

4-
/// A model that defines the appearance properties for a segmented control component.
4+
/// A model that defines the data and appearance properties for a segmented control component.
55
public struct SegmentedControlVM<ID: Hashable>: ComponentVM {
66
/// The color of the segmented control.
77
public var color: ComponentColor?
@@ -19,7 +19,7 @@ public struct SegmentedControlVM<ID: Hashable>: ComponentVM {
1919
/// Defaults to `true`.
2020
public var isEnabled: Bool = true
2121

22-
/// A Boolean value indicating whether the segmented control should take the full width of its superview.
22+
/// A Boolean value indicating whether the segmented control should take the full width of its parent view.
2323
///
2424
/// Defaults to `false`.
2525
public var isFullWidth: Bool = false

Sources/ComponentsKit/Components/SegmentedControl/SUSegmentedControl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SwiftUI
22

3-
/// A SwiftUI component with multiple segments that allows users to select them.
3+
/// A SwiftUI component that allows users to choose between multiple segments or options.
44
public struct SUSegmentedControl<ID: Hashable>: View {
55
// MARK: Properties
66

Sources/ComponentsKit/Components/SegmentedControl/UKSegmentedControl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import AutoLayout
22
import UIKit
33

4-
/// A UIKit component with multiple segments that allows users to select them.
4+
/// A UIKit component that allows users to choose between multiple segments or options.
55
open class UKSegmentedControl<ID: Hashable>: UIView, UKComponent {
66
// MARK: Properties
77

0 commit comments

Comments
 (0)