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/refactoring matching desings #18

Merged
merged 33 commits into from
Aug 28, 2015

Conversation

RamonGilabert
Copy link
Contributor

No description provided.


func setupConstraints() {

for attribute: NSLayoutAttribute in [.CenterX, .CenterY] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, I understand, why all the hassle with not adding dependencies, but after trying Masonry/Cartography default AutoLayout syntax looks really weird.

Nice idea to keep it away from logic-related code.

On the other hand, may be overcomplicated if file grows. Splitting into 2 separate files i.e. Class.swift + ClassLayout.swift may be an option if there are too much constraints.

@RamonGilabert RamonGilabert changed the title [WIP] Improvements/refactoring matching desings Improvements/refactoring matching desings Aug 28, 2015
@@ -47,21 +47,21 @@ public class ImageGalleryView: UIView {
let view = UIView()
view.setTranslatesAutoresizingMaskIntoConstraints(false)
view.addGestureRecognizer(self.panGestureRecognizer)
view.backgroundColor = self.configuration.backgroundColor
view.backgroundColor = UIColor.blackColor().colorWithAlphaComponent(0.6)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool 😎

@zenangst
Copy link
Contributor

@hyperoslo/myshop-ios This looks awesome! What do you guys think?

static let indicatorWidth: CGFloat = 41
static let indicatorHeight: CGFloat = 8
}

lazy public var collectionView: UICollectionView = { [unowned self] in
lazy public var collectionView: UICollectionView = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[unowned self] in? 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fuck! 😄

@vadymmarkov
Copy link
Contributor

@RamonGilabert Looks great!

vadymmarkov added a commit that referenced this pull request Aug 28, 2015
…ng-desings

Improvements/refactoring matching desings
@vadymmarkov vadymmarkov merged commit 4e978f9 into master Aug 28, 2015
@vadymmarkov vadymmarkov deleted the improvements/refactoring-matching-desings branch August 28, 2015 09:15
@RamonGilabert
Copy link
Contributor Author

🍶

@zenangst
Copy link
Contributor

@@ -3,9 +3,9 @@ import UIKit
public class ImageStack {

public struct Notifications {
public static let imageDidPush = "imageDidPush:"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. This needs to be checked.

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's a notification name, not a method. The name of the notification is imageDidPush, not imageDidPush:.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I did few tests to check that it works correctly. Seems that I've just copied selector.

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.

4 participants