Baby Sorting Toy Game

This is a demo to build a little mini-game “for babies”. It’s inspired in this kind of games:

A game to sort shapes in the correct location.

How do I started?

In this link you will find a twitter thread explaining the initial thoughts detecting events during dragging.

Video with the full implementation

It was made in SwiftUI using drag gestures and other resources. Check out the video clicking on the image for more details. ??
Baby Toy SwiftUI

The basics

But you maybe need to review how a basic drag gesture works in SwiftUI. You can click on the image with a full explanation. ??
Drag Gestures in SwiftUI


  • Xcode 13.2.1 or higher
  • iOS 15.0 or higher
  • Swift 5.5 or higher


Check out Swift && Tips in Youtube for more about Swift and SwiftUI, and my Twitter @swiftandtips for daily updates & content.


View Github