A superclass should be replaceable with objects of its subclasses without affecting the correctness ...Read more
How to use and create your own view modifiers in SwiftUI