skip to Main Content

Ios swift – Add image insde CAShapeLayer

So I am currently trying to add a image inside the circularShapeLayer in the below code. Here is the full code: import Foundation import UIKit @IBDesignable class PlainHorizontalProgressBar: UIView { @IBInspectable var color: UIColor = .gray { didSet { setNeedsDisplay()…

VIEW QUESTION

Ios swift – How to do programmatic navigation in swiftui using navigationstack once state changes?

struct LoginView: View { @State var isUserLoggedIn = false NavigationStack{ //..... Button { Task{ await viewModel.doLogin(email: email, password: password) } } label: { Text(Constants.LOGIN) .foregroundColor(Constants.BACKGROUND_COLOR) .font(Font.custom(Constants.FREDOKA_MEDIUM, size: 25)) .frame(maxWidth: .infinity) } }.onChange(of: isUserLoggedIn) { isUserLoggedIn in debugPrint(newPasswordValue) } } I…

VIEW QUESTION
Back To Top
Search