Closed sinanku closed 8 years ago
Hello!
Quick question, when using the content view frame function in Swift
func contentViewFrameForPresentationController(presentationController: MZFormSheetPresentationController, currentFrame: CGRect) -> CGRect { currentFrame.size.height = 450 currentFrame.origin.y = 20 return currentFrame }
I am getting the following issue
Cannot assign to property: 'currentFrame' is a 'let' constant
Is there a way this can be a var instead of a let, or am I missing something?
You just need to do, var currentFrame = currentFrame, and you will be able to change it, in Swift 3 they will discard var in parameters anyway...
@m1entus got it, thanks!
Hello!
Quick question, when using the content view frame function in Swift
I am getting the following issue
Is there a way this can be a var instead of a let, or am I missing something?