-
Notifications
You must be signed in to change notification settings - Fork 3
Code Convention
Hyungyu Kim edited this page Nov 12, 2021
·
9 revisions
StyleShare - swift style guide μ κΈ°λ³ΈμΌλ‘ λ°λΌκ°λ€.
μλλ StyleShare μμ λ³κ²½ νΉμ μΆκ°ν΄μ μ μ©ν convention μ΄λ€.
- λμ¬μν + λͺ©μ μ΄ ex) touchBackButton
- pop, push, present, dismiss
- λμ¬ + To + λͺ©μ μ§ λ·° (λ€μμ λ³΄μΌ λ·°)
- dismissλ dismiss + νμ¬ λ·°
- register + λͺ©μ μ΄ ex) registerXib
- assignDelegate
- λ·° μ΄λ¦ + Delegate
- μλΉμ€ν¨μλͺ
+ WithAPI ex) getListWithAPI
- λμ¬μν + λͺ©μ μ΄ + WithAnimation
- showButtonsWithAnimation
()
// MARK: - Properties
// MARK: - @IBOutlet Properties
// MARK: - @IBAction Properties
// MARK: - View Life Cycle
// MARK: - Extensions
> setUI, registerXib, assignDelegate λ±
// MARK: - Network
> λ€νΈμν¬ λͺ©μ μ κ°μ§ ν¨μλ€
// TODO: -
> ν΄μΌνλ κ²
// FIXME: -
> κ³ μΉ μμ
- `self`λ μ΅λν μ¬μ©μΒ μ§μ
- `viewDidLoad()`μμλΒ ν¨μνΈμΆλ§
- delegate μ§μ , UIκ΄λ ¨ μ€μ λ±λ± λͺ¨λ ν¨μμ μν μ λ°λΌμ extension μΌλ‘ λΉΌκΈ°