Implementing HealthKit in an iOS App

Introduction Previously, I worked with a healthcare app that used the HealthKit framework, but I did not get the opportunity to implement it myself. I decided to look into it and share what I found. In this article, I will focus on the steps to integrate HealthKit, write, and access its data. Preparation Before we dive into implementation, I assume that you have an active Apple Developer account; without it, you will not be able to access the HealthKit Store....

July 26, 2024 · 4 min · Dmytro Chumakov

Implementing Location Service

Introduction Nowadays, location is an essential feature in almost every application. It’s very important to know the best ways to implement it without affecting performance and user experience. In this article, I will focus on how to implement general methods in location service. Preparation Before we begin, let’s add location permission keys to Info.plist: Privacy - Location When In Use Usage Description Privacy - Location Always and When In Use Usage Description First Step The first step is to create LocationService with the requestPermissions method to be able to receive location events....

July 23, 2024 · 3 min · Dmytro Chumakov

Implementing ChatGPT in an iOS App

Introduction I haven’t had the opportunity to build a chatbot before. This topic was trending some time ago, and I always wanted to implement it myself. In this article, I will focus on the steps you need to know to successfully build and run a chatbot application. First Step The first step is to add the OpenAI dependency to your project: .package(url: "https://github.com/MacPaw/OpenAI.git", branch: "main") dependencies: [ .byNameItem( name: "OpenAI", condition: ....

July 21, 2024 · 2 min · Dmytro Chumakov

Implementing Apple Sign-In to an iOS App

Introduction The Apple Sign-In feature is very helpful and offers users login functionality with one click. It could be highly beneficial from a business perspective to attract more potential customers by providing easy and secure access to application functionality. In this article, I will focus on how to implement Apple Sign-In. Before implementation, let’s set up the necessary options to be able to run the app without errors. Add Sign in with Apple Capability to the project 📝 Before testing on the simulator, you need to be signed in to an account with enabled two-factor authentication....

July 18, 2024 · 2 min · Dmytro Chumakov

Implementing gRPC Swift

Introduction I’ve never had the chance to use this technology before. I’ve always wondered how gRPC operates. In this article, I will explore what gRPC is, how to install and use it, and when to use gRPC. What is gRPC? gRPC is an open-source, high-performance framework that facilitates efficient communication in distributed systems. gRPC is an implementation of the RPC (Remote Procedure Call) protocol, which enables services to call functions on other machines as if they were local software methods....

July 16, 2024 · 5 min · Dmytro Chumakov