Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error while setting it for UIView #7

Open
ArjunBhilare opened this issue Jun 4, 2020 · 1 comment
Open

Getting error while setting it for UIView #7

ArjunBhilare opened this issue Jun 4, 2020 · 1 comment

Comments

@ArjunBhilare
Copy link

ArjunBhilare commented Jun 4, 2020

I'm getting the following error for this code

let showCase: BubbleShowCase! = BubbleShowCase(target: MyView)

Error: Cannot convert value of type 'UIView?' to expected argument type 'UIBarButtonItem'

How can I resolve it? Any help would be really appreciated

@ftahery93
Copy link

ftahery93 commented Feb 2, 2021

Hello @ArjunBhilare, if you have a look at the BubbleShowCase class there is no constructor with just target as UIView parameter.
So, if you want to use UIView you will have define it this way:
let showCase: BubbleShowCase! = BubbleShowCase(target: MyView, arrowDirection: .down, label: "CustomLabel")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants