Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    LinkedIn is spying on you, and you agreed to nothing • Graham Cluley

    April 11, 2026

    Masjesu botnet targets smart factory floors for extortion

    April 11, 2026

    AWS targets AI agent sprawl with new Bedrock Agent Registry

    April 11, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»Setting default actor isolation in Xcode 26 – Donny Wals
    iOS Development

    Setting default actor isolation in Xcode 26 – Donny Wals

    big tee tech hubBy big tee tech hubJuly 1, 20250512 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    Setting default actor isolation in Xcode 26 – Donny Wals
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    With Swift 6.2, Apple has made a several improvements to Swift Concurrency and its approachability. One of the biggest changes is that new Xcode projects will now, by default, apply an implicit main actor annotation to all your code. This essentially makes your apps single-threaded by default.

    I really like this change because without this change it was far too easy to accidentally introduce loads of concurrency in your apps.

    In this post I’d like to take a quick look at how you can control this setting as well as the setting for nonisolated(nonsending) from Xcode 26’s build settings menu.

    Setting your default actor isolation

    Open your build settings and look for “Default Actor Isolation”. You can use the search feature to make it easier to find the setting.

    Setting default actor isolation in Xcode 26 – Donny Wals

    New projects will have this set to MainActor while existing projects will have this set to nonisolated. I highly recommend trying to set this to MainActor instead. You will need to refactor some of your code and apply explicit nonisolated declarations where you intended to use concurrency so you’ll want to allocate some time for this.

    MainActor and nonisolated are the only two valid values for this setting.

    Enabling nonisolated(nonsending)

    Another feature that’s introduced through Swift 6.2 is nonisolated(nonsending). This feature makes it so that your nonisolated sync functions automatically inherit the calling actor’s isolation instead of always running on the global executor without being isolated to any actor. To get the old behavior back you can annotate your functions with @concurrent. You can learn more about this in my post about Swift 6.2’s changes.

    You can turn on nonisolated(nonsending) in one of two ways. You can either enable the feature flag for this feature or you can turn on “Approachable Concurrency”.

    Screenshot 2025 06 10 at 09.44.59

    WIth Approachable Concurrency you will get nonisolated(nonsending) along with a couple of other changes that should make the compiler smarter and more sensible when it comes to how concurrent your code will really be.

    If you’re not sure which one you should use I recommend that you go for Approachable Concurrency.



    Source link

    actor default Donny isolation Setting Wals Xcode
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    ios – React web app hitting memory limit on mobile

    April 11, 2026

    ios – expo-screen-orientation issues when shifting orientation between screens

    April 10, 2026

    ios darkmode – Popovers in iOS 26 display wrong system colors and do not change when user switches light/dark mode

    April 9, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    LinkedIn is spying on you, and you agreed to nothing • Graham Cluley

    April 11, 2026

    Masjesu botnet targets smart factory floors for extortion

    April 11, 2026

    AWS targets AI agent sprawl with new Bedrock Agent Registry

    April 11, 2026

    App Store fight continues as Apple and Epic clash over court-ordered stay

    April 11, 2026
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    LinkedIn is spying on you, and you agreed to nothing • Graham Cluley

    April 11, 2026

    Masjesu botnet targets smart factory floors for extortion

    April 11, 2026

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2026 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.