GitHub - Wil-Macaulay/attributedRelationships: Demo code for Core Data/Cloudkit

Demo code for Core Data/Cloudkit . Contribute to Wil-Macaulay/attributedRelationships development by creating an account on GitHub.

GitHub

#iosdev #buildInPublic #coredata #uikit

I couldn't figure out how to do it programmatically, but I had to make it a subclass of UITableViewHeaderFooterView, add it as a subview of the TableView in the storyboard and then put my stackView as a subview of the contentView, with explicit constraints, which magically obeys the changing margins.

21/n

#iosdev #buildInPublic #coredata #uikit

Most of this went together pretty easily but I spent way too much time trying to figure out how to get my tableHeaderView to properly respect changing margins as sidebars and splitviewcontrollers resize and show/hide.

20/n

#iosdev #buildInPublic #coredata #uikit

I know that UITableViewControllers are sort-of soft-deprecated, but they're a lot easier to use for this sort of prototyping than UICollectionViewControllers. Also, diffable data sources are recommended but are way overkill for most situations and hard to understand.

19/N

#iosdev #buildInPublic #coredata #uikit

I’m using a UITabBarController with UISplitViewControllers as the individual tabs for the prototype. This works nicely in iOS 26, but not in iOS 18, and no hope of getting it to run on anything earlier.

18/n

#iosdev #buildInPublic #coredata #uikit

Over the years I've been using Storyboards less and less. I now tend to build VCs programmatically using UIStackViews.

The shipping version manages a single 3-pane UISplitViewController and transitions manually to a tab bar when necessary. This works back to iOS 15, but it's annoying to debug and makes assumptions about the frameworks that may not be true going forward.

17/n

#iosdev #buildInPublic #coredata #uikit
Some random observations while developing the prototype/testbed app:
Why doesn't Apple put the superclass in the Swift version of the docs for #UIKit ? It's still there in the Obj-C version. There's lot's of times when I need to see the APIs for the superclass.
I'm using #UIKit, not SwiftUI. I've done a bit of playing with SwiftUI, but I've been using UIKit since 2009, and I like it better for CoreData related stuff, so I will stick with it.

16/n

Has anyone gotten #UIKit UISlider.TrackConfiguration.Tick to actually draw tick marks?! Grrrrrrrrrrr!

Wow I just had the craziest brainfuk experience with a custom UICollectionView layout and contentInsetAdjustmentBehavior. From what I can tell, unless the view extends the width of the display, .automatic doesn't add the horizontal content inset but if it does it extend, it'll add it out of no where. I had to specify .always get consistently which I guess makes sense?

#uikit #iosdev

The implementation is still in its early development stages, so I plan to test it for #SwiftUI performance. 🚀

Many people still use navigation in #UIKit, and when we need to support legacy code, it makes sense. However, this time I want to approach it using pure SwiftUI. ✨