Post

Replies

Boosts

Views

Activity

Reply to Custom styles for popovertips
For anyone facing the same problem, I noticed that this was only a problem in SwiftUI. If we present the PopoverTip using TipUIPopoverViewController in UIKit and change the viewStyle, it works as expected. However to change the whole popover background color, including the arrow. you have to change the popoverPresentationControllers backgroundColor. We mix UIKit and SwiftUI in our project so this should be fine in our case. For example: let controller = TipUIPopoverViewController(myCustomTip, sourceItem: myNewFeatureButton) controller.viewStyle = MyCustomTipStyle() controller.popoverPresentationController?.backgroundColor = .red present(controller, animated: true)
Dec ’23