umaKim / KatKit

KatKit provides user to use horizontally scrollable menu buttons.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KatKit

KatKit is a Swift UI library for iOS. It looks similar to the Daagn market category horizontal scroll view, while allowing customization when needed.

Simulator Screen Recording - iPhone 12 Pro - 2021-12-21 at 22 48 26

Installation

KatKit can be installed with Swift Package Manager.

Swift Package Manager (Xcode 12 or higher) The preferred way of installing KatKit is via the Swift Package Manager.

In Xcode, open your project and navigate to File → Swift Packages → Add Package Dependency... Paste the repository URL (https://github.com/umaKim/KatKit.git) and click Next. For Rules, select Version (Up to Next Major) and click Next. Click Finish.

Usage

let katView = KatView()
katView.items = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7", "Item 8"]
katView.delegate = self
func katView(_ katView: UICollectionView, didSelectItemAt indexPath: IndexPath) {

}

Requirements

iOS 14.0+ Swift 5+

Author

Uma Kim

About

KatKit provides user to use horizontally scrollable menu buttons.


Languages

Language:Swift 100.0%