diff options
Diffstat (limited to 'Jel/Views/Library/LibraryIconView.swift')
-rw-r--r-- | Jel/Views/Library/LibraryIconView.swift | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Jel/Views/Library/LibraryIconView.swift b/Jel/Views/Library/LibraryIconView.swift index 9bd3182..800d488 100644 --- a/Jel/Views/Library/LibraryIconView.swift +++ b/Jel/Views/Library/LibraryIconView.swift @@ -24,10 +24,10 @@ struct LibraryIconView: View { @State var placeHolder: AnyView? - var shouldShowCaption: Bool = true + var shouldShowCaption: Bool = false var imageCornerRadius: CGFloat = 5 var body: some View { - VStack { + VStack(alignment: .leading) { LazyImage(url: imageUrl) {state in if let image = state.image { image @@ -60,9 +60,9 @@ struct LibraryIconView: View { } } } - func hideCaption(_ isHidden: Bool = true) -> Self { + func showCaption(_ showCaption: Bool = true) -> Self { var copy = self - copy.shouldShowCaption = !isHidden + copy.shouldShowCaption = showCaption return copy } |