Category: ios

Articles about iOS development in Swift or Objective-C

Navigation in SwiftUI

Back in July I wrote a post about Navigation in SwiftUI trying to explain the difference between NavigationLink and DynamicNavigationDestinationLink. The latter has been deprecated, so the article is now useless, you can still find it here http://www.gfrigerio.com/navigation-in-swiftui-deprecated/I updated the repository on GitHub to remove the deprecated code and provide a few examples of various

Continue Reading →

Diffable Data Sources

WWDC 2019 was really packed with new stuff for iOS and the new data sources for TableViews and CollectionViews didn’t get the same attention as SwiftUI but are a really nice addition for people still working with UIKit. I’m going to focus my post on UITableViewDiffableDataSource but there is a similar API for CollectionViews and

Continue Reading →

CoreData in SwiftUI

One of the topics I wanted to explore about SwiftUI was how to integrate CoreData in it, and I want to describe two approaches you can follow: a direct one using property wrappers and another one by having a class hide the existence of Core Data to the user.I usually prefer the latter, as it

Continue Reading →

Progress bar in SwiftUI

Progress bars and activity indicators is something we tend to use a lot in iOS applications and it is nice to customise them instead of using all the time the standard UIActivityIndicatorView.I think SwiftUI makes it really easy to build this kind of views and I implemented 4 of them in my sample GitHub project

Continue Reading →

Navigation in SwiftUI deprecated

UPDATE: DynamicNavigationDestinationLink has been deprecated so most of this article is useless. I wrote a new one and updated the GitHub repository In this post I want to explain the difference between NavigationLink and DynamicNavigationDestinationLink in SwiftUI with a quick example and point out the differences between them.You can find the sample code on GitHub

Continue Reading →

SwiftUI on Apple Watch

SwiftUI was one of my favourite announcements during WWDC 2019 alongside Combine. At the time I’m writing this post, mid July, beta 4 has just been released and although it isn’t yet stable I think SwiftUI is starting to get interesting. I think it will be hard to drop iOS 12 support soon, but SwiftUI

Continue Reading →

Ad Hoc distribution

I want to share my experience building and distributing apps with xcodebuild hoping to help some iOS developer struggling with automating build and distribution via command line. There are two ways to distribute a test version of your app for iOS: TestFlight and Ad Hoc.The former allows you to submit a build to App Store

Continue Reading →

Apple Push Notifications

Here’s a quick guide to implement Push notifications on iOS. Every now and then I need to implement push notification and I always forget how to create the certificate and convert it to use with python, so this guide will be helpful to the future myself and hopefully to some fellow developers 😉Actually, creating the

Continue Reading →