edwinbosire / AppStore

⚠️ Experimental ⚠️ App Store using SwiftUI + Combinational layouts + Combine + more iOS 13 Goodies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App Store

⚠️ Experimental Stuff ⚠️

With SwiftUI & the new UICollectionView layout APIs being all the rage within the iOS community, I didn't know which to pick first. So I went ahead and implemented both in the same app.

This is an experimental project to see how some of the newly announced iOS 13 features works. A big part of the project is made up of UICollectionView Compositional Layout and SwiftUI elements. There is also a dash of Combine framework. I decided to mix and match UIKit & SwiftUI components to see how apps could integrate.

app store gif

What I've done

Used UICollectionViewCompositionalLayout to create 3 layouts without nesting UICollectionViews and all working on the same data type, it's truly is amazing.

I created three different cells, which are SwiftUI components hosted onto UIKit using UIHostingController, which basically takes a SwiftUI View and produces a UIViewController. I've used autolayout as the glue, and used Combine framework to pass data between these two worlds.

Each of the horizontal rows are unique layouts.

What's left to be done

Nothing! This was a weekend experiment to see what the new iOS13 APIs had to offer.

Resources

About

⚠️ Experimental ⚠️ App Store using SwiftUI + Combinational layouts + Combine + more iOS 13 Goodies


Languages

Language:Swift 100.0%