marko retweeted
Whoa, my dude you're selling React Native. Of course, you have that stance. I can spot RN apps from 100000 miles away. It's like iOS app from Wish.
I read this tweet and laughed. We regularly come into companies that have full, dedicated native app teams, rebuild their entire (10+ year old) apps in React Native, and pass up their native teams who are still struggling to ship features. Then ship to the App Store / Google Play Store and improve the overall star rating for the apps.
(The *best* possible outcome is when the native devs enthusiastically embrace React Native ... because they tend to make amazing RN devs. I was a native iOS dev prior to RN!)
I get that my team is particularly good at RN, but if your team is going to slow down their feature iteration speed and destroy their app quality just because they switch to React Native, it's really not the tech stack's fault.
marko retweeted
`myArray[someIndex] // Fatal error: Index out of range`
Wouldn't it be cool if we had a way to safely subscript an array? 😌
As it turns out, this is actually very easy to implement in Swift, thanks to custom subscripts!
Let me show you how it works 🔥
marko retweeted
Converting HEIC files to JPGs is actually built into Finder now, no need to manually use ‘Preview’ or similar.
marko retweeted
💡 iOS has a secret feature to make its screen as dark as a Kindle so you can read at night:
- go to iOS settings -> Accessibility
- go to Zoom -> Zoom Filter
- enable Low Light ✔️
Combine this with iOS's Smart Invert mode and you now have a low light dark mode reader
marko retweeted
iOS 15 got a new way to format data.
Learn why do we need this, what happened to the old API, and the benefit of the new one.
sarunw.com/posts/new-formatt…
marko retweeted
GitHub issues tip: if you paste in a link to an issue or PR in another repo it will display it as a truncated URL, but if you instead add it in a hyphenated bullet point it will display the title of the issue and and indicate if it is open or closed
marko retweeted
Another good iOS dev tip for saving space: ImageOptim is a godsend, just trimmed 15 MB off some custom app icons.
marko retweeted
#iOSDev tip: `NSUbiquitousKeyValueStore` exists and it is basically iCloud-synced UserDefaults 👍
Just used it today again to sync settings iOS <=> tvOS app
marko retweeted
iOS 15 introduces a new way for you to conveniently update content displayed in existing cells in UICollectionView and UITableView: reconfigure.
When and why should you use reconfigure? How is it different from reloading an item or row?
Let’s dive in with a quick thread.
marko retweeted
#SwiftTip You can gracefully avoid nested do/catch with a simple extension on the Result type. Really useful if you want to try different things before eventually fallback on a default value.
gist.github.com/jegnux/500b0…
marko retweeted
The bigger the project gets, the most you need to decouple responsibilities. That’s how I ended up with the PIKACHU architecture. What's yours?
marko retweeted
If you want to learn iOS design, we just created a massive guide with videos and Figma files designcode.io/ios-design-han…
marko retweeted

Paul Hudson@twostraws27 Jan 2021
United Kingdom
United KingdomConnected via United Kingdom App StoreAccount-level information, not a live location or per-post device.
I made a little tool to help you decide which property wrapper was the right choice for your SwiftUI view. Feedback welcome! Try it here: hackingwithswift.com/article…
marko retweeted
So apparently App Transport Security can now (since when?) do SSL pinning natively, but the only “documentation” is this post on the developer app/website, and the relevant Info.plist keys are in an image, so they won’t show up on Google 😅 developer.apple.com/news/?id…
marko retweeted
Some less known tips for writing unit tests 🤩
bit.ly/2Li0qRp?utm_campaign=…
🛑 Throwing test methods
✋🏻 Assertions inside the setUp() and tearDown() methods
🚀 Re-run latest test with ⌃ Control + ⌥ Option + ⌘ Command + G
#swiftlang #ios
marko retweeted
Well press conference went as expected. What we did not expect was the spike in downloads. 📈
Welcome everyone! 👋🏼
marko retweeted
🗣 Ok one of my fave iOS #a11y tips.
You know how sometimes you’re reading & you encounter a new word you don’t know how to pronounce? (Just me?! 😳)You can ask iOS to speak JUST that word using Speak Selection! (If language isn’t obvious it’ll let you chose the language even!)




































