Stacked emoji view in SwiftUI similar to LinkedIn

Uday P
Apr 25, 2024

--

Wanted to created a dynamic configurable stacked emoji view with SwiftUI, whose order can be changed and it draws by itself.

Here is what I came up with:

Usage:

StackedEmojiView(totalEmojiCount: 4000, emojiCountDictionary: [.laugh: 3, .fire: 4, .like: 5], order: [.fire, .laugh, .like])

Final Output:

Enjoy!

--

--

Uday P
Uday P

Written by Uday P

Hi All, I am a passionate engineer who loves to write clean, reusable and testable code.

No responses yet