Speech To Text iOS

Introduction I always wanted an iOS app that would allow me to economize my time by converting speech to text. I know this option is built into the keyboard, but you first need to click the text field, then tap on the microphone, and finally speak. I wanted a one-click option with the possibility to integrate it into all my daily routines. Here is what I discovered: First Step The first step is to request authorization to access the device’s microphone using the Privacy - Speech Recognition Usage Description key and the Privacy - Microphone Usage Description key....

May 23, 2024 · 4 min · Dmytro Chumakov

Implementing GraphQL in an iOS application

Introduction I previously never had a chance to work with GraphQL. I was excited to learn when to apply this technology, what tools I can use, and how I can implement it. Here’s what I found: For testing, I used the Star Wars GraphQL API with AllFilmsQuery: query AllFilmsQuery { allFilms { films { title director created producers releaseDate } } } I requested allFilms with title, director, created, producers, and releaseDate information....

May 15, 2024 · 3 min · Dmytro Chumakov

Building Dynamic Island for Video Streaming App

Introduction I was curious about how to add Dynamic Island and implement it into a Video Streaming App. Here are a few steps on how you can achieve this. Caveats Debugging Dynamic Island can be a bit tricky; it only works when the main app is running. If you try to run it separately, you will encounter the error SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget". The solution is to configure live activities and run them through the main app....

May 6, 2024 · 2 min · Dmytro Chumakov

Building Video Streaming Widget for iOS App

Introduction I was exploring the idea of creating a YouTube-like widget for the lock screen on iOS devices. It wasn’t easy because most articles on the Internet discussed general implementations, such as for a coffee shop or a to-do list. Even when I found some similar versions, the project wouldn’t compile. I made the decision to approach it my way, so here’s what I found out: Caveats After being stuck for two or more hours without understanding why, after tapping on a button, I wasn't able to receive a callback from it and the widget always opened the main iOS app, I realized that I forgot to add AppIntent - without it, you can’t handle actions for iOS 17....

May 5, 2024 · 2 min · Dmytro Chumakov

Building Video Streaming iOS App

Introduction I was looking for a way to add a video player to my iOS app that could be able to play remote videos. Caveats Problem I found that you can’t open Vimeo or Youtube videos because of AVFoundationErrorDomain Code=-11850 "Operation Stopped" UserInfo={NSLocalizedFailureReason=The server is not correctly configured Domain=NSOSStatusErrorDomain Code=-12939 error. I don’t know exactly what this means, but I’m speculating it’s related to some protection. Solution My solution was to find another video that is not related to those platforms....

May 3, 2024 · 1 min · Dmytro Chumakov