Post

Replies

Boosts

Views

Activity

Comment on Why Doesnt this Wrap Correctly?
hi @claude31 i udnerstand what you mean. o copy pasted the c ode as it is , i explicitly declar3d it because it is a subview that will be used in a for loop. i figured as a param reusing it will not be resource heavy. or is it the same as having GeometryReader in every struct like what you did
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Comment on Multiple environmentObject
Having this setup means that changes will take effect for network and product. what if i want only properties in network to have objectWillChange.send() take effect? I do not want those in product to be rebuilt. if both of these are placed in 1 ObservableObject model, then all their properties gets rebuilt instead of just those in network
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’22
Comment on Why Doesnt this Wrap Correctly?
hi @claude31 i udnerstand what you mean. o copy pasted the c ode as it is , i explicitly declar3d it because it is a subview that will be used in a for loop. i figured as a param reusing it will not be resource heavy. or is it the same as having GeometryReader in every struct like what you did
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Comment on How To Set Values To Binding Variable
the value works ok from the Child View. cityUrlId is set. and i dismiss the child view so i modify cityUrlId from the parent view and that is where the issue comes in. i do some prints in the setter it actually gives the correct value but the getter does not.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Comment on Multiple environmentObject
Having this setup means that changes will take effect for network and product. what if i want only properties in network to have objectWillChange.send() take effect? I do not want those in product to be rebuilt. if both of these are placed in 1 ObservableObject model, then all their properties gets rebuilt instead of just those in network
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22