- July 26, 2025
- Mins Read
Swinflate aims to encorporate a set of collection view layouts which provide a better and even more fluid experience in collection vieews . It is amongst the goals of this project to make it ruthlessly simple for you to use it in your application.
Swinflate is available for installation via Swift Package Manager and Carthage.
To install via Carthage, paste the next line your Cartfile:
github “https://github.com/VladIacobIonut/Swinflate” ~> 1.0.3
This layouts are designed to work with horizontal collection view of a single row and multiple columns.
import Swinflate
collectionView = UICollectionView(frame: .zero, collectionViewLayout: SWInflateLayout())
let stackLayout = SWHorizontalStackLayout()
stackLayout.hasStackEffect = true
collectionView = UICollectionView(frame: .zero, collectionViewLayout: stackLayout)
Note
hasStackEffect
property ( this property is false
by default).isPagingEnabled
property ( this property is true
by default).sizeForItem
method of the UICollectionViewDelegateFlowLayout
.
extension CustomLayoutViewController: UICollectionViewDelegateFlowLayout {
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
return CGSize(width: cellWidth, height: cellHeight)
}
}
NavigationKit is a lightweight library which makes SwiftUI navigation super easy to use. 💻 Installation 📦 Swift Package Manager Using Swift Package Manager, add ...
An alternative SwiftUI NavigationView implementing classic stack-based navigation giving also some more control on animations and programmatic navigation. NavigationStack Installation ...
With SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...
This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...