diff options
author | Shav Kinderlehrer <[email protected]> | 2023-12-27 13:07:20 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-12-27 13:07:20 -0500 |
commit | b7a1bd1d558eb954968668b8d69358d4d9faaa23 (patch) | |
tree | 1028a53f84740556b53c71f17fdbf9c55fab7dab /Jel/Views/Library/LibraryIconView.swift | |
parent | 7aa602f19dec3cf526c4550c5e63a8fc6dfac723 (diff) | |
download | jel-b7a1bd1d558eb954968668b8d69358d4d9faaa23.tar.gz jel-b7a1bd1d558eb954968668b8d69358d4d9faaa23.zip |
Refactoring + make itemInfo more visible
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 } |