Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
morizotter committed Jun 25, 2015
1 parent 57bf9f9 commit a6984f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SwiftyDrop/Drop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public final class Drop: UIView {
s.removeFromSuperview()
}
}

NSNotificationCenter.defaultCenter().addObserverForName(UIDeviceOrientationDidChangeNotification, object: nil, queue: nil) { [weak self] notification in
if let s = self {
s.updateHeight()
}
}
}

required public init(coder aDecoder: NSCoder) {
Expand Down Expand Up @@ -170,7 +176,7 @@ extension Drop {
drop.layoutIfNeeded()
}
}) { [weak drop] finished -> Void in
if let drop = drop { drop.removeFromSuperview(); println("removeFromSuperView") }
if let drop = drop { drop.removeFromSuperview() }
}
}

Expand Down

0 comments on commit a6984f2

Please sign in to comment.