SwiftUI 哲學之底層邏輯

蘋果用一句話解釋了SwiftUI的底層邏輯 every @State is a source of truth and the views are a function of state, @State是真理的源,視圖是state的函數 數據表示 View = f(state) 上面公式將序列式的視圖邏輯,轉變爲離散的狀態。 image.png 更多SwiftUI教程和代碼關注專欄 請關注我的專欄
相關文章
相關標籤/搜索