Skip to main content

Learn once, apply anywhere

About 2 minSwiftSwiftUIArticle(s)bloghackingwithswift.comcrashcourseswiftswiftuixcodeappstore

Learn once, apply anywhere 관련

SwiftUI by Example

Back to Home

Learn once, apply anywhere | SwiftUI by Example

Learn once, apply anywhere

Updated for Xcode 15

When Apple announced SwiftUI, they made an important distinction: SwiftUI is not a multi-platform framework, but is instead a framework for creating apps on multiple platforms.

That might seem like the same thing being said in two different ways, but in practice it means that many parts of SwiftUI work great on iOS, but aren’t available on macOS, or are designed specifically for watchOS and so aren’t available anywhere else.

Yes, the core of your app remains unchanged: your models, your networking, and much of your user interface. But to get great apps – to build apps that are really tailored for each of Apple’s platforms – you need to add some platform-specific enhancements. How should your app use the Digital Crown on watchOS? What about the Play/Pause button on tvOS? Or right-click menus on macOS?

Answering these questions – and answering them well! – is the key to building great multi-platform experiences.

Similar solutions…
How to apply multiple animations to a view | SwiftUI by Example

How to apply multiple animations to a view
Answering the big question: should you learn SwiftUI, UIKit, or both? | SwiftUI by Example

Answering the big question: should you learn SwiftUI, UIKit, or both?
What is SwiftUI? | SwiftUI by Example

What is SwiftUI?
How to group views together | SwiftUI by Example

How to group views together
How to detect shake gestures | SwiftUI by Example

How to detect shake gestures

이찬희 (MarkiiimarK)
Never Stop Learning.