PopMenu icon indicating copy to clipboard operation
PopMenu copied to clipboard

make pop menu above source view

Open iceboxi opened this issue 5 years ago • 0 comments

Checklist

  • [x] I've tested my changes.
  • [x] I've read the Contribution Guidelines.
  • [x] I've updated the documentation if necessary.

Motivation and Context

I want the pop menu above source view like system menu view controller, and custom pop menu shadow setting.

Description

About above source view add a parameter popMenuAboveSourceView in PopMenuAppearance default is false like now if set it true, the pop menu will above source view upper or downer

About add custom shadow add a parameter popMenuShadowColor with new struct PopMenuShadowColor by default, you will get the setting like old version, if you want to custom shadow setting, just call this method

public static func custom(offset: CGSize = .zero, opacity: Float = 0.65, radius: CGFloat = 20, color: Color = .black) -> PopMenuShadowColor

iceboxi avatar Jun 04 '20 04:06 iceboxi