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

It turns out that in SwiftUI you can finally hide the home indicator without UIKit hacks.
https://danielsaidi.com/blog/2022/08/01/removing-the-home-indicator-in-swiftui
#SwiftUI

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple has prepared an online meeting with App Store experts to cover the following topics:

- Get started with TestFlight
- Get started with app discovery and marketing
- Explore Family Sharing for in-app purchases
- Optimize subscriptions for success: acquisition
- Get started with in-app events
- Get started with custom product pages
- Get started with product page optimization

https://developer.apple.com/events/app-store/
#Apple

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

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

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, what a surprise!

“Use switches in table rows only. Switches are intended for use in tables, such as in a list of settings that can be toggled on and off. If you need similar functionality in a toolbar or navigation bar, use a button instead, and provide two distinct icons that communicate the states.”

🧵with details: https://twitter.com/featherless/status/1477294898718154752?s=21

#iOS #HIG

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

🎄 Best wishes to the coming year! 🎄

May your code always compile on the first try, found bugs are features actually and all projects start with iOS 15.

🎉🎉🎉

By the way, I'm not sure it'd be interesting to all of you, but if you have your own domain or are just curious about DNS records, there's a great site to play with.

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple’s use of Swift and SwiftUI in iOS 15.
https://blog.timac.org/2021/1219-state-of-swift-and-swiftui-ios15/
#statistics #iOS

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

If you are looking forward to adopting new concurrence features in Xcode 13.2, don’t install Xcode from AppStore.

To workaround this issue, please re-download Xcode 13.2 directly from Releases section.

https://developer.apple.com/forums/thread/696504?page=1
#Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Such a detailed post about new Grid layout in SwiftUI. Highly recommended.
https://swiftui-lab.com/eager-grids/
#SwiftUI #Layout

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Discovered something great today I want to share with you! How many times defining a custom decodable initializer, for instance, have you lost the ability to use the automatically generated memberwise initialize, umm? Oh, I've faced it so often, especially in tests. So the solution is easy - just define this initializer in an extension, and that's it.
https://danijelavrzan.com/posts/2022/07/how-to-test-custom-codable/
#swift

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

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

Great summary of the most annoying Swift Playground limitations at the moment. But what the name implies - it's a playground, not Xcode on iPad yet.
https://www.cephalopod.studio/blog/lessons-from-developing-an-app-on-the-ipad-from-start-to-finish-on-the-app-store
#swift_playground

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

The guys at pointfreeco have done an amazing investigation for triggering custom Xcode warnings at runtime using os_log.

p.s. Don’t try this at Home Release

https://www.pointfree.co/blog/posts/70-unobtrusive-runtime-warnings-for-libraries
#Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, looks like a great Christmas present! 🎅
https://forums.swift.org/t/introducing-swift-for-visual-studio-code/54246
#swift #visual_studio

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apparently only I've not written about the new Swift Playground for iPads yet...

TL;DR

- Yes, you can now build SwiftUI apps right on your iPad.
- Yes, you can use also UIKit if you prefer.
- Yes, you can ship your apps to the App Store straight from your iPad.
- Yes, it supports Swift Package Manager packages from GitHub.
- Yes, you get the fantastic new code completion, just like with Xcode.
- Yes, it ships with Swift 5.5 and all the concurrency awesomeness that entails.

https://www.hackingwithswift.com/articles/244/swift-playgrounds-4
#iPad #swift_playground

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

FYI, be careful!

«In iOS 15 and later, the system may, depending on device conditions, prewarm your app — launch nonrunning application processes to reduce the amount of time the user waits before the app is usable. Prewarming executes an app’s launch sequence up until, but not including, when main() calls UIApplicationMain. This provides the system with an opportunity to build and cache any low-level structures it requires in anticipation of a full launch.

If your app executes code before the call to UIApplicationMain, such as in static initializers like load(), don’t make assumptions about what services and resources are available. For example, keychain items may be unavailable because their data protection policies require an unlocked device and prewarming happens even when the device is in a locked state.»

UPD
Seems like a bug, but application(_:didFinishLaunchingWithOptions:) is invoked as well during a prewarning. I've sent a link to a thread in the comments. 🤔

https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence?language=objc#3894431
#iOS

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