I want to create a settings menu like in Apple Books app. I think the best way to do this task is to use a PopoverContentController
with a StackView
inside. But I have a few problems.
first problem:
If I use the default PopoverContentController
, I see the arrow, but there is no arrow in my image. I use this line to remove the direction of the arrow:
popoverPresentationController.permittedArrowDirections = UIPopoverArrowDirection.init(rawValue: 0)
But in this case I don’t see the PopoverContentController
smooth down open animation because I removed the arrow. How to fix it?
second problem:
To get the menu like in the example image, I need to remove the background to see the distance between the elements. I’m trying to use this code
popoverPresentationController.backgroundColor = .celar
or this:
view.backgroundColor = .celar
This doesn’t help me. I see blur background. How to fix it?