Post

Replies

Boosts

Views

Activity

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:
Jan ’23
Comment on How to set instance of a property of the same class type
I have decided to convert a lib into Swift since it's the one library that works for me in Android. And the Clipper libraries do not work with the data that I am using. The instance of "this" is the class itself. e.g. this class https://github.com/ChristianLutz/gpcj/blob/master/gpcj/src/main/java/com/seisw/util/geom/Clip.java line 1536. Currently, I added a setter method instead as a workaround. But i dont think it will work in this scenario PolySimple.java (please use same url) line 333
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’23