I use AppleScript a lot to open folders, place and size folders, send emails for work. I used to use AppleScript Studio which allowed you to make a GUI, so you just click a button and the script runs. Can swift do that.
Yes. UIKit/SwiftUI can do GUI stuff for Apple platforms. You'll need to use a third-party framework to achieve something similar for UI using Swift on other platforms.