Month: April 2023
Apr 22, 2023 iOS
SwiftUI interview questions and answer
Q1: What is SwiftUI? A: SwiftUI is a framework provided by Apple to build user interfaces for their platforms such as iOS, macOS, tvOS, and watchOS. It is based on the declarative programming paradigm, which means you describe the user…
Apr 04, 2023 iOS
How to display SwiftUI sheet Half screen
To present a SwiftUI sheet that takes up half of the screen, you can use the .sheet(isPresented:onDismiss:content:) modifier with a custom View that conforms to the View protocol. Here's an example: struct ContentView: View { @State private var isPresented =…