-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add properties for CALayer appearance #34
Conversation
Codecov Report
@@ Coverage Diff @@
## master #34 +/- ##
=======================================
Coverage 95.23% 95.23%
=======================================
Files 5 5
Lines 336 336
=======================================
Hits 320 320
Misses 16 16 Continue to review full report at Codecov.
|
Example/Gluon/GluonApp.swift
Outdated
} | ||
|
||
static func render(props: Props, hooks: Hooks) -> AnyNode { | ||
let left = hooks.state(0.5 as Float) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please rename this to a more sensible name, maybe just plain state
? left
doesn't seem like a good fit as it doesn't seem to be related to any position properties in any way
style.opacity.flatMap { view.layer.opacity = $0 } | ||
style.shadowColor.flatMap { view.layer.shadowColor = UIColor($0).cgColor } | ||
style.shadowOpacity.flatMap { view.layer.shadowOpacity = $0 } | ||
style.shadowRadius.flatMap { view.layer.shadowRadius = CGFloat($0) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like masksToBounds
is missing here
Resolve #30
Add: