Building this app for four platforms at once is interesting because code architecture choices I would make for one platform, I wouldn’t make for another. Toss in a dash of framework availability, and it can get complicated fast. I’m trying to strike a good balance between making forward progress and playing 4D chess with myself. 😄
Regardless, there’s definitely a big refactor in my future.
@MrRooni May I ask what app you’re working on?
We wrote Kookin in SwiftUI and are using the same code base for all platforms too, so I know the struggle you’re going through 😅
@JagCesar It’s a fairly straightforward fitness app. Not too many views, and a constrained set of functionality. I could map out all the use cases across all the platforms and plan it all out ahead of time, but for a hobby project, where’s the fun in that? 😄
One of the things I have on my list is to lean more heavily into the composability of #SwiftUI views and break the large View structures down into their respective parts and reuse them in platform-specific layouts.
@MrRooni yeah we use that one heavily too, with Core Spotlight for example. It’s unfortunate CoreSpotlight isn’t available on watchOS or tvOS.
Would make total sense to have app-content searchable system-wide on those platforms too. 🔍👀
@MrRooni @lorihc I’ll submit one tomorrow!
Having Spotlight available on my watch would frikkin awesome 🤩