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

Shadow on popover #97

Open
MohamedAymenHADDAD opened this issue Nov 9, 2017 · 2 comments
Open

Shadow on popover #97

MohamedAymenHADDAD opened this issue Nov 9, 2017 · 2 comments

Comments

@MohamedAymenHADDAD
Copy link

I don't know if you could support this but would it possible to have a shadow instead of an overlay ?
thank you :)

@hamedaakhlaghi
Copy link

hamedaakhlaghi commented Nov 22, 2017

@MohamedAymenHADDAD you can add shadow like this:

        self.popover?.shadowOpacity = 1
        self.popover?.shadowOffset = CGSize(width: 3, height: 3)
        self.popover?.shadowRadius = 3
        self.popover?.opacity = 1

@seamusapple
Copy link

seamusapple commented Aug 9, 2018

@MohamedAymenHADDAD
popover?.layer.shadowOffset = CGSize(width: -3, height: 0) popover?.layer.shadowColor = UIColor.black.cgColor popover?.layer.shadowRadius = 3.0 popover?.layer.shadowOpacity = 1

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

No branches or pull requests

3 participants