Skip to content

Commit

Permalink
Merge pull request #30 from alecdoconnor/master
Browse files Browse the repository at this point in the history
Add @objc to support Selectors
  • Loading branch information
leoru authored Jan 31, 2019
2 parents 4a4116a + 5e24cfa commit 0594003
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SwiftLoader/SwiftLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SwiftLoader: UIView {
}
}

func rotated(notification: NSNotification) {
@objc func rotated(notification: NSNotification) {

let loader = SwiftLoader.sharedInstance

Expand Down Expand Up @@ -70,7 +70,7 @@ public class SwiftLoader: UIView {
loader.update()

NotificationCenter.default.addObserver(loader, selector: #selector(loader.rotated(notification: )),
name: NSNotification.Name.UIDeviceOrientationDidChange,
name: UIDevice.orientationDidChangeNotification,
object: nil)

let height : CGFloat = UIScreen.main.bounds.size.height
Expand Down Expand Up @@ -229,7 +229,7 @@ public class SwiftLoader: UIView {
self.backgroundLayer = CAShapeLayer()
self.backgroundLayer?.strokeColor = self.config.spinnerColor.cgColor
self.backgroundLayer?.fillColor = self.backgroundColor?.cgColor
self.backgroundLayer?.lineCap = kCALineCapRound
self.backgroundLayer?.lineCap = CAShapeLayerLineCap.round
self.backgroundLayer?.lineWidth = CGFloat(self.lineWidth!)
self.layer.addSublayer(self.backgroundLayer!)
}
Expand Down

0 comments on commit 0594003

Please sign in to comment.