测试测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2017年9月 |
SwiftSwift 版本 | 4.0 |
SPM支持 SPM | ✗ |
由 Rahul Iyer 维护。
使用 iShowcase 突出您应用程序的各个部分
或
iShowcase.swift
文件添加到您的项目中要运行示例项目,请克隆仓库,并首先在 Example 目录中运行 pod install
。
// Create Object of iShowcase
let showcase = iShowcase()
showcase.delegate = self;
iShowcaseShown // Called When Showcase is displayed
iShowcaseDismissed // Called When Showcase is removed
showcase.setupShowcaseForView(view: UIView)
showcase.titleLabel.text = "Default"
showcase.detailsLabel.text = "This is default iShowcase!"
showcase.show()
// For custom location
setupShowcaseForLocation(location: CGRect)
// Methods for other UI Elements
setupShowcaseForTableView(tableView: UITableView)
setupShowcaseForTableView(tableView: UITableView, withIndexPath: NSIndexPath)
setupShowcaseForTableView(tableView: UITableView, withIndexOfItem: Int, andSectionOfItem: Int)
setupShowcaseForBarButtonItem(barButtonItem: UIBarButtonItem)
public enum TYPE: Int {
case CIRCLE = 0
case RECTANGLE = 1
}
titleLabel: UILabel
detailsLabel: UILabel
coverColor: UIColor
coverAlpha: CGFloat
highlightColor: UIColor
type: TYPE
radius: Float
singleShotId: Int64
hideOnTouchOutside: Bool
灵感来源于 ShowcaseView,由 Alex Curran 创建
rahuliyer95,[email protected]
iShowcase 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。