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

Added support for shadow as text attribute #38

Closed
andymedvedev opened this issue Jun 19, 2018 · 1 comment
Closed

Added support for shadow as text attribute #38

andymedvedev opened this issue Jun 19, 2018 · 1 comment
Assignees
Milestone

Comments

@andymedvedev
Copy link

How can i set shadow for style?

@andymedvedev
Copy link
Author

Discovered an answer.

let someStyle = Style {
...
}

let shadow = NSShadow()
shadow.shadowOffset = CGSize(width: 1, height: 1)
shadow.shadowColor = UIColor.black
        
someStyle.set(attribute: shadow, forKey: .shadow)

@malcommac malcommac changed the title Shadow for style Added support for shadow as text attribute Aug 31, 2018
@malcommac malcommac self-assigned this Aug 31, 2018
@malcommac malcommac added this to the 2.0.2 milestone Aug 31, 2018
malcommac added a commit that referenced this issue Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants