- 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...
- 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...
- 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...
- 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...