BubbleShowCase-iOS icon indicating copy to clipboard operation
BubbleShowCase-iOS copied to clipboard

Getting error while setting it for UIView

Open ArjunBhilare opened this issue 5 years ago • 1 comments

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

ArjunBhilare avatar Jun 04 '20 16:06 ArjunBhilare

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

ftahery93 avatar Feb 02 '21 12:02 ftahery93