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

Commit

Permalink
Merge pull request #38 from KyleMay/swift3
Browse files Browse the repository at this point in the history
Update swift syntax for new xcode beta
  • Loading branch information
morizotter committed Jul 6, 2016
2 parents b9eed16 + 8bb043f commit 42f28d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SwiftyDrop/Drop.swift
Expand Up @@ -73,8 +73,8 @@ public final class Drop: UIView {
self.duration = duration

scheduleUpTimer(duration)
NotificationCenter.default().addObserver(self, selector: "applicationDidEnterBackground:", name: NSNotification.Name.UIApplicationDidEnterBackground, object: nil)
NotificationCenter.default().addObserver(self, selector: "deviceOrientationDidChange:", name: NSNotification.Name.UIDeviceOrientationDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: "applicationDidEnterBackground:", name: NSNotification.Name.UIApplicationDidEnterBackground, object: nil)
NotificationCenter.default.addObserver(self, selector: "deviceOrientationDidChange:", name: NSNotification.Name.UIDeviceOrientationDidChange, object: nil)
}

override init(frame: CGRect) {
Expand All @@ -87,7 +87,7 @@ public final class Drop: UIView {

deinit {
stopUpTimer()
NotificationCenter.default().removeObserver(self)
NotificationCenter.default.removeObserver(self)
}

func applicationDidEnterBackground(_ notification: Notification) {
Expand Down

0 comments on commit 42f28d0

Please sign in to comment.