Skip to content

Commit 0acae22

Browse files
committed
formating
1 parent c481fa7 commit 0acae22

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Sources/swiftui-search-field-shell-line/SearchFieldShell.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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

Sources/swiftui-search-field-shell-line/SearchFieldShellLine.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
import SwiftUI
99

10-
/// Line with animation of lenght
10+
/// Line with animation of length
1111
/// Utility component for ``SearchFieldShell``
1212
struct 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

0 commit comments

Comments
 (0)