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, 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

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

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

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

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

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