@@ -18,12 +18,12 @@ public struct Shimmer: ViewModifier {
1818 /// - Parameters:
1919 /// - animation: A custom animation. Defaults to ``Shimmer/defaultAnimation``.
2020 /// - gradient: A custom gradient. Defaults to ``Shimmer/defaultGradient``.
21- /// - bandSize: The size of the animated mask's "band". Defaults to 0.2 unit points, which corresponds to
22- /// 20 % of the extent of the gradient.
21+ /// - bandSize: The size of the animated mask's "band". Defaults to 0.3 unit points, which corresponds to
22+ /// 30 % of the extent of the gradient.
2323 public init (
2424 animation: Animation = Self . defaultAnimation,
2525 gradient: Gradient = Self . defaultGradient,
26- bandSize: CGFloat = 0.2
26+ bandSize: CGFloat = 0.3
2727 ) {
2828 self . animation = animation
2929 self . gradient = gradient
@@ -97,13 +97,13 @@ public extension View {
9797 /// - active: Convenience parameter to conditionally enable the effect. Defaults to `true`.
9898 /// - animation: A custom animation. Defaults to ``Shimmer/defaultAnimation``.
9999 /// - gradient: A custom gradient. Defaults to ``Shimmer/defaultGradient``.
100- /// - bandSize: The size of the animated mask's "band". Defaults to 0.2 unit points, which corresponds to
100+ /// - bandSize: The size of the animated mask's "band". Defaults to 0.3 unit points, which corresponds to
101101 /// 20% of the extent of the gradient.
102102 @ViewBuilder func shimmering(
103103 active: Bool = true ,
104104 animation: Animation = Shimmer . defaultAnimation,
105105 gradient: Gradient = Shimmer . defaultGradient,
106- bandSize: CGFloat = 0.2
106+ bandSize: CGFloat = 0.3
107107 ) -> some View {
108108 if active {
109109 modifier ( Shimmer ( animation: animation, gradient: gradient, bandSize: bandSize) )
@@ -117,7 +117,7 @@ public extension View {
117117 /// - active: Convenience parameter to conditionally enable the effect. Defaults to `true`.
118118 /// - duration: The duration of a shimmer cycle in seconds.
119119 /// - bounce: Whether to bounce (reverse) the animation back and forth. Defaults to `false`.
120- /// - delay:A delay in seconds. Defaults to `0.25`.\
120+ /// - delay:A delay in seconds. Defaults to `0.25`.
121121 @available ( * , deprecated, message: " Use shimmering(active:animation:gradient:bandSize:) instead. " )
122122 @ViewBuilder func shimmering(
123123 active: Bool = true , duration: Double , bounce: Bool = false , delay: Double = 0.25
0 commit comments