Present popover from button
This commit is contained in:
parent
8ad144239e
commit
1227df60ff
|
@ -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)
|
||||||
|
@ -302,6 +302,7 @@ struct ThemeTipModifier: ViewModifier {
|
||||||
.padding(12)
|
.padding(12)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Views
|
// MARK: - Views
|
||||||
|
|
Loading…
Reference in New Issue