python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to Keep state of my View Model persistent across a user session in SwiftUI (MVVM)?
I am trying to implement an IOS App following the MVVM architecture. Everything works well when I don't need my state to be persistent as I move through views and navigate back.
However, when a user n...
Khalil Hajji
Votes: 0
Answers: 1
How to assign default modifiers to a SwiftUI view?
I'm trying to make reusable custom views that themselves can be customized later. Ideally I'd be able to define default modifiers like Color, Font, etc that the Views would have without any customizat...

Caleb Bolton
Votes: 0
Answers: 2
Create different stroke styles on same Path - SwiftUI (Based on value between 0-1 like gradient)
In SwiftUI Shapes we can make different color strokes by using gradients.
Eg -
@ViewBuilder
func lineWithSecondColorStyleFromPositionN() -> some View {
let n = 0.5
GeometryReader { gr in
...
Kunal Verma
Votes: 0
Answers: 0