Hey does someone know how can I create rectangle progress bar in swiftUI? Something like this? https://i.stack.imgur.com/CMwB3.gif I have tried this: struct
Using Swift 5.2 I would like to create a function to dynamically change the Shape I have a view like import SwiftUI struct CardView: View { let suit : S
Scenario: RootScreen presents DateScreen modally though .sheet DateScreen has a DatePicker with CompactDatePickerStyle() and a button to dismiss the modal User
I'm trying to align controls as shown in "Storyboard" pic using the SwiftUI but not sure why still there is distance between segment control and search-Bar, and
using my code below how can I swipe right to left on a Task to have an option to be able to delete it. I have tried using .SwipeAction but have gotten no luck w
I try to do the architecture for a bigger, production ready SwiftUI App. I am running all the time into the same problem which points to a major design flaw in
When I'm long-pressing on a button in list row, all of context menus for all buttons are shown. It looks like the whole list row is selected. How can I make it
I followed a tutorial on getting Url from a Document a user chooses and be able to display it on the View. My problem now is I want to add those Url's into an a
I am having problems to translate UIKit architecture patterns to SwiftUI. My current pattern is mostly MVVM with Coordinators/Routers. The MVVM part seems quite
I am trying to determine whether the device being used is iPhone or iPad. Please see this question: Detect current device with UI_USER_INTERFACE_IDIOM() in Swi
I found a solution to manually set light/dark mode in a swiftui app in another thread found here https://stackoverflow.com/a/58476468/11698443 it mostly works,
I'm creating an app with Swift 5 and SwiftUI. The application runs as a status bar app (LSUIElement is true). I've created a simple preferences window with Swif
When I try to preview one of my views in the canvas I keep getting the following error: PreviewUpdateTimedOutError: Updating took more than 5 seconds All
@State and @Binding work so well in SwiftUI, as long as you put all the view's data inside itself, like this: struct ColorView: View { @Binding public var
I have the following view. import SwiftUI struct AppView: View { @EnvironmentObject var appStore: AppStore var body: some View { ZStack {
I have a view which uses Geometry Reader to calculate how large the image area should be: GeometryReader { metrics in ZStack{ self.image
I have a Button where when it gets pressed, it performs some actions. But I would like to modify the same Button to detect a longer press, and perform a differe
I want the Text("111") to have the equal height of the VStack containing 2222... and 333.... struct Test7: View { var body: some View { HStack (alignment:
I'm using a "RectGetter" to get the CGRect of a View. Like this: Text("Hello") .background(RectGetter(rect: self.$rect)) struct RectGetter: View {
I'm starting to learn SwiftUI and i'm looking for better solution to fetch user data after successful login. For example, i need to see if the user has the acco