I\'m use to have a class for several complex subviews in a view. Each can encapsulate it\'s own state. SwiftUI will let you refactor a long view function into subviews but I ha