LiquidLoader icon indicating copy to clipboard operation
LiquidLoader copied to clipboard

Re: Swift 2 branch

Open pjebs opened this issue 10 years ago • 2 comments

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 avatar Sep 27 '15 11:09 pjebs

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 avatar Sep 27 '15 11:09 pjebs

image image

pjebs avatar Sep 27 '15 14:09 pjebs