@@ -14,14 +14,14 @@ import SwiftUI
1414
1515#if compiler(>=5.9)
1616extension Gradient {
17- // Creates a gradient with the given easing function.
18- //
19- // - Parameters:
20- // - from: The start color.
21- // - to: The end color.
22- // - curve: The easing function to use.
23- // - steps: The number of steps to use when generating the gradient. Defaults to 16.
24- // - Returns: A gradient.
17+ /// Creates a gradient with the given easing function.
18+ ///
19+ /// - Parameters:
20+ /// - from: The start color.
21+ /// - to: The end color.
22+ /// - curve: The easing function to use.
23+ /// - steps: The number of steps to use when generating the gradient. Defaults to 16.
24+ /// - Returns: A gradient.
2525 @available ( iOS 17 . 0 , macOS 14 . 0 , tvOS 17 . 0 , watchOS 10 . 0 , * )
2626 public static func smooth(
2727 from: Color ,
@@ -37,14 +37,14 @@ extension Gradient {
3737 )
3838 }
3939
40- // Creates a gradient with the given easing function.
41- //
42- // - Parameters:
43- // - from: The start color.
44- // - to: The end color.
45- // - curve: The easing function to use.
46- // - steps: The number of steps to use when generating the gradient. Defaults to 16.
47- // - Returns: A gradient.
40+ /// Creates a gradient with the given easing function.
41+ ///
42+ /// - Parameters:
43+ /// - from: The start color.
44+ /// - to: The end color.
45+ /// - curve: The easing function to use.
46+ /// - steps: The number of steps to use when generating the gradient. Defaults to 16.
47+ /// - Returns: A gradient.
4848 @available ( iOS 17 . 0 , macOS 14 . 0 , tvOS 17 . 0 , watchOS 10 . 0 , * )
4949 public static func smooth(
5050 from: Stop ,
@@ -65,14 +65,14 @@ extension Gradient {
6565// MARK: - Pre iOS 17
6666
6767extension Gradient {
68- // Creates a gradient with the given easing function.
69- //
70- // - Parameters:
71- // - from: The start color.
72- // - to: The end color.
73- // - curve: The easing function to use.
74- // - steps: The number of steps to use when generating the gradient. Defaults to 16.
75- // - Returns: A gradient.
68+ /// Creates a gradient with the given easing function.
69+ ///
70+ /// - Parameters:
71+ /// - from: The start color.
72+ /// - to: The end color.
73+ /// - curve: The easing function to use.
74+ /// - steps: The number of steps to use when generating the gradient. Defaults to 16.
75+ /// - Returns: A gradient.
7676 @available ( iOS, introduced: 14.0 , deprecated: 17.0 , renamed: " smooth(from:to:curve:steps:) " )
7777 @available ( macOS, introduced: 11.0 , deprecated: 14.0 , renamed: " smooth(from:to:curve:steps:) " )
7878 @available ( tvOS, introduced: 14.0 , deprecated: 17.0 , renamed: " smooth(from:to:curve:steps:) " )
@@ -92,14 +92,14 @@ extension Gradient {
9292 )
9393 }
9494
95- // Creates a gradient with the given easing function.
96- //
97- // - Parameters:
98- // - from: The start color.
99- // - to: The end color.
100- // - curve: The easing function to use.
101- // - steps: The number of steps to use when generating the gradient. Defaults to 16.
102- // - Returns: A gradient.
95+ /// Creates a gradient with the given easing function.
96+ ///
97+ /// - Parameters:
98+ /// - from: The start color.
99+ /// - to: The end color.
100+ /// - curve: The easing function to use.
101+ /// - steps: The number of steps to use when generating the gradient. Defaults to 16.
102+ /// - Returns: A gradient.
103103 @available ( iOS, introduced: 14.0 , deprecated: 17.0 , renamed: " smooth(from:to:curve:steps:) " )
104104 @available ( macOS, introduced: 11.0 , deprecated: 14.0 , renamed: " smooth(from:to:curve:steps:) " )
105105 @available ( tvOS, introduced: 14.0 , deprecated: 17.0 , renamed: " smooth(from:to:curve:steps:) " )
0 commit comments