diff --git a/Sources/OpenSwiftUI/OpenSwiftUI.docc/Views/Controls.md b/Sources/OpenSwiftUI/OpenSwiftUI.docc/Views/Controls.md index fb8b0f63..731a287c 100644 --- a/Sources/OpenSwiftUI/OpenSwiftUI.docc/Views/Controls.md +++ b/Sources/OpenSwiftUI/OpenSwiftUI.docc/Views/Controls.md @@ -14,6 +14,10 @@ Use these built-in controls and indicators when composing custom views, and styl - ``Link`` +### Getting numeric inputs + +- ``Slider`` + ### Sizing controls - ``View/controlSize(_:)`` diff --git a/Sources/OpenSwiftUI/OpenSwiftUI.docc/Views/Controls/Slider.md b/Sources/OpenSwiftUI/OpenSwiftUI.docc/Views/Controls/Slider.md new file mode 100644 index 00000000..1147a3c4 --- /dev/null +++ b/Sources/OpenSwiftUI/OpenSwiftUI.docc/Views/Controls/Slider.md @@ -0,0 +1,29 @@ +# ``Slider`` + +## Topics + +### Creating a slider + +- ``init(value:in:onEditingChanged:)`` + +- ``init(value:in:step:onEditingChanged:)`` + +### Creating a slider with labels + +- ``init(value:in:label:onEditingChanged:)`` + +- ``init(value:in:step:label:onEditingChanged:)`` + +- ``init(value:in:label:minimumValueLabel:maximumValueLabel:onEditingChanged:)`` + +- ``init(value:in:step:label:minimumValueLabel:maximumValueLabel:onEditingChanged:)`` + +### Deprecated initializers + +- ``init(value:in:onEditingChanged:label:)`` + +- ``init(value:in:step:onEditingChanged:label:)`` + +- ``init(value:in:onEditingChanged:minimumValueLabel:maximumValueLabel:label:)`` + +- ``init(value:in:onEditingChanged:step:minimumValueLabel:maximumValueLabel:label:)``