Skip to content

rahuliyer95/iShowcase

Repository files navigation

iShowcase

Highlight individual parts of your application using iShowcase

CI Status Version License Platform Issues

1

Requirements

  • iOS 7.0 or higher
  • ARC

Installation

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

pod "iShowcase", "~> 2.0"

or

Swift

  • Add iShowcase.swift file to your project

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Creating Instance

// Create Object of iShowcase
let showcase = iShowcase()

Delegate

showcase.delegate = self;

Delegate Methods

iShowcaseShown // Called When Showcase is displayed
iShowcaseDismissed // Called When Showcase is removed

Displaying iShowcase

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)

Customizations

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

Screenshots

2 3 4 5

Credits

Inspired from ShowcaseView by Alex Curran

Author

rahuliyer95, rahuliyer573@gmail.com

License

iShowcase is available under the MIT license. See the LICENSE file for more info.