Preview in SwiftUI Once you have finished the SwiftUI code, it is always a good idea to preview it before implement any function ...