Swift Tip: type annotation can be different from what type inference would choose.

Type Inference: var distance = 320 // Swift chooses Int

Type Annotation: var distance: Double = 320 // Swift told to use Double

www.hackingwithswift.com/sixty/1/7…