-
Notifications
You must be signed in to change notification settings - Fork 593
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
Improvements for custom styling #67
Conversation
Current coverage is
|
- Allows reusing default styles by injecting parameters - Insets and fonts for input component
…arance don't work for any app (unlocalized texts) so it's better to remove the default value and make existing apps get a compiler error.
@@ -73,9 +74,15 @@ class AccessoryViewRevealer: NSObject, UIGestureRecognizerDelegate { | |||
} | |||
|
|||
private func revealAccessoryView(atOffset offset: CGFloat) { | |||
// Find max offset (cells can have slighlty different timestamp size ( 3.00 am vs 11.37 pm ) | |||
let cells: [AccessoryViewRevealable] = self.collectionView.visibleCells().filter({$0 is AccessoryViewRevealable}).map({$0 as! AccessoryViewRevealable}) |
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.
I think we ca write it like this .filter(...) as! [AccessoryViewRevealable]
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.
It doesn't compile unfortunately: 'AccessoryViewRevealable' is not a subtype of 'UICollectionViewCell'
Improvements for custom styling
Allows better reuse of default styles in cells
Allows better customization of input component