Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make pop menu above source view #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

iceboxi
Copy link

@iceboxi iceboxi commented Jun 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant