Popovers icon indicating copy to clipboard operation
Popovers copied to clipboard

Different margins on different iOS

Open alinless opened this issue 1 year ago • 0 comments

Hi! Firstly, thanks for such nice and shiny library! It is really beautiful I want to present popover as full screen view with enjoyable animation. I have used the code below. If I use the code on 16 it creates additional spaces at the top and bottom (safe areas) safeAreaInsets were gotten from firstKeyWindow

 attributes: {
    $0.position = .relative(popoverAnchors: [.center])
    $0.screenEdgePadding = .init(
       top: safeAreaInsets.top,
       left: safeAreaInsets.leading,
       bottom: safeAreaInsets.bottom,
       right: safeAreaInsets.trailing
    )
    $0.sourceFrameInset = .zero
    
    $0.dismissal.dragMovesPopoverOffScreen = false
    $0.rubberBandingMode = .none
    $0.blocksBackgroundTouches = true
    $0.accessibility.shiftFocus = false
    $0.accessibility.dismissButtonLabel = nil
 }

ios15 ios16

The second test was the same, but with $0.screenEdgePadding = .zero It looks almost fine, but there is a small little red gap at the top of it ios15 ios16

It seems like a bug. And I still have a question, is here a possibility to create a full screen popover?

Thanks for answers

alinless avatar Sep 13 '22 15:09 alinless