Present popover from button

This commit is contained in:
Davide De Rosa 2024-10-03 17:53:19 +02:00
parent 8ad144239e
commit 1227df60ff
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 10 additions and 9 deletions

View File

@ -290,10 +290,10 @@ struct ThemeTipModifier: ViewModifier {
ThemeImage(.tip) ThemeImage(.tip)
} }
.buttonStyle(.borderless) .buttonStyle(.borderless)
}
.popover(isPresented: $isPresenting, arrowEdge: edge) { .popover(isPresented: $isPresenting, arrowEdge: edge) {
VStack { VStack {
Text(text) Text(text)
.font(.body)
.foregroundStyle(.primary) .foregroundStyle(.primary)
.lineLimit(nil) .lineLimit(nil)
.multilineTextAlignment(.leading) .multilineTextAlignment(.leading)
@ -303,6 +303,7 @@ struct ThemeTipModifier: ViewModifier {
} }
} }
} }
}
// MARK: - Views // MARK: - Views