Noob Swift question--I can\'t figure out what this means in Swift:
public var currentTime: NSTimeInterval? {
return self.audioPlayer?.currentTime
}
>
It is the same as:
public var currentTime: NSTimeInterval? {
get { return self.audioPlayer?.currentTime }
}
When your computed property only has a get, you can omit the word get and the curly brackets.
From the swift guide:
You can simplify the declaration of a read-only computed property by removing the get keyword and its braces: