UIEdgeInsetsInsetRect gives wrong result for non standardized rectangles

Originator:an00na
Number:rdar://44341686 Date Originated:September 11 2018, 9:21 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:12 beta 12
Classification:Serious Bug Reproducible:Always
 
Area:
Core Graphics

Summary:
The current implementation is naive, uses origin and size. This implementation gives wrong result for non standardized rectangles.

It should either use minX, minY, maxX and maxY, or call standardized first then use origin and size.

Code: https://mega.nz/#!Na4yxSDa!_c7IOaQfEsLMC1-McMAkULSywjC0K5hHtRZhsd06pso

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!