Explore tweets tagged as #iOSBestPractice
【API call 放在 View 還是 ViewModel?】 - 架構分層的實務分析。 API call 應該放在 ViewModel,不是View。 原因: View 負責顯示畫面 -> 不應該涉及邏輯處理。 ViewModel 管理資料與邏輯 -> 負責觸發 API、處理結果並轉為 UI 可用資料。 #MVVM #Networking #iOSBestPractice #MVC #MVVM
0
0
0