tap available on the whole view

release
Laurent 3 years ago
parent dec9775257
commit 09b32a5b39
  1. 2
      LeCountdown.xcodeproj/project.pbxproj
  2. 11
      LeCountdown/Views/Reusable/TipView.swift

@ -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 = "<group>";

@ -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)

Loading…
Cancel
Save