diff --git a/LeCountdown.xcodeproj/project.pbxproj b/LeCountdown.xcodeproj/project.pbxproj index 60c8b5b..def3aff 100644 --- a/LeCountdown.xcodeproj/project.pbxproj +++ b/LeCountdown.xcodeproj/project.pbxproj @@ -745,9 +745,9 @@ C4F8B165298A9ABB005C86A5 /* SoundImageFormView.swift */, C4BA2AD52993F62700CB4FBA /* SoundSelectionView.swift */, C4BA2ADA299549BC00CB4FBA /* TimerModel.swift */, + C473C33829ACDBD70056B38A /* TipView.swift */, C4BA2B2E299E69A000CB4FBA /* View+Extension.swift */, C4742B5E2984205000D5D950 /* ViewModifiers.swift */, - C473C33829ACDBD70056B38A /* TipView.swift */, ); path = Reusable; sourceTree = ""; diff --git a/LeCountdown/Views/Reusable/TipView.swift b/LeCountdown/Views/Reusable/TipView.swift index c02ab23..b5a5210 100644 --- a/LeCountdown/Views/Reusable/TipView.swift +++ b/LeCountdown/Views/Reusable/TipView.swift @@ -19,13 +19,12 @@ struct TipView: View { Image(systemName: tip.pictoName) Text(tip.localizedString).padding(.trailing) Spacer() - Button { + Image(systemName: "xmark.circle.fill") + .padding(8.0) + }.onTapGesture { + withAnimation { self.handler() - } label: { - Image(systemName: "xmark.circle.fill") - .padding(8.0) - }.foregroundColor(.white) - + } } .padding(12.0) .foregroundColor(.white)