KPActionSheet
  • August 12, 2023

A replacement of default action sheet, but has very simple usage.

Todo


Add more custom affects and styles.

Installation


CocoaPods

KPActionSheet is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod ‘KPActionSheet’, git: ‘https://github.com/khuong291/KPActionSheet’

Manually

  1. Download and drop needed files in your project.
  2. Congratulations!

Usage

let kpActionSheet = KPActionSheet(items: [
KPItem(title: “Hello guys 😎”, onTap: {
print(“Hello guys 😎”)
}),
KPItem(title: “Hello girls 😇”, onTap: {
print(“Hello girls 😇”)
}),
KPItem(title: “Cancel”, type: .Cancel)
])
present(kpActionSheet, animated: true, completion: nil)

GitHub


View Github

#ios #swift
YOU MIGHT ALSO LIKE...
PermissionsSwiftUI: A SwiftUI package to handle permissions

PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by SPPermissions. The UI is highly customizable and resembles an Apple style. ...

Pager tab strip view

Introduction PagerTabStripView is the first pager view built in pure SwiftUI. It provides a component to create interactive pager views ...

PageView

SwiftUI view enabling page-based navigation, imitating the behaviour of UIPageViewController in iOS.

Pages

    

How to take action when a property changes

1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...