FibKit is a Swift library that brings a SwiftUI‑like declarative syntax to UIKit. It allows you to build complex asynchronous user interfaces while retaining full control over UIKit components. The package supports iOS 13 and higher and can be integrated using Swift Package Manager.
For a Russian version of this document see README.ru.md.
- SwiftUI style interface code with function builders
- Views implemented entirely on top of UIKit
- Declarative sections and view models for building forms and lists
- Optional code generation templates for creating views and controllers
- Example iOS application showcasing the library in action
The package can be added to your project using the Swift Package Manager. In your Package.swift add FibKit as a dependency:
.package(url: "https://github.com/pockerhead/FibKit.git", from: "0.1.0")Then include FibKit in your target dependencies:
.target(
name: "YourApp",
dependencies: ["FibKit"]
)You can also open the FibExampleApp Xcode project located in FibExampleApp/ to see a working example.
Sources/FibKit– Main library source codeSources/FibNavigation– Navigation helpersTests/– Unit testsFibExampleApp/– Example iOS application
For a hands‑on guide to building controllers with sections, see the FibViewController examples. The document covers static sections, dynamic lists and common modifiers.
See the EmbedCollection guide for embedding horizontal rows inside a flow layout screen.
For details on the base reusable view see the FibCoreView guide.
To build the package from the command line run:
swift buildRun the test suite with:
swift testContributions are welcome! Feel free to open issues or pull requests if you encounter problems or have improvements.