aleksandrshoshiashvili / awesomespotlightview Goto Github PK
View Code? Open in Web Editor NEWAwesome tool for create tutorial walkthrough or coach tour
License: MIT License
Awesome tool for create tutorial walkthrough or coach tour
License: MIT License
Will you please provide CocoaPods support? 9404ece
Have you been able to get it to focus directly on a navigation controller's bar button item?
Hello!
When i set enableArrowDown to true, no arrow appears. i just do spotlightView.enableArrowDown = true. Should i do something else?
Thanks and best regards,
Adding Imageview or images together with the text would be an awesome addition to the library. Thanks for the great library.
suport object-c?
AwesomeSpotlightView at line 23
You guys are need to declare delegate as weak variable. It's causing memory leak.
i am trying to use this library in tableview cells ,but its not updating correctly .
Please help me on this .
Thanks
Hi,
I'm loving this library and have been using it for my new app.
Currently, I spotlight a view I want my user to tap, but he has to tap twice in order to first dismiss the spotlight view. Is it possible to enable user interaction within the spotlight so I can eliminate the first tap?
Thank you,
Andrew
I'm trying to implement 0.2.0 on Swift 5. For some reason, the cutoutradius won't show. I'm I doing something wrong?
Hello,
First of of thanks a lot for such useful library 👍
For images "Circle" mode just covers the borders of image that would be great if we can define extra margin for the circle around the item so it can be bigger
Cheers
Hello,
Thanks for the efforts on this beautiful library, I had to tweak it a little bit, as I needed to highlight an item on the UINavigationBar
, but it only shows on the view
below the NavigationBar, so what I did is
extension UIView {
func getGlobalPoint(toView: UIView? = UIApplication.shared.delegate?.window!) -> CGPoint {
return self.superview!.convert(self.frame.origin, to: toView)
}
}
Then on any view I would define my CGRect according to the CGPoint of the view I want to spotlight
let currentWindow: UIWindow? = UIApplication.shared.keyWindow
let aRect = CGRect(origin: your_view.getGlobalPoint(toView: currentWindow?.superview), size: CGSize(width: your_view.width, height: your_view.height))
let spotlightView = AwesomeSpotlightView(frame: currentWindow!.frame, spotlight: [spotlight1])
currentWindow?.addSubview(spotlightView)
Here is the full code
let currentWindow: UIWindow? = UIApplication.shared.keyWindow
let aRect = CGRect(origin: your_view.getGlobalPoint(toView: currentWindow?.superview), size: CGSize(width: your_view.width, height: your_view.height))
let spotlight1 = AwesomeSpotlight(withRect: aRect, shape: AwesomeSpotlight.AwesomeSpotlightShape.roundRectangle, attributedText: NSAttributedString(string: " Some Display Text"), margin: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10), isAllowPassTouchesThroughSpotlight: true)
let spotlightView = AwesomeSpotlightView(frame: currentWindow!.frame, spotlight: [spotlight1])
spotlightView.cutoutRadius = 8
spotlightView.delegate = self
currentWindow?.addSubview(spotlightView)
spotlightView.start()
I might open a PR with this tweak later, but I'm a bit busy, therefore I shared the solution here.
Thanks again for the efforts @aleksandrshoshiashvili
Since the spotlightMask
fill colour is only set on setupMask()
which in turn is only triggered by init(frame
there is no way to set the spotlight mask colour.
I'd like to be able to perform a closure after a Spotlight has completed presentation.
I want AwesomeSpotlightView to show a spotlight by specifying with index.
Could you change `goToSpotlightAtIndex(index: Int)' method to public?
When installing as a pod.
Bundle.main.path(forResource: "AwesomeSpotlightViewBundle", ofType: "bundle")
resolves incorrectly.
The bundle path should be as following:
if let bundlePath = Bundle(for: AwesomeSpotlightView.self).path(forResource: "Localizable", ofType: "plist") {
The podspecs for versions above 0.1.4 have not been updated correctly.
Versions 0.1.5 through to 0.1.8 are still pointing to the 0.1.4 release tag:
"source": {
"git": "https://github.com/aleksandrshoshiashvili/AwesomeSpotlightView.git",
"tag": "0.1.4"
},
And version 0.1.8 does not correctly specify that it is to be build with Swift 4:
"pushed_with_swift_version": "3.0"
You can see the published pod spec for 0.1.8 here: https://github.com/CocoaPods/Specs/blob/master/Specs/1/1/5/AwesomeSpotlightView/0.1.8/AwesomeSpotlightView.podspec.json
Add support for Swift Package Manager
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.