Introduction
Getting Started c Swiift
Using Swift’s Built-in Types
Working c Data in Swift
Control Flow
Functions and Clousures
Defining Custom Types
Initialization and Access Control
Introduciton to Protocols
Introduction
intro /
swift เป็น core ในการ develop in device ios ต่างๆ รวมถึง watch os ด้วย
declare and use variables
work c different type of data
understanding optionals and collections
control flow of code execution
work c struct , class , enum
Learn initialization and stored / computed properties
use access control to encapsulate logic
build with protocols – การใช้ protocols
– understand protocol-oriented programming
– design flexible , reusable code
what you should know /
concept – declaring and using variables
writing loops and conditional statements
creating and calling fn
Why learn swift ? 1.09/3.12
swift เริ่มตั้งแต่ 2010 – release 2014
-safer , faster , more expressive than objectC
ObjectiveC – powerful แต่ complex
– verbose , error-prone
– harder to read and write
swift – modern , clean syntax
– emphasizes safety and clarity
Getting Started c Swift
Using Swift’s Built-in Types
Working c Data in Swift
Control Flow
Functions and Clousures
Defining Custom Types
Initialization and Access Control
Introduciton to Protocols
