I am attempting to create an app in Swift using a Storyboard. I want to have a button trigger the UIProgressView's animation.
*Expected '{' in body of function declaration*
import Cocoa
class ViewController: NSViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override var representedObject: AnyObject? {
didSet {
// Update the view, if already loaded.
}
}
@IBAction func PressKit(sender: AnyObject) {
func startAnimating()
}
}