Category Archives: Swift, SwiftUI

SwiftUI – clipShape()

By | 23/09/2020

In this post, we will see how to use clipShape() in order to clip an image controlling its shape.But what is clipShape()?From Apple developer web site:“Sets a clipping shape for a view.Use clipShape(_:style:) to clip the view to the provided shape. By applying a clipping shape to a view, you preserve the parts of the… Read More »

SwiftUI – TabView

By | 19/06/2020

In this post, we will see how to create a TabView, used to show two different Pages. We start, creating two SwiftUI views called Page1 and Page2: [PAGE1.SWIFT] [Page2.swift] Then, we will add another SwiftUI view called TabMenu where, we will define the TabView: [TABMENU.SWIFT] We have done and, if we run the application, this… Read More »