Implementing the Coordinator pattern using UIResponder. 🤔
”With this approach, you can:
1. Call a Coordinator's method from anywhere: view controller, view, button's event handler, table/collection view cell, UIAlertAction etc.
2. That call will be passed up the responder chain until it reaches some Coordinator instance which overrides that method.”
…
http://aplus.rs/2018/coordinator-missing-pattern-uikit/
#iOS #coordinators #architecture
”With this approach, you can:
1. Call a Coordinator's method from anywhere: view controller, view, button's event handler, table/collection view cell, UIAlertAction etc.
2. That call will be passed up the responder chain until it reaches some Coordinator instance which overrides that method.”
…
http://aplus.rs/2018/coordinator-missing-pattern-uikit/
#iOS #coordinators #architecture
sing the coordinator pattern isn't a great choice all the time, because managing complex flows with vanilla UIKit is a good way as well. 🤔
https://sandofsky.com/blog/controller-hierarchies.html
p.s. For better understanding aforementioned article need to be aware of the Actor Chain.
http://wangling.me/2014/06/view-controller-actor-chain.html
#iOS #coordinators
https://sandofsky.com/blog/controller-hierarchies.html
p.s. For better understanding aforementioned article need to be aware of the Actor Chain.
http://wangling.me/2014/06/view-controller-actor-chain.html
#iOS #coordinators
Sandofsky
Controller Hierarchies
Benjamin Sandofsky, a Software Engineer in San Francisco, California.
Found a helpful thread with Xcode tricks and useful shortcuts.
https://twitter.com/nerdonica/status/1088459155264995328
#Xcode #iOS #twitter
https://twitter.com/nerdonica/status/1088459155264995328
#Xcode #iOS #twitter
Twitter
Veronica Ray
iOS devs: What is an Xcode productivity or quality of life trick that you wish more people knew about?
Use the iOS Responder Chain the right way. An author tries to describe this pattern in a simple form with some theoretical examples to dive deeper.
p.s. One of the most asked interview question.
https://swiftrocks.com/understanding-the-ios-responder-chain.html
#iOS #responder_chain
p.s. One of the most asked interview question.
https://swiftrocks.com/understanding-the-ios-responder-chain.html
#iOS #responder_chain
Swiftrocks
iOS Responder Chain: UIResponder, UIEvent, UIControl and uses
In iOS, the Responder Chain is the name given to an UIKit-generated linked list of UIResponder objects, and is the foundation for everything regarding events (like touch and motion) in iOS.
Airbnb open-sourced a UICollectionViewLayout library.
https://github.com/airbnb/MagazineLayout
#iOS #layout #UI
https://github.com/airbnb/MagazineLayout
#iOS #layout #UI
GitHub
GitHub - airbnb/MagazineLayout: A collection view layout capable of laying out views in vertically scrolling grids and lists.
A collection view layout capable of laying out views in vertically scrolling grids and lists. - airbnb/MagazineLayout
Another series of tips, this time is about testing background session.
https://forums.developer.apple.com/thread/14855
#iOS #network
https://forums.developer.apple.com/thread/14855
#iOS #network
Apple
Testing Background Session Code |Apple Developer Forums
Testing an app that uses an NSURLSession background session is tricky because there are differences between the test environment and the production
An author compares a few approaches for converting a UIImage to Data in a less memory consumption way. One of them is using autoreleasepool with UIImageJPEGRepresentation. 🤔
https://bencoding.com/2017/03/07/thinking-about-memory-converting-uiimage-to-data-in-swift/
#optimization #iOS
https://bencoding.com/2017/03/07/thinking-about-memory-converting-uiimage-to-data-in-swift/
#optimization #iOS
bencoding
Thinking about Memory: Converting UIImage to Data in Swift
How often do you convert a UIImage into a Data object? Seems like a relatively straight forward task, just use UIImageJPEGRepresentation and your done. After doing this I started seeing memory spik…
A bunch of breaking changes need to be aware of before shipping an app with iOS 13 SDK.
https://fluffy.es/4-ios13-breaking-changes/
#iOS
https://fluffy.es/4-ios13-breaking-changes/
#iOS
fluffy.es - iOS development tutorials
5 breaking changes to check before building your app for iOS 13
iOS 13 does bring a lot of exciting feature like Dark mode, Multi-tasking, Sign in with Apple etc. Other than exciting feature, iOS 13 SDK also bring some breaking changes as well, overlooking these changes might cause your app to behave differently as expected…
“UTM is a full featured virtual machine host for iOS. In short, it allows you to run Windows, Android, and more on your iPhone and iPad.”
https://getutm.app
#iOS
https://getutm.app
#iOS
Forwarded from Readaggregator - iOS, Swift, Apple, Programming, Mobile (Nikita Ermolenko)
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
https://blog.artemnovichkov.com/sheet-happens
#iOS #swiftUI
Teletype
Sheet happens. Working with modal views in SwiftUI
My experience with sheets in SwiftUI based on developing pet projects.