I’m encountering an issue with rotating a custom Material Design TextField from landscape to portrait orientation in SwiftUI. When I rotate the device, the TextField stretches out of view instead of resizing appropriately.
Issue Details:
- I’ve implemented the TextField using a wrapper with UIViewRepresentable.
- Upon rotation, the TextField doesn’t resize properly and stretches out of view.
- I’ve tried adjusting constraints and layout settings, but haven’t found a solution yet.
Project GitHub Link:
I’ve implemented the TextField using a wrapper with UIViewRepresentable.
The issue persists across different devices and screen sizes.
I’ve researched similar problems but haven’t found a solution that works in my case.