- Passing Context Into Swift Codable Using UserInfo
I recently encountered a problem where I needed to provide a Codable type with more context than what was available in the JSON payload. This led me to discover the userInfo dictionary on the JSONDecoder type...
- Orientation and rotation detection in SwiftUI for iOS... cough... with UIKit
I needed to know the rotation direction of the device when it switched between orientations, so I could rotate a 2d array. I wanted it to feel modern and easy to use with SwiftUI, here is my attempt...
- Show A List Of Bluetooth Devices Using SwiftUI
A long time ago I wrote a post about discovering BLE peripherals and displaying them in list form. That was way before SwiftUI though so I thought I'd revisit the idea, remaking the feature in the quickest and low complexity way possible to get started quickly...
- Fully Tappable Rows In SwiftUI Lists And My Journey To Them
In my new app BLE Discover, I set out to build a settings page with a fairly basic list of items, which when tapped present a new view modally. Seems easy enough right? Just add a tap gesture to each view in the list...
- Implementing Alternative App Icons In SwiftUI
For one of my personal apps, I wanted to do something fun and add alternate app icons. Well, it was really to try and decide which icon I liked best but anyways… turns out it's relatively easy to implement...
- Bullet Point List - UIKit
Bullet points in iOS apps always seem to cause more of an issue than I'd think possible, often not indenting correctly at the right places. Using NSParagraphStyle and NSAttributedString we can get what we'd expect, with little effort...
- Get List Of BLE Devices Using CoreBluetooth
This post will show the minimum effort needed to get a list of BLE (Bluetooth 4.0) devices that are advertising on your iOS device...
- Blurring a UIView With Animation - (Archive)
I needed to animate a blur over an image recently so I thought I would share how simple the effect can be achieved. You will need to be building with iOS 8 or above...
- Easy Expanding/Collapsing TableViewCells
I noticed when using an app the other day that its UITableViewCells were increasing in size when touched, with the height increase also animated. I thought this would be quite difficult to achieve but after digging around it turns out that its quite simple...
- Sorting Arrays - Objective C
Using arrays is a staple of iOS development and there are many tools at our disposal to do all manor of things with them. Below are some that I use often and find quite useful...
- IBInspectable and IBDesignable - Swift
When making views in Xcode Storyboards it can be frustrating not being able to see any work you have done using code or not being able to change run time attributes like corner radiuses. Fortunately, Xcode has some added some features to storyboards that permit real time run time attribute editing...
- Raspberry Pi Temperature Sensor Web Server - Part 4 (iOS Swift App)
Finishing the project up by building the iOS app to read the temperature data from the already built web server...
- Centre UICollectionView Cells Horizontally iOS
I needed to make cells appear from the centre of a collection view for a work project recently. Heres how I did it...
- RFduino & iOS - Sending large strings
With a limitation of 20 bytes per transaction, how can we send even just large strings to the RFduino...
- UART with Bluetooth Low Energy (BLE) using Dorji DBM01
Using some low cost BLE UART modules to do some simple communicating between a phone and device...