You can use the SwiftUI framework and Xcode design tools to create user interfaces that work on all Apple platforms. Xcode provides an interactive preview of your SwiftUI code while you edit it.
To learn more, go to Learn to Make Apps with SwiftUI.