Skip to content

Commit

Permalink
Fix bug where the attributes provider preview for UIViews showed the …
Browse files Browse the repository at this point in the history
…wrong frame.
  • Loading branch information
chrsmys committed Dec 4, 2017
1 parent 1330496 commit 6a02658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ -(instancetype)initWithPreviewTargetView:(UIView *)view

self.accessibilityTextLabel.text = view.accessibilityLabel ? view.accessibilityLabel : @"--";

self.frameLabel.text = [NSString stringWithFormat:@"X: %.1f Y: %.1f Width: %.1f Height: %.1f", self.frame.origin.x, self.frame.origin.y, self.frame.size.width, self.frame.size.height];
self.frameLabel.text = [NSString stringWithFormat:@"X: %.1f Y: %.1f Width: %.1f Height: %.1f", view.frame.origin.x, view.frame.origin.y, view.frame.size.width, view.frame.size.height];

return self;
}
Expand Down

0 comments on commit 6a02658

Please sign in to comment.