Component - matchedGeometryEffect
The matchedGeometryEffect modifier in SwiftUI links two views by a shared animation ID. When one view changes position or size to the other, SwiftUI animates the transition smoothly, making the UI feel connected and natural.