Skip to content

APUtils/APTips

Repository files navigation

APTips

Carthage compatible Version License Platform CI Status

A simple tip that shows message to a user. It able to point to the element center and adjust its side depending on an available space but it uses only top and bottom sides. It able to handle complex UI with reusable cells and views in most cases. It also has an ability to show some tips only once so you won't need to write an additional logic for that.

Example

Clone the repo and then open Carthage Project/APTips.xcodeproj

GIF animation

Installation

Carthage

Please check official guide

Cartfile:

github "APUtils/APTips" ~> 1.0

CocoaPods

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

pod 'APTips', '~> 1.0'

Usage

Always show at the view's center:

let tip = Tip(message: "Example tip", pointingMode: .center, showMode: .always)
TipsManager.shared.show(tip: tip, for: view)

Show once at the sender's side:

let tip = Tip(message: "Example once tip", pointingMode: .center, showMode: .once)
TipsManager.shared.show(tip: tip, for: sender)

See example and test projects for more details.

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author

Anton Plebanovich, anton.plebanovich@gmail.com

License

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

About

Simple tips to show over interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published