Content deleted Content added
reference to MVVM |
→Examples: citation |
||
Line 34:
== Examples ==
The following is an example of a simple [["Hello, World!" program|Hello World]] program. It is standard practice in SwiftUI to separate the application struct and views into different structs, according to the [[Model–view–viewmodel|Model–View–ViewModel]] (MVVM) architectural pattern<ref>{{
<syntaxhighlight lang="swift">
import SwiftUI
|