At least once in a lifetime any iOS developer has inherited a legacy project from a younger himself or from someone else who coded when iOS development was a gold race for indie developers.
At that times only a few of us cared about tests, testability, architecture or patterns. There was only massive view controllers, care for limiting number of crashes, care for a unlimited number of features, and singletons.
There was a lot of singletons.
Singletons are very easy to implement with just 1 line of code in Swift and 5 in Objective C, are easy to invoke from…
As you already know since iOS 12 it’s possible to “donate” Siri Shortcuts from your app to the OS that users can find in iOS settings and that can be used in Shortcuts app for custom purposes.
You can find plenty of guides and talks about donating Shortcuts both using NSUserActivity or INIntent like this talk by Ellen Shapiro from NSSpain 2018.
In this post my topic is slight different and it’s a kind of quick win for Siri Shortcuts: show the UI for Siri Shortcut voice registration directly from your app with a standard button that every user can…
In my last post I wrote about introducing 3D Touch as common UIGestureRecognizer in any UIView to improve the interaction with your app, now I want to explore the haptic feedback which is giving us a new physical way to give control to the user of what is happening on his iPhone.
Until haptic feedback through taptic engine, play sounds were the only way to provide users a feedback about an action in the app, but sounds are annoying and sometimes creepy.
UIKit is providing us a clean and elegant way for that: a standard and safe interface for haptic…
I know, rumors are reporting Apple to remove 3D Touch in 2019 new devices, but I’m still in love with this feature since it’s first implementation in iPhone 6s.
As a developer I’ve only implemented it in UITableView cells, UICollectionView cells with peek and pop and in Quick Actions in iOS SpringBoard, but recently I needed to have an UIGestureRecognizer to apply to any UIView that intercepts 3D Touch as you can do with tap, drag, ecc, but nothing similar is available in system libraries. …
As iOS developer i really love all the little things that are making iOS great and one of my favourite is the squircle that Apple apply to springboard icons.
I’ve found many articles written by many designers (one of my favorites is this one by figma), but nothing about iOS implementation and since i love rounded corners, i wanted to go further.
Available through Cocoapods you can find my last creation Squircle that you can import just adding
to your podfile.
The library is super easy to use. If you try to squircle a square, you’ll obtain the…
Within iOS SDK 10.3, Apple has relased a new Controller in StoreKit framework. SKStoreReviewController has only one method: requestReview. New requestReview method has one purpose, sto annoying users with “not now” and “don’t ask me again” buttons, redirects to App Store and other many tricks implemented by developers to gain a review. It will present a standard and clear system alert, where your user can tap the stars, giving you a rate from 1 to (as usual) without leaving your application.
This static method has no parameters, no callback and it’s very simple to implement by anyone.
In Swift 3:
Remember to import StoreKit in your project!
Check out the Apple API Reference for more info about this new method.
While starting a new project, every choice you make will influence your project forever, so lat me give you some advice based on my personal experience.
As a 4 year iOS developer i’ve tested many frameworks, libraries, snippets and all of his friends. Every time I discover a new one, I try to imagine an application to play with.
Some weeks ago, during new tvOS beta testing, i was really surprised about how terrible is the text input system with Apple TV Remote, and I was very happy about YouTube and AirBNB login system.
Basically the TV gives you a code, you have to write this code somewhere on your phone/internet page and magically your logged in. Cool right? …
iOS Developer and Architect, Scrum Master, person.