IMO Apple is uniquely positioned to loose a lot of control and market share, to web-apps, to OpenAI consumer products if they succeed with hardware, and whatever unexpected new thing comes along. They have lost clout, developer goodwill, and have been caught sleeping at the wheel, thinking their ecosystem will go on prospering automatically.
Swift and especially SwiftUI are not exceptional technology, but it is what they choose to build.