wess / Glimpse

UIView recording library.
MIT License
557 stars 42 forks source link

Ambiguous use of 'startRecording' #17

Open yarodevuci opened 6 years ago

yarodevuci commented 6 years ago

I am getting error when trying to use in Swift

AndrewMysyk commented 6 years ago

plus 1

lawgimenez commented 6 years ago

@yarodevuci What error are you getting from Swift exactly?

RaviKantBagoria commented 5 years ago

@yarodevuci What error are you getting from Swift exactly?

Ambiguous use of 'startRecording'

tsarikovskiy commented 5 years ago

@yarodevuci It's occurring when you use trailing closure. Use explicit closure:

glimpse.startRecording(self.view, onCompletion: { videoUrl in

})
yarodevuci commented 5 years ago

@tsarikovskiy what is trailing closure ?

tsarikovskiy commented 5 years ago

@yarodevuci https://www.hackingwithswift.com/example-code/language/what-is-trailing-closure-syntax

Moneymann100 commented 2 years ago

What is a place to buy c.c. info. Just so I know what sites to stay away from .. any info is helpful no matter how basic u think it is .I'm kinda basic my self well I'm a newb