diff --git a/MTGWizard/Components/CardImage.swift b/MTGWizard/Components/CardImage.swift index 1b3eb35..8426d5e 100644 --- a/MTGWizard/Components/CardImage.swift +++ b/MTGWizard/Components/CardImage.swift @@ -20,7 +20,7 @@ struct CardImage: View { image .resizable() .scaledToFit() - .cornerRadius(18) + .cornerRadius(10) .rotationEffect(cardRotationAngle) .contextMenu { Button(action: { copyImage(url: url) }) { diff --git a/MTGWizard/Components/FullScreenImageView.swift b/MTGWizard/Components/FullScreenImageView.swift index 64c1393..77c942e 100644 --- a/MTGWizard/Components/FullScreenImageView.swift +++ b/MTGWizard/Components/FullScreenImageView.swift @@ -18,6 +18,7 @@ struct FullScreenImageView: View { ZStack(alignment: .topTrailing) { ZoomableScrollView { CardImage(card: card, imageTypes: [.normal, .png], viewingSecondFace: viewingSecondFace) + .cornerRadius(20) } Button(action: { dismiss() }) { diff --git a/MTGWizard/Components/SearchView/SearchView.swift b/MTGWizard/Components/SearchView/SearchView.swift index 5d3e05d..5ee1129 100644 --- a/MTGWizard/Components/SearchView/SearchView.swift +++ b/MTGWizard/Components/SearchView/SearchView.swift @@ -14,7 +14,7 @@ struct SearchView: View { var body: some View { VStack { HStack { - TextField("mana=4gg o:trample pow:6 tou:6", text: $viewModel.searchText) + TextField("mana=4gg o:trample pow:6 tou:6", text: $viewModel.searchText, onCommit: handleSubmit) .textFieldStyle(RoundedBorderTextFieldStyle()) .disableAutocorrection(true) .modifier(ClearButton(text: $viewModel.searchText)) @@ -45,4 +45,10 @@ struct SearchView: View { sortDirection: $viewModel.sortDirection) } } + + func handleSubmit() { + Task { + await viewModel.search() + } + } }