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

Improvements for custom styling #67

Merged
merged 4 commits into from
Mar 22, 2016
Merged

Conversation

diegosanchezr
Copy link
Contributor

Allows better reuse of default styles in cells
Allows better customization of input component

@codecov-io
Copy link

Current coverage is 74.90%

Merging #67 into dev will increase coverage by +12.67% as of d533c84

@@              dev    #67   diff @@
====================================
  Files          57     14     -43
  Stmts        2881    769   -2112
  Branches        0      0        
  Methods         0      0        
====================================
- Hit          1793    576   -1217
  Partial         0      0        
+ Missed       1088    193    -895

Review entire Coverage Diff as of d533c84

Powered by Codecov. Updated on successful CI builds.

 - Allows reusing default styles by injecting parameters
 - Insets and fonts for input component
@diegosanchezr diegosanchezr changed the title [WIP] Improvements for custom styling Improvements for custom styling Mar 21, 2016
…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})
Copy link
Contributor

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]

Copy link
Contributor Author

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'

Viacheslav-Radchenko added a commit that referenced this pull request Mar 22, 2016
Improvements for custom styling
@Viacheslav-Radchenko Viacheslav-Radchenko merged commit 193fd45 into badoo:dev Mar 22, 2016
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

3 participants