This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Alamofire | |
class Something { | |
var postCancelled: Bool = false | |
func postToIp(ip: String) { | |
let parameters = [ | |
"a": "value 1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class UIStoryboardSegueFromRight: UIStoryboardSegue { | |
override func perform() | |
{ | |
let src = self.sourceViewController as UIViewController | |
let dst = self.destinationViewController as UIViewController | |
src.view.superview?.insertSubview(dst.view, aboveSubview: src.view) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var light1: UIImageView! | |
@IBOutlet weak var light2: UIImageView! | |
@IBOutlet weak var light3: UIImageView! | |
enum BlinkingStatus { | |
case Blinking, Off |