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
What is new in Swift 5.5 besides async | await with actors? Really great features will be released soon!
https://www.hackingwithswift.com/articles/233/whats-new-in-swift-5-5
#swift
Popup is a popular pattern in iOS by far, therefore you can notice them across many apps. So if you are wondering about implementing a custom popup in your app using SwiftUI by not considering taking a ready-made solution from Github, this is a great article to read.
https://blog.artemnovichkov.com/custom-popups-in-swiftui
#iOS #SwiftUI
Nice write-up about Efficiency and Performance cores in M1 and how they work in conjunction with Quality of Service (QoS) comparing to Intel models.
Cores shouldn’t all be the same: M1 Macs do better
https://eclecticlight.co/2021/05/14/cores-shouldnt-all-be-the-same-m1-macs-do-better/
How M1 Macs feel faster than Intel models: it’s about QoS
https://eclecticlight.co/2021/05/17/how-m1-macs-feel-faster-than-intel-models-its-about-qos/amp/
#M1 #performance
Wow, it's a great chance to become a contributor to Swift!
https://swift.org/blog/swift-mentorship-program/
#swift
Found an advanced thread about Dynamic Type fonts. An author compares preferred fonts with system fonts + UIFontMetrics in the leadings behavior. No so a popular topic, but in the case of implementing dynamic font need to be aware of it.
https://twitter.com/featherless/status/1382146916402790401?s=21
🧵: https://threads-web.vercel.app/threads/1382146916402790401
#twitter #dynamic_type #iOS
Peter's prepared a great article with challenges they faced by adopting SwiftUI in production code.
https://pspdfkit.com/blog/2021/swiftui-in-production/
#swiftUI #iOS
In case you're a fan of debugging memory problems like me. Was happy to see the announced Debug Memory Graph in Xcode a few years ago and even tried FBRetainCycleDetector by Facebook to detect retain cycles... Maybe it's time to go further to write your own memory graph tool to detect issues? So this article is a great start to dive into this topic.
https://hackernoon.com/making-your-own-memory-graph-to-detect-memory-issues-on-ios-13w33hv
#debugging
Swift Standard Library team has released one more open-source package - Swift Collections.
“The initial version of the Collections package contains implementations for three of the most frequently requested data structures: a double-ended queue (or “deque”, for short), an ordered set and an ordered dictionary.”
https://swift.org/blog/swift-collections/
#swift
I like a lot how Dave comes up with new property wrappers that can simplify SwiftUI life by far! So If you haven't heard about DynamicProperty like me, it's a great article to be familiar with this protocol.
https://davedelong.com/blog/2021/04/02/custom-property-wrappers-for-swiftui/
#swiftUI #swift
Why Do Interviewers Ask Linked List Questions?
Really enjoyed this post. I've struggled for years to understand the purpose of these interview questions...
p.s. It tests CS fundamentals (not really)
https://www.hillelwayne.com/post/linked-lists/
#interview
Oh, did you know that fact?
"Queues with .background Quality of Service (QoS) may never be executed, e.g. low power mode, so plan accordingly."
It's really great stuff for discovering some non-obvious and handy tips about concurency in these series of articles. Worth reading by far!
https://jessesquires.github.io/TIL/ios/threads_and_queues.html
#iOS #concurrency
Pointfreeco has open-sourced their new app - isowords.
The interesting point of this app in my opinion that it covers a lot of useful topics for trying something new:
- New architecture - OK, try Composable Architecture.
- Want to see an app is built in SwiftUI - welcome.
- Hyper-modularization - why not?
- Automated App Store screenshots, Previews, and so so on.
https://github.com/pointfreeco/isowords
#swiftUI #iOS #Pointfreeco
Fun and Profit
Haven't read any interesting articles about String Interpolation for a long time especially in conjunction with the dynamicCallable.
https://davedelong.com/blog/2021/03/04/exploiting-string-interpolation-for-fun-and-for-profit
#swift
A bit of details provided by Apple about iOS 14 and iPadOS 14 adoption numbers: https://developer.apple.com/support/app-store/
Читать полностью…
If you usually pin cell's content to edges with some value and use this constant across all cells, try using layout margins instead! I tried this approach and wrote a small article wondering why I didnt't try it before.
https://otbivnoe.ru/2021/02/18/Make-Friends-UITableView-with-Layout-Margins.html
#iOS #UI
Starting with the 14.6 iOS (iPadOS) version it's no needed to install a developer or public beta certificate to get an unreleased version of OS.
https://martiancraft.com/blog/2021/05/ios146-is-a-game-changer-for-test-and-development-devices/
#iOS
Recently Notion introduced the developers api that really intrigued me! Because I lead a pet project with tasks board, specifications, etc. fully in Notion and now it's possible to configure a Notion database and even integrate it to my iOS admin app... All my project related stuff will be in one place - it becomes really better!
So my point is if you are using a storage for collecting some sort of data, consider the following approach as well.
https://ashok-b.medium.com/notion-database-ios-d3c7835c3a53
#iOS #Notion
Not so technical article but the Instagram team emphasizes some aspects of the app that could be more fluid and responsive with little details of implementation. I wish more apps were fluid as Threads.
https://about.instagram.com/blog/engineering/on-building-a-fluid-user-interface
#instagram #iOS
Consider the fact Swift Actors are available in the beta toolchain so far, nevertheless, we can play around with it by following great examples.
https://trycombine.com/posts/swift-actors/
#swift #concurrency
It has happened!
https://swift.org/blog/swift-5-4-released/
#swift
Sheets in SwiftUI are not so obvious to work with, so Artem decided to highlight and clarify some interesting behaviors.
https://blog.artemnovichkov.com/sheet-happens
#iOS #swiftUI
Oh, what will we see this time? 🤔
https://9to5mac.com/2021/04/13/apple-april-event-ipad-confirmed/
#Apple #news
Dave continues to amaze me for sure. His second article in a row shows the power of property wrappers in conjunction with SwiftUI and Core Data (of course, this approach is applicable for different storages as well - Realm, for instance). So if you got acquainted with the first article and DynamicProperty doesn't confuse you, I recommend start reading the second one.
https://davedelong.com/blog/2021/04/03/core-data-and-swiftui/
#swiftUI #CoreData
WWDC 2021 - June 7 to 11.
https://developer.apple.com/news/?id=t5jm3yaz
#Apple #wwdc
The other day I wondered about clearing the Xcode console programmatically by lldb command. Since I didn't found a solution on StackOverflow I decided to come up with my own. So I have prepared a script that may save you debugging time as well.
https://otbivnoe.ru/2021/03/28/How-to-Clear-Xcode-Console-a-Bit-Another-Way.html
#Xcode #optimization
Interesting article about abusing Xcode’s run script functionality.
I hope none of you have downloaded a trojanized open-source project TabBarInteraction. So be careful by downloading another open-source project.
p.s. There's a script in the "Detection and Mitigation" section for developers concerned as to whether they have inadvertently downloaded a project containing XcodeSpy.
https://labs.sentinelone.com/new-macos-malware-xcodespy-targets-xcode-developers-with-eggshell-backdoor/
#privacy #opensource
CAID or how China’s biggest technology companies are trying to bypass new Apple’s privacy rules:
https://arstechnica.com/gadgets/2021/03/chinas-tech-giants-test-way-around-apples-new-privacy-rules/
and some discussions on Hacker News.
——
For apps that use Google Analytics, Google’s Firebase, Flurry, or Facebook SDKs I advise reading these two articles as well:
- Is Apple Banning Free Analytics SDKs?
- Google Blinks on Tracking
#privacy #iOS
Uber has prepared a long story of reducing app’s size using advanced compiler techniques.
https://eng.uber.com/how-uber-deals-with-large-ios-app-size/
#iOS #optimization
A great thread with a lot of iOS tips from the community!
https://twitter.com/twostraws/status/1364538061837791232?s=21
#twitter #iOS #swift #Xcode
An interesting runtime crash can happen in SwiftUI by forgetting just a single dot when applying a modifier.
https://twitter.com/swiftuibugs/status/1360183280839057410?s=21
And the linked article as a workaround to this problem:
https://www.fivestars.blog/swift/warn_unqualified_access.html
#swift #SwiftUI #twitter