iOS frame in constructor

In the previous versions I could put the following:

var rect: = UIScreen.mainScreen.bounds;
new UIView(rect);

Now I have to put the following:

new UIView frame(rect);

This is correct?

Yes. It should have always required you to do that, now it enforces it.

Ok. Thanks Carlo.

shouldn’t this be “withRect”?

There are several ways to do it.

“withRect” is the only correct one. :wink:

Thanks, logged as bugs://76774

Ahhh. Sorry. I kneel at his feet. :wink:

bugs://76774 got closed with status fixed.

Logged as bugs://i64587.

bugs://i64587 was closed as fixed.