Kayıtlar

constants etiketine sahip yayınlar gösteriliyor

Swift 4 - Useful Information - The Basics

Resim
Swift is ready for your next iOS and OSX project - or for addition into your current app - because Swift code works side-by-side with Objective-C. We will be covering  Swift version 4  in this course. Use of the semicolon (;) following each statement is fully optional in Swift, unless you wish to place several independent statements on a single line, in which case the semi-colon is required. Multiline comments in Swift can be nested within other multiline comments. // this is a comment /* this is also a comment, but written over multiple lines */ You can run, save, and share your Swift codes on our  Code Playground , without installing any additional software. Constants and Variables Multiple variables can be declared on a single line, separated with commas. let x = 0.0, y = 0.0, z = 0.0 The value of a  constant  can  never  be changed. Trying to assign a new value to a  constant  results in an error. Constant and  vari...