readaggregator | Technologies

Telegram-канал readaggregator - Readaggregator - iOS, Swift, Apple, Programming, Mobile

830

This channel aggregates interesting information from many resources. So If you are interested in Swift, iOS, Apple and so on - welcome! Check the open-source projects: https://github.com/Otbivnoe Leave a feedback: @otbivnoe

Subscribe to a channel

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, look at this gem! Chris Eidhof from objc.io has built a guide for visually understanding how SwiftUI's layout system works. It's even possible to adjust some layout parameters to thoroughly grasp the consept.
https://www.swiftuifieldguide.com
#swiftui #layout

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

A few non-obvious tips about using dynamic member lookup in conjunction with SwiftUI Binding.
https://chris.eidhof.nl/post/swiftui-binding-tricks/
#SwiftUI

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

I came across a great video about creating a Design System using the example of button styling. I particularly liked the approach of expanding a simple button with additional fields such as description and title by combining different styles.
https://youtu.be/Z7rJKr6Jlho?si=cIYfiJaOOHFioV7x
#SwiftUI #design_system

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Interesting approach for storing API keys by using on-demand resources with enabled prefetching instead of embedding them directly in code, that could lead to expose them as plain strings when extracted from IPA files.
https://augmentedcode.io/2023/11/27/using-on-demand-resources-for-securely-storing-api-keys-in-ios-apps/
#Security

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

There is a lot of criticism of GeometryReader in the iOS community: some try to avoid it, others consider it very useful, others don’t even know what it is. All these problems are discussed in a long article prepared by the author.
https://betterprogramming.pub/geometryreader-blessing-or-curse-1ebd2d5005ec
#SwiftUI #Layout

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

One of my favorite blogs is regularly sharing in-depth articles about SwiftUI. In their latest post, the author delves into the new CustomAnimation protocol, explaining what it is and how to use it effectively.
https://swiftui-lab.com/swiftui-animations-part6/

For more animation-related posts, check out the full series here
https://swiftui-lab.com/category/animations/

#SwiftUI #animations

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

If you're already using the latest Xcode, you can find a brief overview of debugging enhancements and new features within Swift 5.9 itself.
https://www.swift.org/blog/whats-new-swift-debugging-5.9/
https://www.swift.org/blog/swift-5.9-released/
#Swift

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Lottie now officially supports SwiftUI.
https://github.com/airbnb/lottie-ios/discussions/2189
#Animations #Lottie

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

If you're looking to implement drag-and-drop reordering functionality similar to what the List in SwiftUI offers, but for Grid and Stack components, there's a comprehensive custom solution.
https://danielsaidi.com/blog/2023/08/30/enabling-drag-reordering-in-swiftui-lazy-grids-and-stacks
#SwiftUI

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

To celebrate the major update of the Composable Architecture (1.0), the team is doing a library tour. If you've always wanted to take a look at this library, now is the perfect time to do so.
https://www.pointfree.co/episodes/ep243-tour-of-the-composable-architecture-1-0-the-basics
#composable_architecture

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Clickbait news. Apple introduces new programming language!

… for writing configurations.

It combines the simplicity of static languages with the capabilities of general programming, featuring classes, functions, conditions, and loops. Pkl ensures safety with type checks, offers ease of use with IDE integration, and supports package sharing and integration into various programming languages.

https://pkl-lang.org/blog/introducing-pkl.html

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

This article is a great reminder to avoid using AnyView as much as possible, or use it carefully when really necessary. The author conducted some measurements of using AnyView (and without it) in lists and compared the results.
https://martinmitrevski.com/2024/01/02/anyviews-impact-on-swiftui-performance/
#SwiftUI #performance

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple has announced that, beginning January 2024, all Apple Developer Program memberships will include 25 compute hours per month on Xcode Cloud at no additional cost.
https://developer.apple.com/news/?id=ik9z4ll6
#Cloud

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

As in the previous article the author once again made a really great job. This time he prepared an in-depth analysis of the ViewThatFits component, providing a detailed explanation of its functionality and the underlying reasons for its operation. Moreover, the author went a step further by recreating this component using the Layout protocol, showcasing both a profound understanding and practical application of the subject matter.
https://medium.com/the-swift-cooperative/mastering-viewthatfits-3294d74cb17b
#SwiftUI #Layout

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

For those who already use the Logger type, Xcode 15 brings handy improvement — support of filtering console logs and more directly in Xcode, eliminating the need to launch the Console app. You can filter logs by their type (networking, ui), jump to code where a log message has been triggered and so on.
https://augmentedcode.io/2023/10/16/changes-to-structured-logging-in-xcode-15/
#Xcode #logging

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

September 12th, iPhone 15 and more 🥳

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Kodeco (ex raywenderlich) released a free book with huge amount of common patterns for building user interface in SwiftUI.
https://www.kodeco.com/books/swiftui-cookbook/v1.0
#SwiftUI #book

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple prepared a bunch of sessions with AppStore experts for discussing different topics: how to attract new customers, test marketing strategies, optimize subscriptions, and so on.
https://developer.apple.com/events/app-store/
#AppStore

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

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

Читать полностью…

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Two Q&A sessions with Apple engineers about new features:

SwiftData
https://useyourloaf.com/blog/wwdc23-swiftdata-lab-notes/

SwiftUI
https://onmyway133.com/posts/wwdc23-swiftui-qanda/

#SwiftData #SwiftUI #wwdc

Читать полностью…
Subscribe to a channel