Post

Replies

Boosts

Views

Activity

Reply to Developing a custom swiftui profile images list
Alright so i tinkered around with it and found a neat way to get the look working right with offsetting but now im facing a slightly different hiccup HStack{ ForEach(game.athletes){athlete in ProfileImage(athlete: athlete,width: 50,height: 50).offset(x:CGFloat(-(game.athletes.firstIndex(of: athlete) ?? 0) * offsetCounter )) } Divider().frame(height:50).padding() } Which gives me this beautiful look : Now my issue lies in the divider and how it doesn't account for the offsetting that's occurring. It stays where it should have been if the last profile image wasn't offset.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to Mapkit mapitem information
upon further investigation i figured that Apple maps mainly uses TripAdvisor API for restaurant open and closing times, ratings and images. Closing this thread now
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Developing a custom swiftui profile images list
Alright so i tinkered around with it and found a neat way to get the look working right with offsetting but now im facing a slightly different hiccup HStack{ ForEach(game.athletes){athlete in ProfileImage(athlete: athlete,width: 50,height: 50).offset(x:CGFloat(-(game.athletes.firstIndex(of: athlete) ?? 0) * offsetCounter )) } Divider().frame(height:50).padding() } Which gives me this beautiful look : Now my issue lies in the divider and how it doesn't account for the offsetting that's occurring. It stays where it should have been if the last profile image wasn't offset.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23