Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result of call to 'insetBy(dx:dy:)' is unused #117

Open
zeusent opened this issue Nov 8, 2019 · 0 comments
Open

Result of call to 'insetBy(dx:dy:)' is unused #117

zeusent opened this issue Nov 8, 2019 · 0 comments

Comments

@zeusent
Copy link

zeusent commented Nov 8, 2019

Xcode is throwing a warning on this line:

expandedBounds.insetBy(dx: -expandedRadius, dy: -expandedRadius);
.
Looking at it and the line above I think they should be changed to this:

var expandedBounds = CGRect(x: targetCenterX, y: targetCenterY, width: 0, height: 0)
expandedBounds = expandedBounds.insetBy(dx: -expandedRadius, dy: -expandedRadius);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant