Cannot convert expression type 'CGRect' to type 'NSCopying!' in quick I'm trying to embed a Keyboard notification in a swift file.
// Called when UIKeyboardDidShowNotification is dispatched.
func keyboardWasShown(aNotification :NSNotification)
{
var info = aNotification.userInfo
var kRect:CGRect = info[UIKeyboardFrameBeginUserInfoKey] as CGRect
var kbSize:CGSize = kRect.size
but not sure why i get this error?
source
share