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

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

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Spotify has open sourced a library for remote caching implementation for iOS projects. So If you have a huge project with significant number of targets, I hope this library will come to your rescue.
https://engineering.atspotify.com/2021/11/16/introducing-xcremotecache-the-ios-remote-caching-tool-that-cut-our-clean-build-times-by-70/
#optimization #Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple's decided to continue accepting submissions in App Store Connect throughout the upcoming holidays. 🎉
https://developer.apple.com/news/?id=y4fgrhhe
#news #Apple

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

If you're lucky - can use iOS 15+ API already, there's an exhaustive guide for Keyboard Layout Guide.
https://useyourloaf.com/blog/keyboard-layout-guide/
#UI #iOS

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Hey! How are you all doing? Haven’t posted for awhile I apologize, but really burned out, tired of working stuff. So I took a vacation to finally recharge.🤞

Anyway, have you already pre-ordered a new MacBook? There are really good ones by far! I already told to the executive that it’s time to upgrade my laptop so I’m waiting for a decision… If you ruminate about an upgrading as well, there are some Xcode benchmarks with new MacBooks for help.

https://github.com/devMEremenko/XcodeBenchmark
#macbook #M1

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Interesting improvement. Starting with iOS 15 Apple extended the Codable protocol with a configuration object that gives a bit more control for the encoding and decoding processes.
https://www.andyibanez.com/posts/the-mysterious-codablewithconfiguration-protocol/
#swift

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

I consider it's an interesting approach for fast UI development as a replacement to the Xcode playground. In my experience, SwiftUI previews are not as laggy as a playground.

p.s. Yep, previews aren't reliable as well, but... write a comment what do you think about this approach.

http://martiancraft.com/blog/2021/09/uikit-previews/
#iOS #UI

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Get ready!

September 14, 2021
10:00 am PDT

https://www.apple.com/apple-events/
#Apple #news

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Pointfreeco released an awesome collection of tools for debugging, diffing, and testing data structures. Custom XCTAssertEqual with a nicely formatted message is my favorite!
https://www.pointfree.co/blog/posts/62-open-sourcing-custom-dump
#iOS #debugging #testing

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

As we're waiting for a verdict in the "Epic vs Apple" battle, the Verge and Sean Hollister haven’t just been sitting around. They’ve been digging through a ton of internal emails and confidential presentations during the legal discovery process. Afterward, they prepared dirt on a variety of other companies as well: Microsoft, Sony, Google, Nintendo, Valve, Netflix, Hulu, and many others.


Some of my favorites in order to intrigue you:
- Apple had given Netflix a sweetheart deal where it took just 15 percent of subscriptions Netflix sold in its app (1)
- The similar subscriptions situation with Microsoft Xbox... (2)
- Apple had considered launching an ‘iPhone Nano’ (8)
- April 2013. Apple considered bringing iMessage to Android (20)
- “Don’t feature competitors in the App Store” - unwritten rule (22, 17)
...

https://www.theverge.com/22611236/epic-v-apple-emails-project-liberty-app-store-schiller-sweeney-cook-jobs
#Apple

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, I didn't know it before, but it's possible to use tuples for sorting by multiple fields. It's a really neat way to improve readability of code.
https://holyswift.app/using-tuples-to-complex-sorting-operations-in-swift
#swift

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

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

Oh, it’s a great chance to start reading the book about async / await in Swift. A lot of discounts - worth to check it out!
https://github.com/mRs-/Black-Friday-Deals

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

A good advanced article as a reminder about static vs dynamic linking for libraries.
https://bpoplauschi.github.io/2021/10/25/Advanced-static-vs-dynamic-libraries-and-frameworks.html
#Xcode #linking #framework

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

If after the recent article you are still in doubt about buying a M1 laptop, there’re new Benchmarks with a sizeable open source project for help
https://blog.swiftpackageindex.com/posts/m1-pro-and-m1-max-build-and-test-benchmarks
#macbook #M1

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Amazing news! Swift concurrency is backward compatible now.

“You can now use Swift Concurrency in applications that deploy to macOS 10.15, iOS 13, tvOS 13, and watchOS 6 or newer. This support includes async/await, actors, global actors, structured concurrency, and the task APIs.”

https://developer.apple.com/documentation/xcode-release-notes/xcode-13_2-release-notes
#swift #Xcode

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Apple event, October 18.
Have prepared money for new Macbooks?
https://www.apple.com/apple-events/
#Apple #news

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Optimizing ProMotion Refresh Rates for iPhone 13 Pro and iPad Pro

Apple has prepared an article about optimizing your app to ProMotion displays. Btw it’s very useful to read if you have a lot of animations.

https://developer.apple.com/documentation/quartzcore/optimizing_promotion_refresh_rates_for_iphone_13_pro_and_ipad_pro
#iOS #optimization

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Just a good reminder why it’s necessary to avoid hard-coded secret keys!

p.s. It seems obviously, but as a reminder in case you forgot to get rid of it after a development process :)

https://www.netguru.com/blog/hardcoded-keys-storage-mobile-app
#iOS #privacy

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Oh, it looks really promising! New concurrency system with backward compatibility with earlier iOS versions isn’t a dream anymore?
https://github.com/apple/swift/pull/39051
#swift

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Just a good reminder about Display P3 and sRGB color issues you may face during the design or development process. So if you've ever wondered why this color is so vibrant or dull, read this article to clarify the differences.
https://bjango.com/articles/colourmanagementissues/
#UI

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Important to mention tip from Ole:

If you’re writing Swift concurrency code, add these compiler flags:
-Xfrontend
-warn-concurrency
-Xfrontend
-enable-actor-data-race-checks

Warnings in Swift 5.5 identify unsafe constructs, will become errors in Swift 6.

source: https://twitter.com/olebegemann/status/1421144304127463427?s=21

discussion: https://forums.swift.org/t/concurrency-in-swift-5-and-6/49337

#swift #concurrency

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

Readaggregator - iOS, Swift, Apple, Programming, Mobile

Note
Worth mentioned privacy news in case your app uses some kind of analytics that relies on background notifications.

source: https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15-beta-release-notes

#iOS #privacy

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