-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popover inside Scrollview not supported? #85
Comments
A missing feature unfortunately. It’s a bit tricky to implement
…On Sat, May 20, 2023 at 6:09 AM Patrick Horlebein ***@***.***> wrote:
When attaching a popover to a view inside a scrollView, the popover will
remain at fixed position when scrolling. It seems to be impossible to let
the popover follow the attached view.
Is this a bug or a missing feature?
ScrollView {
…
TextField(…)
.popover(
present: $focusedTextField,
attributes: {
$0.position = .absolute(
originAnchor: .top,
popoverAnchor: .bottom
)
$0.sourceFrame = { rectOfTextField }
$0.sourceFrameInset.top = -16
$0.rubberBandingMode = .none
$0.dismissal = .init(
mode: .none,
dragMovesPopoverOffScreen: false
)
}
) {
Templates.Container(…)
}
}
—
Reply to this email directly, view it on GitHub
<#85>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4C6PYLWPHTY2A65GNGUXLXHC7BVANCNFSM6AAAAAAYIXM6CE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When attaching a popover to a view inside a scrollView, the popover will remain at fixed position when scrolling. It seems to be impossible to let the popover follow the attached view.
Is this a bug or a missing feature?
The text was updated successfully, but these errors were encountered: