TG Telegram Group Link
Channel: Readaggregator - iOS, Swift, Apple, Programming, Mobile
Back to Bottom
Good article about comprehending mergeable libraries introduced a few weeks ago at WWDC.

We can now make use of mergeable libraries, which are a new type of library that combines the best of dynamic and static libraries. They are optimised for both build time and launch time performance and are designed to feel like static libraries.

https://www.polpiella.dev/understanding-mergeable-libraries/
#Xcode #framework #linking
During the recent WWDC event, Apple introduced a new framework called Observation. One of its most eagerly anticipated features is its ability to eliminate unnecessary updates in SwiftUI views. In this article, the author takes a Q&A approach to explore this framework and provide answers to common questions surrounding it.
https://betterprogramming.pub/a-deep-dive-into-observation-a-new-way-to-boost-swiftui-performance-f299831c664b
#SwiftUI #optimization
This great article aims to examine the fundamental principles and distribution logic of SwiftUI Transactions. It provides readers with valuable insights on how to attain more precise animation control. Furthermore, it sheds the light on various other noteworthy factors that require attention.
https://itnext.io/the-secret-to-flawless-swiftui-animations-a-deep-dive-into-transactions-7afbf9abdac3
#SwiftIU #animations
Apple's just released a new, open source package designed to provide common types for working with HTTP. This package provides a convenient integration with Foundation as well. However, it's important to note that the current version of the package does have a limitation: it does not include support for HTTP request and response bodies.
https://www.swift.org/blog/introducing-swift-http-types/
#Swift #network
If your project is heavily inspired by a modular architecture with the use of SPM, try this package that simplifies the management of your Package.swift by using DSL.
https://github.com/brightdigit/PackageDSL
#SPM
Github just announced Dependabot for Swift! For those unfamiliar, this tool automatically generates pull requests with updated dependencies, ensuring any security vulnerabilities are promptly fixed.
https://github.blog/changelog/2023-08-01-swift-support-for-dependabot-updates/
#github
I've attempted multiple times to access the tint or foreground color using the @Environment in custom components, but each time I ended up by passing this color through the initializer. However, I recently discovered a solution that seems to work seamlessly. For instance, a value set via the foregroundColor modifier can be easily accessed using the ForegroundShapeStyle (refer to the attached screenshot). The same approach can be applied to the tint color as well.
https://kylehugh.es/documents/how-to-read-foreground-and-tint-colors-in-swiftui-views/
#SwiftUI
Friendly reminder:

From Fall 2023 you’ll receive an email from Apple if you upload an app to App Store Connect that uses required reason API without describing the reason in its privacy manifest file. From Spring 2024, apps that don’t describe their use of required reason API in their privacy manifest file won’t be accepted by App Store Connect.

p.s. User Defaults API is in this list as well.

So an author wrote a shell script that helps you to identify the use of such API in your code base.

https://blog.eidinger.info/how-to-check-if-you-use-a-required-reason-api
#privacy
September 12th, iPhone 15 and more 🥳
Please open Telegram to view this post
VIEW IN TELEGRAM
Explore an in-depth article on SwiftUI's layout process. The author provides a comprehensive breakdown, including the Layout protocol, the functionality of frame, fixedSize, and idealSize, and much more.
https://betterprogramming.pub/swiftui-layout-the-mystery-of-size-b82ce99e61d8
#SwiftUI #Layout
Airbnb shared their SwiftUI adoption story, including their motivation for replacing Epoxy (declarative UI framework) and UIKit, their integration process, and the results and challenges they've faced.
https://medium.com/airbnb-engineering/unlocking-swiftui-at-airbnb-ea58f50cde49
#SwiftUI #AirBnb
The author made research and reverse-engineering of inner working of async/await. This substantial article promises to be an in-depth exploration of the subject, so be sure to have plenty of tea ready.
https://swiftrocks.com/how-async-await-works-internally-in-swift
#Swift #concurrency
HTML Embed Code:
2024/06/15 19:05:07
Back to Top