NSAttributedString stroke iOS 18.0+ and Xcode 16.0 +

In previous versions, set strokeWidth and strokeColor , and no raised lines inside the border

but , the same code run with code 16.0+ at iOS 18.0+ iPhone , it has raised lines inside the border how to fix it .

NSAttributedString stroke iOS 18.0+ and Xcode 16.0 +
 
 
Q