SwiftUI हे Apple चे declarative UI framework आहे: दिलेल्या state साठी UI कसे दिसावे याचे तुम्ही वर्णन करता, आणि ते render व update कसे करावे हे framework ठरवते. UIKit प्रमाणे तुम्ही यापुढे views manually mutate करत नाही — तुम्ही state बदलता आणि UI आपोआप re-render होते.
हे कसे कार्य करते
एक view protocol ला conform करते आणि आपली content एका computed property मधून परत करते. हे view च्या properties चे pure function आहे.
