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

What’s new in iOS 16 about Format Styles:
https://ampersandsoftworks.com/posts/iOS-16-formatstyle/

Gorgeous documentation about all styles in one place 🔥:
https://goshdarnformatstyle.com/

#iOS #formatters

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, great! If you've ever needed to compare Any values in Swift, now it's easier and more elegant to achieve it.
https://nilcoalescing.com/blog/CheckIfTwoValuesOfTypeAnyAreEqual/
#swift

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Some of the interesting highlights from the new Xcode:

- Finally! Simplify an app icon with a single 1024x1024 image that is automatically resized for its target. Choose the Single Size option in the app icon’s Attributes inspector in the asset catalog. You can still override individual sizes with the All Sizes option. 🎉
- Starting with Xcode 14, bitcode is no longer required for watchOS and tvOS applications, and the App Store no longer accepts bitcode submissions from Xcode 14. 🤷‍♂️
- Instruments now includes a new Swift Concurrency template for tracing the usage and behavior of Swift’s concurrency primitives.
- Instruments has a new Hang Tracing instrument that shows when an app’s main thread is unable to handle incoming events for an extended period of time, potentially causing the UI to hang.
- Hang reports in the Xcode Organizer provide diagnostic reports on application hangs to assist in improving responsiveness. Reports are generated for an individual app release and ordered by severity. They include sample logs for hangs occurring on the main thread that you can use for debugging as well as statistics on affected devices and iOS versions for the report.
- Xcode Previews can now run on physical devices without requiring a containing application, making it easy to preview on-device for frameworks and Swift packages.
- Added a refactor action to add an explicit Codable implementation.
- Simulator now supports remote notifications in iOS 16 when running in macOS 13 on Mac computers with Apple silicon or T2 processors. Simulator supports the Apple Push Notification Service Sandbox environment. Your server can send a remote notification to your app running in that simulator by connecting to the APNS Sandbox. 💃
- Xcode now pins elements of your code structure to the top of the editor as you scroll through a document.
- Swift 5.7 with a lot of new features!

https://developer.apple.com/documentation/Xcode-Release-Notes/xcode-14-release-notes

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

I think a lot of developers are stressed when dealing with the iOS signing process, and that's fine. Therefore, Bruno has prepared a short article to refresh the knowledge for these people.

By the way, you can read more advanced articles written by Apple a few weeks ago:
Inside Code Signing: Requirements
Inside Code Signing: Hashes
Inside Code Signing: Provisioning Profiles

#code_signing #provisioning

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

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

If you’re already rewriting all your regex-strings in a new modern way using Regex Builder - this online generator will simplify your life a lot by far!
https://paiv.github.io/swift-rxbgen/
#swift #regex

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

As I said, there are a lot of new features in Swift 5.7
https://www.hackingwithswift.com/articles/249/whats-new-in-swift-5-7
#swift

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Look at the image - familiar situation? Just a typo. The code compiles and then crashes at runtime. An author found a halfway solution for detecting these problems, but only for custom view modifiers - using a special Swift attribute. So at least we can make our code safer.
#SwiftUI

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

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

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