Post

Replies

Boosts

Views

Activity

Comment on Merge An Array Item's Array Property Based On Property
Hi @Babyj thank you for taking time to analyze. I think i have a problem with your code. Maybe because i did not explicitly describe my use case. I will post it in another comment below with the whole code. The citiesList array will have existing entries. And the list view has a footer to retrieve more rows which can contain duplicates and that is where i wish to do the logic to merge them with the same city name.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Comment on Using if condition in Kingfisher.shared.retrieveImage
The image can actually be accessed via result.get().image but then it seems my if result == .success doesnt work. error message Cannot convert value of type 'Result<RetrieveImageResult, KingfisherError>' to expected argument type 'DispatchTimeoutResult' Thank you. Yours works. I think for a beginner it is hard if one if not familiar when code just goes .something instead of adding the struct or class name to it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Comment on Anybody Use SwiftClipper Here? Can't Instantiate A Class Without Init.
I put the lurl ink for convex hull and graham scan instead because it doesnt let me post the comment. it says im posting something that is not permitted. no idea which part of the code.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Why Not Every Part Of View Is Clickable In NavigationLink
afk but reading through the comments. why would contentShape(Rectangle(..)) work but not frame(). they both specify the area bounds. So even frame() should make the whole area of the text clickable.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Why Not Every Part Of View Is Clickable In NavigationLink
@Claude31 Updated. Forgot the param in TestView.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Why Is Bottom Sheet Full Screen? What is the workaround for Dynamic Height?
I decided that I am satisfied with just setting the height manually. I delved away from the dynamic list I mentioned so the array is fixed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Nothing Happens When Rotating An Image With Animation
I do not understand. but the .offset(y: -2) works. I assumed the center point is literally the center of the icon and that is where the anchor depends on.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Nothing Happens When Rotating An Image With Animation
Hi @BabyJ. I see. So that is how it is. Thank you. The icon arrow.clockwise looks weird doing the 360 rotate animation. The icon pencil animates ok. Must be the kind of icon used.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Nothing Happens When Rotating An Image With Animation
Hi @BabyJ. I see. So that is how it is. Thank you. I have a minor followup question. The rotation animation looks weird. it doesnt rotate from the center point of the icon. anchor: .center did not work. Any idea?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Merge An Array Item's Array Property Based On Property
Hi @Babyj thank you for taking time to analyze. I think i have a problem with your code. Maybe because i did not explicitly describe my use case. I will post it in another comment below with the whole code. The citiesList array will have existing entries. And the list view has a footer to retrieve more rows which can contain duplicates and that is where i wish to do the logic to merge them with the same city name.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Fix For Type '()' cannot conform to 'View' Error?
Thank you. it worked. I am embarrassed I asked this question to begin with lol. I never thought trying onAppear inside when i have been using it in the main outer view in other parts of my code.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Fix For Type '()' cannot conform to 'View' Error?
Yes it is the same AsyncView I am using. I will paste the complete code instead below. What i do is get data from a url, but i want the cities to be assigned to the citiesList variable.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Any related Library for General Poly Clipper Algorithm
You are right. i made a mistake in describing. The convex hull was another java class i have called GrahamScan and I used the gpcj library to clip the polgyons before passing them to the GrahamScan class.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on What is the opposite of if let variable { }
Thanks. I like this better. I will be using this from now on instead of if var == nil
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Using if condition in Kingfisher.shared.retrieveImage
The image can actually be accessed via result.get().image but then it seems my if result == .success doesnt work. error message Cannot convert value of type 'Result<RetrieveImageResult, KingfisherError>' to expected argument type 'DispatchTimeoutResult' Thank you. Yours works. I think for a beginner it is hard if one if not familiar when code just goes .something instead of adding the struct or class name to it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on What is the opposite of if let variable { }
Thanks for confirming. yes it is bizarre. it just what came to my mind at the time of writing.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Help Setting Google Maps
oh i see. that is what i am currently doing now actually.. using xcode with rosetta. havent tried deploying to release. maybe that is when the issue will bug me?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’22