I do not understand your point.
Here is what I get:
with first method (extract)
A control for selecting a value from a bounded linear range of values.
struct Slider<Label, ValueLabel> where Label : View, ValueLabel : View
The appearance and interaction of
Slider
is determined at runtime and can be customized.
Slider
uses the
SliderStyle
provided by its environment to define its appearance and interaction. Each platform provides a default style that reflects the platform style, but providing a new style will redefine all
Slider
instances within that environment.
init<V>(value: Binding<V>, in: ClosedRange<V>, onEditingChanged: (Bool) -> Void)
Available when
Label
is
EmptyView
and
ValueLabel
is
EmptyView
.
init<V>(value: Binding<V>, in: ClosedRange<V>, onEditingChanged: (Bool) -> Void, label: () -> Label)
Available when
ValueLabel
is
EmptyView
.
with second method:
public struct Slider<Label, ValueLabel> : View where Label : View, ValueLabel : View {
/// Declares the content and behavior of this view.
public var body: some View { get }
/// The type of view representing the body of this view.
///
/// When you create a custom view, Swift infers this type from your
/// implementation of the required `body` property.
public typealias Body = some View
}