Skip to content

Commit

Permalink
Fix animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed Apr 23, 2017
1 parent 8c9c300 commit cb9ce7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NativePopup/NativePopup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public class NativePopup: UIView {
// TODO: adjust animation
UIView.animate(withDuration: 0.2,
animations: {
self.alpha = 0
// for visual effecto view smooth animation
self.subviews.forEach { $0.alpha = 0 }
self.transform = self.transform.scaledBy(x: 0.8, y: 0.8)
},
completion: { finished in
Expand Down

0 comments on commit cb9ce7b

Please sign in to comment.