Scheduling Multiple Operations with Concurrency and Parallelism

Asynchronous Multi-Threaded Parallel World of Swift

Over the last 15 years, CPU clock rate has plateaued due to thermal limitations in processors. As a result, CPU manufactures have instead chosen to add more cores or processing units. Therefore nearly every device has multiple cores: from a Mac Pro to the Apple Watch. For this reason, Swift developers should take advantage of asynchronous methods.

Continue reading →
Asking for HealthKit permissions on the Apple Watch

Independent Watch App and HealthKit

In the development of my latest app which is an Independent Watch App that uses HealthKit, I ran into an issue with App Store Connect. App Store Connect will complain about missing Purpose Strings, that is the messages display to the user when access permission is asked for health information.

Continue reading →

Get Started Developing Server Side Swift with Vapor

Last month I spoke at SwiftTO in Toronto, a great conference with some great speakers. If you get a chance, check out all the talks here. My topic of choice was Vapor and how to get started. Here is the talk description:

While Swift has been on Apple devices such as the iPhone, iPad, Apple Watch, Mac, and Apple TV, in the last few years it has started to reach the Linux Operating System. This has allowed Swift to move from client devices to servers. Now we have several server side frameworks such as Perfect, Kitura, and Vapor. In this talk, Leo Dion goes into the details of developing with Vapor on the Mac to deploying onto the server. We talk about managing multiple process in Swift-NIO, the Fluent ORM, serialization of data, and the setting up of routes and authentication. If you are interested in taking a deep dive into Vapor, you’ll want to check out this talk.

If you are interested in learning more, check out my other posts on Vapor here as well as Vapor Tutorial Video Course here.

EmpowerApps.Show – Cloud and Backend Services For Apps

In this episode, Leo talks different backend technologies to use when building an iOS app or any other Apple device: when you need a cloud service, running on your own server, cloudkit, firebase, and more…

  • Does an app need a back-end or cloud service?
  • Enterprise vs MVP
  • Cloud Service vs. Custom Backend
  • Firebase vs CloudKit
  • Designing for the User
  • Abstracting Away Cloud Services