SwiftUI offers a hidden gem that often goes overlooked: custom ViewModifiers. This powerful tool enables you to build reusable modifiers that can enhance your SwiftUI Views by seamlessly adding and transforming elements to fit your needs.
If you’ve worked with SwiftUI for more than 4 minutes you’ve probably seen ViewModifiers used (although you may not have known what they were called). Heck even the default XCode starting project starts with a SwiftUI view with ViewModifiers present