AtuThin - အတူသင်

PROGRAMMING LANGUAGES · Programming ဘာသာစကားများ

Swift သင်ခန်းစာများ

iPhone/iPad app တွေအတွက် Apple ရဲ့ ဘာသာစကား အခြေခံမှ လက်တွေ့အထိ

သင်ခန်းစာ 102 ခု · Interview မေးခွန်း 50 · Quiz မေးခွန်း 20 · အဆင့် Programming ဘာသာစကားများ

ပထမ သင်ခန်းစာမှ စတင်ပါ

အခန်း 1

  1. Swift ဆိုတာ ဘာလဲ — Apple ရဲ့ ဘာသာစကား
  2. Apple Ecosystem နဲ့ Swift သုံးတဲ့ နေရာများ
  3. Xcode ဆိုတာ ဘာလဲ — IDE မိတ်ဆက်
  4. Xcode Install လုပ်ခြင်းနဲ့ ပထမဆုံး Project
  5. Playground ဆိုတာ ဘာလဲ — မြန်မြန် စမ်းသပ်ရန်
  6. Playground မှာ ပထမဆုံး Code ရေးခြင်း
  7. print() နဲ့ Console Output
  8. Comment ရေးနည်း နဲ့ Code စနစ်ကျမှု
  9. Swift Version နဲ့ iOS Version ဆက်နွယ်ပုံ
  10. Swift သင်ယူမယ့် လမ်းကြောင်း နဲ့ အလုပ်အကိုင်

အခန်း 2

  1. var — ပြောင်းလဲနိုင်တဲ့ Variable
  2. let — Constant နဲ့ မပြောင်းလဲမှု
  3. Type Annotation နဲ့ Type Inference
  4. Int နဲ့ Double — ကိန်းဂဏန်း အမျိုးအစားများ
  5. String အခြေခံ — စာသား ကိုင်တွယ်ခြင်း
  6. String Interpolation — စာသား တွဲခြင်း
  7. Bool နဲ့ Logic အခြေခံ
  8. Type Conversion — Int/Double/String ပြောင်းခြင်း
  9. Typealias နဲ့ Naming စည်းမျဉ်းများ
  10. Tuple — တန်ဖိုး အများကြီး တစ်စုတည်း

အခန်း 3

  1. if / else — အခြေအနေ စစ်ခြင်း
  2. else if နဲ့ Nested if
  3. guard အခြေခံ — Early Exit
  4. switch အခြေခံ — တန်ဖိုး နှိုင်းယှဉ်ခြင်း
  5. switch မှာ Range နဲ့ Tuple Pattern
  6. switch မှာ where Clause
  7. for-in Loop — Range နဲ့ Collection လှည့်ခြင်း
  8. while နဲ့ repeat-while Loop
  9. break နဲ့ continue — Loop ထိန်းချုပ်ခြင်း
  10. Ternary Operator နဲ့ နှိုင်းယှဉ် Operator များ

အခန်း 4

  1. Function သတ်မှတ်ခြင်းနဲ့ ခေါ်သုံးခြင်း
  2. Parameter နဲ့ Return Value
  3. Argument Label နဲ့ Parameter Name
  4. Default Parameter Value
  5. Variadic Parameter နဲ့ inout
  6. Function Type — Function ကို Variable လို သုံးခြင်း
  7. Closure အခြေခံ — အမည်မဲ့ Function
  8. Closure Shorthand — $0 နဲ့ အတိုကောက် ရေးနည်း
  9. Trailing Closure Syntax
  10. Capturing Values နဲ့ Escaping Closure အခြေခံ

အခန်း 5

  1. Optional ဆိုတာ ဘာလဲ — nil သဘောတရား
  2. Optional ကြေညာခြင်းနဲ့ nil ပေးခြင်း
  3. Force Unwrap (!) နဲ့ အန္တရာယ်
  4. if let — Optional Binding
  5. guard let — Early Exit နဲ့ Optional
  6. Optional Chaining — ?. နဲ့ ဆက်ခေါ်ခြင်း
  7. Nil-Coalescing Operator (??)
  8. Optional နဲ့ Dictionary / Array
  9. Implicitly Unwrapped Optional အခြေခံ
  10. Optional ကို လက်တွေ့ သုံးခြင်း — Form Data စစ်ခြင်း

အခန်း 6

  1. Struct သတ်မှတ်ခြင်းနဲ့ Instance ဆောက်ခြင်း
  2. Property များ — Stored နဲ့ Computed
  3. Method များ — Struct ထဲက Function
  4. mutating Method — တန်ဖိုး ပြောင်းတဲ့ Method
  5. init — Initializer နဲ့ Memberwise Init
  6. Class အခြေခံ — Reference Type
  7. Value Type vs Reference Type ကွာခြားချက်
  8. Class Inheritance — Subclass ဆောက်ခြင်း
  9. Property Observer — willSet / didSet
  10. Struct လား Class လား — ရွေးချယ်နည်း

အခန်း 7

  1. Enum အခြေခံ — Case များ သတ်မှတ်ခြင်း
  2. Enum နဲ့ switch — Exhaustive စစ်ခြင်း
  3. Raw Value Enum
  4. Associated Value — Case နဲ့အတူ Data သယ်ခြင်း
  5. Enum ထဲက Method နဲ့ Computed Property
  6. Protocol အခြေခံ — စည်းမျဉ်း သတ်မှတ်ခြင်း
  7. Protocol ကို Struct/Class က လိုက်နာခြင်း
  8. Protocol Extension — Default အပြုအမူ
  9. Protocol ကို Type အဖြစ် သုံးခြင်း
  10. Protocol-Oriented Programming အခြေခံ စုစည်းချက်

အခန်း 8

  1. Array အခြေခံ — စာရင်း ဆောက်ခြင်း
  2. Array Method များ — append, remove, count
  3. Dictionary အခြေခံ — Key-Value
  4. Dictionary Update နဲ့ Optional Return
  5. Set အခြေခံ — ထပ်မပါတဲ့ တန်ဖိုးများ
  6. Set Operation — union, intersection
  7. Collection လှည့်ခြင်း — for-in နဲ့ enumerated
  8. map — တန်ဖိုးတွေ ပြောင်းခြင်း
  9. filter နဲ့ reduce
  10. sorted နဲ့ Higher-Order Function စုစည်းချက်

အခန်း 9

  1. Error ဆိုတာ ဘာလဲ — Error Protocol
  2. throw — Error ပစ်ခြင်း
  3. throws Function ရေးခြင်း
  4. do-catch — Error ဖမ်းခြင်း
  5. try? နဲ့ try! ကွာခြားချက်
  6. Multiple Catch Pattern
  7. Result Type အခြေခံ — success/failure
  8. Result ကို switch နဲ့ ကိုင်တွယ်ခြင်း
  9. defer — နောက်ဆုံး လုပ်ရမယ့် အလုပ်
  10. လက်တွေ့ — Login စစ်ဆေးတဲ့ Error Handling

အခန်း 10

  1. SwiftUI ဆိုတာ ဘာလဲ — Declarative UI
  2. View နဲ့ Text, Image အခြေခံ
  3. VStack, HStack, ZStack — Layout
  4. Button နဲ့ Action
  5. @State — UI အခြေအနေ ထိန်းခြင်း
  6. TextField နဲ့ @Binding အခြေခံ
  7. List — စာရင်း ပြခြင်း
  8. NavigationStack — စာမျက်နှာ ပြောင်းခြင်း
  9. လက်တွေ့ Project — ဆိုင် ပစ္စည်းစာရင်း App
  10. လက်တွေ့ Project — To-Do App နဲ့ App ပြီးမြောက်ခြင်း

သင်ယူမှု စစ်ဆေးပါ