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.
Post
Replies
Boosts
Views
Activity
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.
@Claude31 Updated. Forgot the param in TestView.
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.
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.
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.
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?
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.
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.
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.
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.
Thanks. I like this better. I will be using this from now on instead of if var == nil
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.
Thanks for confirming. yes it is bizarre. it just what came to my mind at the time of writing.
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?