Compile Swift Podcast

Embracing new API's whilst retaining backwards compatibility


Listen Later

This week, I delved into whether to embrace or avoid new APIs in Apple's upcoming operating systems. I encountered a few challenges while working on my Mac iOS app, which I aimed to have a modern look. Inspired by Apple developer videos, I wanted to incorporate features like a navigation split view and fancy backgrounds, similar to the design of CleanMyMac.

However, I hit a snag when they were in a part of the app's window. Even AI couldn't solve it. Finally, I found a solution in a video on the Apple developer portal, which involved using modifiers only available in macOS 15. Faced with a choice, I implemented conditional code to keep compatibility with macOS 14 while enabling new features for macOS 15 and beyond.

Using conditional code, such as #if available(macOS 15, *), I can target specific OS versions and ensure my app remains functional across different versions without cutting off users. This technique can be applied to various scenarios, not just API availability, making it a versatile tool.

Become a Patreon member and help this Podcast survive
https://www.patreon.com/compileswift

Please leave a review and show your support
https://lovethepodcast.com/compileswift

Follow me on Mastodon
https://iosdev.space/@Compileswift

Thanks to our monthly supporters
  • flanker
  • Jay Wilson
  • Adam Wulf
  • bitSpectre
  • Arclite
  • ★ Support this podcast on Patreon ★
    ...more
    View all episodesView all episodes
    Download on the App Store

    Compile Swift PodcastBy Peter Witham

    • 4.7
    • 4.7
    • 4.7
    • 4.7
    • 4.7

    4.7

    24 ratings


    More shows like Compile Swift Podcast

    View all
    The Changelog: Software Development, Open Source by Changelog Media

    The Changelog: Software Development, Open Source

    283 Listeners

    The Talk Show With John Gruber by Daring Fireball / John Gruber

    The Talk Show With John Gruber

    3,124 Listeners

    Accidental Tech Podcast by Marco Arment, Casey Liss, John Siracusa

    Accidental Tech Podcast

    2,092 Listeners

    Connected by Relay FM

    Connected

    568 Listeners

    Upgrade by Relay

    Upgrade

    1,199 Listeners

    Talk Python To Me by Michael Kennedy

    Talk Python To Me

    592 Listeners

    Under the Radar by Relay

    Under the Radar

    210 Listeners

    AppStories by Federico Viticci, John Voorhees

    AppStories

    508 Listeners

    Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

    Syntax - Tasty Web Development Treats

    983 Listeners

    CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

    CoRecursive: Coding Stories

    189 Listeners

    9to5Mac Daily by 9to5Mac

    9to5Mac Daily

    499 Listeners

    Swift over Coffee by Paul Hudson and Mikaela Caron

    Swift over Coffee

    168 Listeners

    Empower Apps by Leo Dion, Principal CEO and Swift Developer at BrightDigit

    Empower Apps

    14 Listeners

    The Stack Overflow Podcast by The Stack Overflow Podcast

    The Stack Overflow Podcast

    64 Listeners

    UIBuzz - Software and game development by Peter Witham

    UIBuzz - Software and game development

    1 Listeners

    PW Podcast by Peter Witham

    PW Podcast

    0 Listeners

    Swift Package Indexing by Dave Verwer and Sven A. Schmidt

    Swift Package Indexing

    7 Listeners