While many examples of the matchedGeometryEffect modifier focus on animation, it can be used in other contexts, such as creating custom controls. This modifier can be used to create a custom component with a slide animation. Natalia Panferova has a great blog post on a simple way to use this modifier to create a custom segmented control. The iOS Dev community on Telegram has a video tutorial on how to create a custom segmented control using SwiftUI.