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 NavigationSplitView No Toggle Button
Menu - the sidebar with links (1st column) I see. the samples in the tutorial never had horizontalSizeClass included in the code. I figured it would appear in an iphone in portrait mode specifically since the sidebar (1st column) already takes a huge space in the screen. i thought id use this instead of a custom sidebar menu but i guess not. thank for the input
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’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 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 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 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 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
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 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 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 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 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 Anybody Use SwiftClipper Here? Can't Instantiate A Class Without Init.
click image as for the image, i drew in orange to show the lines on the side that connect the circles .
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Anybody Use SwiftClipper Here? Can't Instantiate A Class Without Init.
i didnt mind that part because i got it working in android. the cliipping c ould still work if i got the PolyTree to work?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Anybody Use SwiftClipper Here? Can't Instantiate A Class Without Init.
@endecotp ill try a workaround to see if it will work. Since it complains about open path clipping, ill check the coordinates and ensure that it is a closed path, then i do not have to use PolyTree.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on extra space around list
PlainListStyle does not remove it completely. There is still the matter of extra left space or is that design by default?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on NavigationSplitView No Toggle Button
Menu - the sidebar with links (1st column) I see. the samples in the tutorial never had horizontalSizeClass included in the code. I figured it would appear in an iphone in portrait mode specifically since the sidebar (1st column) already takes a huge space in the screen. i thought id use this instead of a custom sidebar menu but i guess not. thank for the input
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22