2

I have an iOS app that uses UIKit. I have many view controllers using UITextField and all of them previously had rounded corners due to the border style: round, which is exactly what I wanted. Now, when I build the app with iOS 26 on Xcode 26.0.1, they all are showing as non-rounded rectangles when I run the app on a device with any iOS version (e.g., 26.0.1, 18.2). The text boxes still show rounded in interface builder. Is this a bug in iOS 26 SDK, or is there something new I need to do?

I created a brand new app just to see if it was an issue, and it is.

Any input would be very helpful. Thanks!

Here are some screenshots demonstrating the issue: Simulator vs Interface Builder

Here are the UITextField settings (default settings): UITextField Settings in Interface Builder

2
  • I believe the issue stems from the latest update. According to a referenced blog, iOS 26 introduced a new “concentric shapes” system for corner rounding, causing nested rectangles to automatically adjust their corner radius. Here is the link! designfornative.com/… Commented Oct 22 at 15:01
  • @mullabit Thanks for the link, I did see that too. Do you think it's just a temporary bug they will fix, or do you think I will have to change all my text fields to round the corners a different way? Commented Oct 22 at 15:26

1 Answer 1

2

This appears to be a bug in either Xcode 26 or iOS 26 when you set a text field's Border Style to Round in Interface Builder. You end up with the same border as if you had set it to Line.

There is a work around that requires a tiny bit of code. Follow these steps:

  1. Add an outlet in your view controller and connect the text field to it.

    @IBOutlet var textField: UITextField!
    
  2. In Interface Builder, set the text field's Border Style to None.

  3. Add the following line of code to your view controller's viewDidLoad:

    textField.borderStyle = .roundedRect
    

This only works if you set the text field's Border Style to None in Interface Builder. If you leave the Border Style set to Round in Interface Builder then the code has no effect changing the border style.

The other possible solution is to create the text field entirely in code and not add it in Interface Builder.

P.S. You should file a bug report with Apple using Feedback Assistant.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you! I tried your workaround, and it worked. I just filed a bug report using the Feedback Assistant, as you suggested.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.