Sometimes you need to know if two objects in an app have collided (for example in games). There is an easy way to do this in SwiftUI when we're only concerned with two objects. In future videos we will look at how to detect collisions between many different objects.
Using Xcode 11.4