Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rootstrap/neattipview
A swift library to easily create and present tips for you user in your iOS app
https://github.com/rootstrap/neattipview
cocoapods ios ipad library swift swift5 tooltip
Last synced: 3 months ago
JSON representation
A swift library to easily create and present tips for you user in your iOS app
- Host: GitHub
- URL: https://github.com/rootstrap/neattipview
- Owner: rootstrap
- License: mit
- Created: 2019-07-19T16:20:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-04T01:50:10.000Z (about 4 years ago)
- Last Synced: 2024-10-12T14:05:07.390Z (4 months ago)
- Topics: cocoapods, ios, ipad, library, swift, swift5, tooltip
- Language: Swift
- Homepage: https://rootstrap.com/
- Size: 1.99 MB
- Stars: 43
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
[![Version](https://img.shields.io/cocoapods/v/NeatTipView.svg?style=flat&colorA=000000)](http://cocoapods.org/pods/NeatTipView)
[![License](https://img.shields.io/cocoapods/l/NeatTipView.svg?style=flat&colorA=000000)](http://cocoapods.org/pods/NeatTipView)
[![Platform](https://img.shields.io/cocoapods/p/NeatTipView.svg?style=flat&colorA=000000)](http://cocoapods.org/pods/NeatTipView)## [Live Docs](https://rootstrap.github.io/NeatTipView/)
## What is it?
NeatTipView allows you to display message tooltips that can be used as call to actions or informative tips.
- [x] Allows Different tip positionings.
- [x] Multiple animation styles.
- [x] Smart placement for dynamic strings.
- [x] Full NSAttributtedString support.## Installation
NeatTipView is available through [CocoaPods](http://cocoapods.org) and [Carthage]().
### Cocoapods
To install it, simply add the following line to your Podfile:
```ruby
pod "NeatTipView"
```### Carthage
To install it, simply add the following line to your Cartfile:
```
github "rootstrap/NeatTipView"
```## Usage
### 1. Customize your preferences
Preferences are encapsulated inside the `NeatViewPreferences` struct, check the inline docs for more info about which customization points are available.Example:
```swift
var preferences = NeatViewPreferences()
preferences.animationPreferences.appearanceAnimationType = .fromBottom
preferences.animationPreferences.disappearanceAnimationType = .toBottom
```### 2. Initialize and Present the tip
```swift
let tipView = NeatTipView(
superview: view,
centerPoint: center,
attributedString: attributedString(),
preferences: preferences,
arrowPosition: arrowPosition
)
tipView.show()
```## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## License
NeatTipView is available under the MIT license. See the LICENSE file for more info.
## Credits
**NeatTipView** is maintained by [Rootstrap](http://www.rootstrap.com) with the help of our [contributors](https://github.com/rootstrap/NeatTipView/contributors).
[](http://www.rootstrap.com)