Preview in SwiftUI

Once you have finished the SwiftUI code, it is always a good idea to preview it before implement any function code. Luckily, such feature is natively supported by SwiftUI — PreviewProvider:

Example of showing previews: