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.
Jan ’23