Change UIPopoverView background + arrow color

后端 未结 5 1449
猫巷女王i
猫巷女王i 2021-01-03 18:19

Is there a way to simply change the UIPopoverView background color (including its arrow) on iOS8?

(I did read a couple of articles on customizing \"UIPopove

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 19:00

    SwiftUI : Xcode 11.5

    Add the .background modifier with the color and add .edgesIgnoringSafeArea modifier.

    .popover(isPresented: self.$vm.presentMenu, content: {
            self.menuView
               .background(Color.bgGray.edgesIgnoringSafeArea(.all))
    })
    

提交回复
热议问题