CaliCastle / PopMenu

A fully customizable popup style menu for iOS 😎
https://popmenu.cali.so
MIT License
1.62k stars 185 forks source link

make pop menu above source view #54

Open iceboxi opened 4 years ago

iceboxi commented 4 years ago

Checklist

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