Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Display The Current Platform and OS Using #unavailable In SwiftUI

Display The Current Platform and OS Using #unavailable In SwiftUI

Daily Coding Tip 181

Millie Sturgeon's avatar
Millie Sturgeon
Sep 25, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Display The Current Platform and OS Using #unavailable In SwiftUI
Share
pile of smartphones
Photo by Hal Gatewood on Unsplash

As I said in Daily Coding Tip 170, it is only obvious that you are on a platform if the next version (which doesn’t exist yet) is unavailable. All versions of all platforms will be shown as available unless they are the current platform, as it is known that the version doesn’t exist.

With that in mind, I am confirming the…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share