In Swift, @state is a local state hook, similar to state hook “useState” in React, it will monitor the change of a variable. But @state don't have the setState function followed. example: @State var backgroundColor: Color = Color.red Both state hook...
sunbathsoft.com1 min readNo responses yet.