home.social

#swift — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #swift, aggregated by home.social.

  1. Исследование производительности механизмов синхронизации в Swift

    За время работы iOS-разработчиком я не раз встречал те или иные рекомендации по выбору быстрого механизма синхронизации. Если нужна высокая производительность, то используйте os_unfair_lock . Если чтений гораздо больше, чем записей, то присмотритесь к read-write lock или concurrent queue с barrier-записью. А когда речь заходит о Swift Concurrency, нередко можно услышать, что actors работают медленно и проигрывают обычным блокировкам. Мне захотелось проверить, насколько эти рекомендации подтверждаются на практике. Поэтому я решил сравнить механизмы синхронизации в задачах, похожих на те, которые встречаются в реальных приложениях. И заодно выяснить, есть ли механизм, который можно выбирать по умолчанию для большинства таких задач.

    habr.com/ru/articles/1106672/

    #производительность #синхронизация #swift #многопоточность #ios #mutex #блокировки #бенчмарки #actor #swift_concurrency

  2. 363,562 pages became 391,056, and no page was lost.

    I diffed Cupertino's Apple documentation database, June against November. 126,695 pages were re-read from Apple's structured data, 27,494 are new, and the docs now describe a foldable iPhone, iPhone Duo, with new SwiftUI and UIKit APIs for hinges and reserved regions.

    It also found two defects. I list them in the post.

    aleahim.com/blog/cupertino-v1-

    #Cupertino #Swift

  3. AppTraction launches today! This could be a game changer for anyone with apps on the App Store.

    What it is: a privacy-focused Mac app that helps you understand and improve how your apps do on the App Store.

    About me: I spent 10 years as an engineer at Apple working on macOS and iOS, and I’ve been indie for the last 8, shipping 20+ apps for myself and clients. AppTraction is the tool I wish I’d had when I started building my own apps.

    apptraction.dev

    Pricing and discount code below 👇

    #Swift #iOSDev #IndieDev #macOS #AppStore #MacApps

  4. Found what looks like a StoreKit regression in iOS 27 and filed it as FB25514964 🙏

    If a user's subscription gets refunded and they later want to subscribe again, iOS 27 hands back the old refunded transaction instead of creating a new one. The purchase reports success, but the user never gets their subscription back. On iOS 26 the same steps work as expected.

    I tested both versions side by side with a minimal sample project and (1/2)

    #BuildInPublic #IndieDev #iOS #Dev #iOSDev #Swift #SwiftUI

Share on Mastodon

Enter the server where you have an account.