When testing StoreKit connected directly to XCode, you need to have your .storekit file open and then use the debug menu to test purchases. This is the first time I realized that the menus changed what they have in them dependent on what file you have open. This also means […]
Bowling Score Tracker
My girlfriend is part of a bowling league and every week she writes her scores down on a piece of paper. After seeing her do this for many seasons of bowling I’ve decided I would build her a simple mobile application that she can enter these scores into. If you […]
When sharing data between targets using UserDefaults
When you have to use UserDefaults to share data between a core app and a widget you have to do a couple of things. Inside of the project Signing & Capabilities use the Add Capabilities button to add App Group. You need to do this while selecting both the app […]
Advanced SwiftUI Stepper
Apple’s built in stepper allows you to only have one step increment value, I’ve designed on that allows for two different increment values. Initial version supported 1 and 10 for the step values and is tied to an integer. This of course is the first revision, and it isn’t very […]
Swift Temperature Format Customization
When you use Measurement format function in Swift it will always format the temperature to the format of the locale of the device. This is not the experience I wanted in my application. I wanted to provide the user an option to chose which scale they wanted to use, so […]
Slide Out Menu for iOS using SwiftUI
This week I’ve been working on prototyping a slide out menu, or as most people know it as the hamburger menu. This is a very useful navigation system for apps once the scale past 5 “systems” or tabs. This system has to wrap the main content view inside of a […]
Navigation View Constraints
If you are using Swift UI and you get an error based around the constraints, you might be able to fix it by putting this line at the end of your navigation view. .navigationViewStyle(.stack)
Converting a callback function to async await in Swift
Occasionally you will need to convert a callback based function to an async/await function. One example of this is below, calculating a map route appears to be only available as a callback based one. Below is an example of how to convert it to an async function. This code is […]
Sharpening My Tools Part 2
Developing an iOS application is full of small bits of repetitive tasks. When you develop User Interface in code, you must create and handle constraints in code. Depending on what you have to do this could become extremely repetitive and complicated. You can write each constraint yourself, but this gets […]
Sharpening My Tool Part 1
I’ve been working on a full fledged pdf reader application for iOS. During the process of developing for this I have wanted to use Icons from Font Awesome; as buttons in the app. Apple’s iOS doesn’t like SVG files or the font awesome font files, to work around this I’ve […]