Latest | 0.0.1 |
---|---|
Homepage | https://github.com/rayray199085/SCRHintView |
License | MIT |
Platforms | ios 9.0, requires ARC |
Dependencies | pop |
Authors |
Imitate Apple Keyboard Bubble Hint
Use cocoapods to load: pod "SCRHintView"
Example:
1. private lazy var hintView = SCRHintView() // init an instance of hint view
2. view.addSubview(hintView) // add hintView to the controller’s view or to the window when buttons are used as keyboard’s keys
3. hintView.icon = SCRHintIcon(image: nil, text: button.titleLabel?.text) // set hintView display content, image or text
4. let btn = hintView.showWithLongPress(parentView: view, pressView: button, recognizer: recognizer) as? UIButton // If the long press gesture ends with ended state, this function returns the pressing view, otherwise it returns nil
Latest podspec
{ "name": "SCRHintView", "version": "0.0.1", "summary": "Imitate Apple Keyboard Bubble Hint", "homepage": "https://github.com/rayray199085/SCRHintView", "license": "MIT", "authors": { "Rui Cao": "[email protected]" }, "platforms": { "ios": "9.0" }, "source": { "git": "https://github.com/rayray199085/SCRHintView.git", "tag": "0.0.1" }, "source_files": [ "SCRHintView", "SCRHintView/HintView/**/*.{swift}" ], "requires_arc": true, "swift_version": "4.0", "resources": "SCRHintView/HintView/resources.bundle", "dependencies": { "pop": [ "~> 1.0.12" ] } }
Wed, 15 May 2019 10:04:04 +0000