I'm using Xcode Version 7.0 beta 3. When attempting to use a WKInterfacePicker, I get an error.
Here is my code for my WKInterfaceController:
import WatchKit
import Foundation
class RBWelcomeVC: WKInterfaceController {
@IBOutlet var pickerAllWorkouts: WKInterfacePicker!
override func awakeWithContext(context: AnyObject?) {
super.awakeWithContext(context)
// Configure interface objects here.
}
override func willActivate() {
// This method is called when watch view controller is about to be visible to user
super.willActivate()
}
override func didDeactivate() {
// This method is called when watch view controller is no longer visible
super.didDeactivate()
}
}
Notice my IBOutlet. When I created it by Control dragging from the storyboard. It created the outlet and immediately put this error with it:
Use of undeclared type 'WKInterfacePicker'
Since that didn't work, I tried creating the outlet manually. I typed:
@IBOutlet var pickerAllWorkouts: WKInterfa...
When attempting to let Xcode finish the autocomplete, I noticed that WKInterfacePicker was not a suggestion. The picker did not exist. Is this just a bug or am I doing something wrong?