Skip to content
Hyebin (Helia) edited this page Sep 13, 2024 · 2 revisions

🧊 Property Sorting Rule

  1. λ³€μˆ˜ μˆœμ„œλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€.
1. Property Wrapper
    1. @Environment
    2. @StateObject
    3. @ObservableObservable
    4. @FetchRequest λ“±
2. State & Binding
    1. @State
    2. @Binding
3. λ³€μˆ˜ & μƒμˆ˜
    1. private var
    2. private let
    3. var
    4. let
  1. class, struct λ‹€μŒμ— 곡백을 두지 μ•ŠμŠ΅λ‹ˆλ‹€.
Clone this wiki locally