Introduction
MMActionSheet 是一个简单的弹出选择框,使用纯swift编写,类似于微信的actionsheet
MMActionSheet is an simple pop-up selection box(ActionSheet) written in pure Swift. Similar to the wechat actionsheet
Rquirements
- iOS 8.0+
- swift 4.0+
Installation
Swift Package Manager
To install with Swift Package Manager, add this package to your project’s ‘Swift Packages’ section. Or add the following line to your Package.swift:
.package(url: "https://github.com/MinMao-Hub/MMActionSheet.git", from: "2.0")
Install with Cocoapods
-
To install MMActionSheet using CocoaPods, integrate it in your existing Podfile, or create a new Podfile:
platform :ios, '8.0' use_frameworks! target 'MyApp' do pod 'MMActionSheet', '~> 2.0' end
-
Execute command:
pod repo update master
pod install
-
Import MMActionSheet in you code
import MMActionSheet
Manual import
Just clone and add components dir to your project.
Example
desc | preview |
---|---|
Has Cancel buttons and Title 【有标题和取消按钮】 |
![]() |
Has a Cancel button but no Title 【无标题有取消按钮】 |
![]() |