ECLaboratorio / BubbleShowCase-iOS

ShowCase is a framework that provides with a view that you can display to help your users understand your App features
MIT License
47 stars 19 forks source link

Getting error while setting it for UIView #7

Open ArjunBhilare opened 4 years ago

ArjunBhilare commented 4 years ago

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 commented 3 years ago

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")