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

In case you didn't know yet, it turns out that the books of "Flight School" series are now available for free! Matt from NSHipters prepared an amazing gift for us.
https://flight.school
#books #swift

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Uh, looks like I haven't posted much about SwiftUI, so let's fix it! An author prepared a comprehensive step-by-step tutorial about building an animated circled checkmark from scratch. If you're not confident about this topic or maybe it's new for you at all, it will be interesting reading by far.

Press  ❤️, if you like such the detailed post the author prepared for us.

https://serialcoder.dev/text-tutorials/swiftui/playing-with-swiftui-implementing-a-customizable-and-animatable-circled-checkmark-view/
#SwiftUI #animations

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Subscriber shared the article about making an advanced Bottom Sheet:

- Learn how to adapt the bottom sheet to the content size.
- Add interactive dismissal, taking scrollable content into account.
- Support UINavigationController with navigation inside the bottom sheet.

p.s. the author is ready to answer to any questions - feel free to contact @MikhailMaslo

https://medium.com/joomtech/bottom-sheet-shall-we-drop-the-formalities-400515255829

#iOS #UIKit

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Article covers important information about transitions in SwiftUI and differences between ephemeral vs render view trees in order to clarify this behavior deeply.
https://www.objc.io/blog/2022/04/14/transitions/
#SwiftUI

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

WWDC 2022 - June 6 to 10.
https://developer.apple.com/news/?id=w3j4meiy
#Apple #wwdc

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Starting today, with the update of App Store Review guideline, developers of reader apps, that provide one or more of the following digital content types — magazines, newspapers, books, audio, music, or video, can now request access to the External Link Account Entitlement. This entitlement lets reader apps link to a website that is owned or maintained by the developer, so that users can create or manage their account outside of the app.
https://developer.apple.com/news/?id=grjqafts
#Apple #news

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

I think most of us have written preview-like code. This code looks fine, except for one detail - the reference to self inside, so it's really important to add lazy var instead of let. Unfortunately, in my case Xcode didn't point me out on this issue and a bug that was reproduced only on one device was created. But I'm happy to share that starting with Swift 5.6 there's an Xcode warning. For those who haven't upgraded to the Xcode, there's a Swiftlint warning as well - self_in_property_initialization (0.45.0v)
#Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Xcode 13.3 is finally here.

Some of the features I’m happy to see:
- Xcode can now build documentation from your Swift code in executable targets, like apps and command-line tools.
- The build system and Swift compiler have a new mode that better utilizes available cores, resulting in faster builds for Swift projects (need to enable it manually)
- Swift Packages now support build tool plugins. This allows packages to define plugins that can specify tools that should run during a build operation, for example to generate source code.
- You can now write inverted availability conditions using the new #unavailable keyword
- ... more Swift 5.6 feature

https://developer.apple.com/documentation/xcode-release-notes/xcode-13_3-release-notes

#Swift #Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

As DoсC gains popularity these days, we may see more great articles on that subject. It's also worth mentioning that Xcode 13.3 will allow writing documentation even for usual apps, not only for packages. Starting with Swift 5.6, it adds the official support for transferring docs to static hosting options, such as Github Pages, which the author talks about in this article.
https://www.createwithswift.com/publishing-docc-documention-as-a-static-website-on-github-pages/
#DoсC #documentation

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

There're many excellent articles about TaskGroup, but most of them cover some common scenarios. Marin, the author of Modern Concurrency in Swift prepared a more detailed post by revisiting his slides from iOS Conf SG 2022. So if you know the basics of TaskGroup, this fictional example will surely improve your concurrency skills.
https://trycombine.com/posts/swift-concurrency-task-group-workflow/
#Swift #concurrency

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Some of the SwiftUI modifiers are not really obvious to developers, so to comprehend them properly need to play around with it a bit. Jordan saved us some time and explained the behavior of the fixedSize modifier with a few useful examples.
https://www.swiftjectivec.com/swiftui-modifier-monday-fixedsize/
#SwiftUI

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Github Action is a super simple CI system to integrate and maintain. It's very attractive to indie developers and small organizations due to its decent price as well (2000 free minutes per month). So an author enjoying this tool decided to dive into some tips and tweaks to make the most of it.
https://benoitpasquier.com/tips-tweaks-github-action-ios/
#CI #github_action

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, looks like worth mentioning - Apple's unofficial localization glossary. It will be very helpful to those who want to replicate the localization behavior for their own applications.
https://applelocalization.com
#Apple #localization

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, missed the official statistics of iOS and iPadOS usage. Given that all devices with iOS 13 are able to update to the latest os, this numbers will be changed soon.
#Apple #statistics

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple released several tech talks:

- custom product page with its optimization
- some tips from the App Review team for avoiding common review issues
- how apps can use CloudKit to share records with others
- best practices with StoreKit 2 and App Store Server API
- and more...

https://developer.apple.com/news/?id=c63z27o8
#apple

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Over the years iOS comes with new API developers want to adopt and it'd be very tempting to support only the latest OS, but the reality is different. So I'm sure you can find many availability labels for back-deploy features in your codebase… But what if we don't need these shims anymore - we need to remember to get rid of them all on every OS upgrade? Wouldn't it be cool to delegate it to the compiler, would it? So Dave's prepared an interesting solution, let's read it!
https://davedelong.com/blog/2022/05/15/conditional-compilation-part-4-deployment-targets/
#Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

One of the all-awaited feature in Swift 5.6 was Extensible Build Tools proposal - it allows performing custom actions during a build via custom plugins in SPM. Besides it there's another important proposal, that introduces artifact bundles directory in addition to binary targets as well. If you support Linux or are just curious what it is, an author prepared a small article that clarifies this.
https://www.polpiella.dev/binary-targets-in-modern-swift-packages
#SPM

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

I think everyone has had a bad experience with playing audio across different apps on your phone. For example, you listen to a track from Apple Music, then you switch to your Mom's recording from another app, and at the end of the recoding, your favorite track doesn't start playing again... To understand why this happens and how to avoid it, Igor has prepared a small helpful article.
https://blog.kulman.sk/correctly-playing-audio-in-ios-apps/
#iOS #AVFoundation

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, just a small post over the weekend that it's possible to add a custom SwiftUI view to the Xcode Library using DeveloperToolsSupport framework.
https://blog.eidinger.info/apples-developertoolssupport-framework
#SwiftUI #Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Hey, do you remember Objective-C Playgrounds? Krzysztof Zabłocki just open-sourced one more amazing tool that will simplify our developers life even more! Inject - this small library allows hot reloading for UIKit, AppKit, or SwiftUI as easy as possible.
https://merowing.info/2022/04/hot-reloading-in-swift/
#Xcode #hot_reload

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

⚠️ Just faced the issue with exporting a build. If your app uses new concurrency features with enabled bitcode, be aware of this workaround in new Xcode.

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Recently I posted about publishing a DoсC documentation as a static website. But with Swift 5.6 there's a Swift DoсС Plugin that simplifies this process a little more.
https://www.createwithswift.com/using-the-swift-package-manager-command-plugin-for-swift-docc/
#Swift #DoсC

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Really interesting dive into how containers such as List, Stacks work under the hood using Variadic­View to modify individual children. A nice addition that you can use the same approach for build your own containers.
https://movingparts.io/variadic-views-in-swiftui
#SwiftUI

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

As you all know, Apple presented their own CI/CD system at last WWDC - Xcode Cloud. While it's still in beta, a developer can submit an access request to play around though.

To simplify this process an author prepared two articles (so far):
- how to enable Xcode Cloud, test and distribute apps
- more advanced article about the use of custom build scripts and environment variables.

If you're already familiar with Xcode Cloud, just skip the first post and dive into the second one. I'm sure this will help you to avoid some of the non-obvious pitfalls and save your time.

#Xcode #xcode_ci #CI

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple prepared online sessions with experts to get your questions answered about the latest App Store features: product pages, subscription experiences, custom offer codes, and in-app events.
https://developer.apple.com/news/?id=z83vywin
#Apple #AppStore

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Precise calculation? Should you use Double or Decimal? It really depends. So Jesse asked the community in twitter to figure it out.
https://www.jessesquires.com/blog/2022/02/01/decimal-vs-double/
#Swift

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple finally released unlisted apps that are discoverable only with a direct link. These apps don’t appear in any App Store categories, recommendations, charts, search results, or other listings.
https://developer.apple.com/support/unlisted-app-distribution/
#Apple #AppStore

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Haven't posted for a while something interesting about build time optimization, so here it is.

The article describes the various aspects:
- collecting the build data from developer machines by XCLogParser
- analyzing the compilation process using Swift compiler flags
- getting and interpreting build.trace files by using New Build System tricks
- and of course, the possible solutions

https://medium.com/gojekengineering/reducing-our-build-time-by-50-835b54c99588
#Xcode #optimization

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple now lets developers configure custom offer codes in App Store Connect.

Offer codes can be used in a variety of ways:
- Send an email sharing the latest features and recently added content with an offer code to current or lapsed subscribers, so they can experience your service for a limited time.
- Distribute flyers that include custom codes to promote your service to event attendees.
- Partner with another company on a marketing initiative or referral campaign to help promote your app.
- Provide a code to a subscriber with a customer service issue to compensate for the issue and encourage retention.
- Distribute one-time-use codes within an app that you’re sunsetting as a way to transition current subscribers to your new app and promote your service.

https://developer.apple.com/news/?id=9sjl5wuv
#Apple #subscriptions

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

If you're still maintaining a legacy codebase with a lot of Objective-C code - worth reading this migration guide by far.
https://www.steveonstuff.com/2022/01/13/migrating-from-objc-to-swift.html
#swift #objc

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