Skip to content

Instantly share code, notes, and snippets.

@rednebmas
Created December 3, 2017 08:23
Show Gist options
  • Select an option

  • Save rednebmas/7872ede802c811cc1f17232c007e760a to your computer and use it in GitHub Desktop.

Select an option

Save rednebmas/7872ede802c811cc1f17232c007e760a to your computer and use it in GitHub Desktop.

Revisions

  1. rednebmas created this gist Dec 3, 2017.
    11 changes: 11 additions & 0 deletions WindowPopAnimation.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
    let window = UIApplication.shared.windows[0]
    UIView.animate(withDuration: 0.25, animations: {
    window.transform = CGAffineTransform(scaleX: 1.1, y: 1.1)
    }, completion: { (completed) in
    UIView.animate(withDuration: 0.25, animations: {
    window.transform = CGAffineTransform(scaleX: 1.0, y: 1.0)
    }, completion: { (completed) in
    })
    })
    }