Hi, I’m trying to update CGRect width. So, when I do something like this:
public double updateWidth(double width) {
CGRect r = new CGRect();
r.size().setWidth(width);
return r.size().width();
}
method returns 0.
It seems like a bug.
Right now I forced to use extra setSize():
public double updateWidth(double width) {
CGSize size = rect.size();
size.setWidth(width);
rect.setSize(size);
return r.size().width();
}