Never_GiveUP
Never_GiveUP

Reputation: 29

Cannot assign to property 'frame' is a 'let' constant

I am stuck with this error in this line:

frame.size = unwrappedController.view.frame.size

This is my first app, please help me if possible.

Upvotes: 0

Views: 1685

Answers (1)

TylerP
TylerP

Reputation: 9829

Your frame variable is probably declared using let, which means it cannot be modified once set. Try using var instead of let.

Upvotes: 2

Related Questions