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

Re: Swift 2 branch #6

Open
pjebs opened this issue Sep 27, 2015 · 2 comments
Open

Re: Swift 2 branch #6

pjebs opened this issue Sep 27, 2015 · 2 comments

Comments

@pjebs
Copy link

pjebs commented Sep 27, 2015

When you resize/move the UIView after the initial frame has been set, the outer moving circle adjusts but the static circle stays at the initial locations.

Also, the swift 2 branch should become the main branch.
Also there is a spelling mistake: "Grow" should be "Glow".

@pjebs
Copy link
Author

pjebs commented Sep 27, 2015

override func viewDidLoad() {
    super.viewDidLoad()

loader = LiquidLoader(frame: CGRect(x: 50, y: 50, width: 100, height: 100), effect: .GrowCircle(UIColor.redColor()))

    loader!.translatesAutoresizingMaskIntoConstraints = false

    self.view.addSubview(loader!)

    let views: [String:AnyObject] = ["loader": loader!]

    view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|-[loader]-|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views))
    view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|-[loader]-|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views))

@pjebs
Copy link
Author

pjebs commented Sep 27, 2015

image
image

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

No branches or pull requests

1 participant