File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Sources/swiftui-search-field-shell-line Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public struct SearchFieldShell: View {
6767 /// - durationScale: Duration of scale animation
6868 /// - durationMove: Duration of movement animation
6969 public init (
70- text : Binding < String > ,
70+ text: Binding < String > ,
7171 size: CGFloat = 75 ,
7272 color: Color = . blue,
7373 imageName: String = " magnifyingglass " ,
@@ -207,15 +207,15 @@ public struct SearchFieldShell: View {
207207}
208208
209209#if DEBUG
210- struct SearchField_Previews : PreviewProvider {
211- static var previews : some View {
212- GeometryReader { proxy in
213- SearchFieldShell ( text: . constant( " search text " ) )
214- . padding ( . horizontal)
215- . offset ( y: proxy. size. height / 3 )
216-
217- } . background ( . black)
218-
210+ struct SearchField_Previews : PreviewProvider {
211+ static var previews : some View {
212+ GeometryReader { proxy in
213+ SearchFieldShell ( text: . constant( " search text " ) )
214+ . padding ( . horizontal)
215+ . offset ( y: proxy. size. height / 3 )
216+
217+ } . background ( . black)
218+
219+ }
219220 }
220- }
221221#endif
Original file line number Diff line number Diff line change 77
88import SwiftUI
99
10- /// Line with animation of lenght
10+ /// Line with animation of length
1111/// Utility component for ``SearchFieldShell``
1212struct SearchFieldShellLine : Shape {
1313
1414 /// Lines thickness
1515 private let lineHeight : CGFloat = 1
1616
17- /// Aminatable data
17+ /// Animatable data
1818 var animatableData : Double {
1919 get { return x }
2020 set { x = newValue }
@@ -28,7 +28,7 @@ struct SearchFieldShellLine: Shape {
2828 /// Available height size for component
2929 let height : CGFloat
3030
31- /// Animatable variable for animatiing line length
31+ /// Animatable variable for animating line length
3232 var x : Double = 0
3333
3434
You can’t perform that action at this time.
0 commit comments