Countdown timer SwiftUI – Ios swift
How to make a countdown timer daily at a specific time. When I open the application again, the timer is reset and the countdown starts again, I'm trying to figure out how to make the timer start again after its…
How to make a countdown timer daily at a specific time. When I open the application again, the timer is reset and the countdown starts again, I'm trying to figure out how to make the timer start again after its…
I was trying to create a custom View with rotation effects in SwiftUI. Instead of using rotation gestures, I was trying to use the Drag Gesture to rotate the Parent by adding a separate view to the parent. Dragging the…
I'm having some issues working out an "onTapGesture" modifier with a custom view. struct CheckView: View { @State var isChecked: Bool = false var title: String var unitPrice: String var body: some View { Button(action: toggle){ HStack{ Image(systemName: isChecked ?…
Let me know if this is a duplicate question. I am developing an app with a photo picker. I am on view A and there is a + button on it. When I tap on the +, I want to…
I want the status bar and at the bottom to be white (Same as root background color), but no idea, do i need to get status bar height and add margin top and bottom? Here is my code and the…
I am making an app where I am generating points with random position. I want to connect first point with the second one with the line, and that the second with the third, etc. My issue is that it is…
I want to change rate parameter and display in ForEach. // ViewModel.swift @MainActor final class ViewModel: ObservableObject { let serviceContainer: ServiceContainerProtocol @Published var funds: [FundModel] = [] ... init(serviceContainer: ServiceContainerProtocol) { self.serviceContainer = serviceContainer Task { await getFunds() } ...…
I made a custom shape in SwiftUI with the following code: struct CustomShape: Shape { func path(in rect: CGRect) -> Path { var path = Path() path.move(to: CGPoint(x: rect.minX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX, y:…
I'm total newbie in coding and are trying to make a small app for my own. This is working as I want but I've no idea how to make the movie loop? Tried to look everywhere but to difficult for…
I am following the ios app development tutorial for the Scrumdinger app and I have followed the tutorial and it has worked until I finished the Passing Data with Binding Section. I keep gettin an error on my line 58…