Swift

Daniel Hinker
Daniel Hinker
19,046 Points

Why are you able to use do/catch and try inside of the purchase function when it doesn't have throws after the function?

It is written like this in the video: @IBAction func purchase()

but shouldn't it be like this: @IBAction func purchase() throws