iiTable of Contents
About the Tutorial .................................................................................................................................. iAudience ................................................................................................................................................ iPrerequisites .......................................................................................................................................... iExecute Swift Online............................................................................................................................... iDisclaimer & Copyright ........................................................................................................................... iTable of Contents .................................................................................................................................. ii- SWIFT – OVERVIEW ............................................................................................................ 1
- SWIFT – ENVIRONMENT..................................................................................................... 2
Try it Option Online ............................................................................................................................... 2Local Environment Setup ....................................................................................................................... 2- SWIFT – BASIC SYNTAX ....................................................................................................... 6
Import in Swift ...................................................................................................................................... 6Tokens in Swift ...................................................................................................................................... 6Comments ............................................................................................................................................. 7Semicolons ............................................................................................................................................ 7Identifiers .............................................................................................................................................. 7Keywords............................................................................................................................................... 8Whitespaces .......................................................................................................................................... 9Literals ................................................................................................................................................... 9- SWIFT – DATA TYPES ........................................................................................................ 10
Built-in Data Types .............................................................................................................................. 10Bound Values ...................................................................................................................................... 11Type Aliases ......................................................................................................................................... 11Type Safety .......................................................................................................................................... 12