vipinsaini0
vipinsaini0

Reputation: 561

How to do Outline TextField in SwiftUI? (MDCOutlinedTextField)

I need to do textfield design like this. I tried many way but not found any solutions for it. And in Google Material not yet for SwiftUI.

enter image description here

Upvotes: 0

Views: 1680

Answers (1)

Nellwex
Nellwex

Reputation: 21

You may use it with .overlay and .storke:

TextField("Enter your email", text: $text)
.overlay(
      RoundedRectangle(cornerRadius: 30)
         .stroke(Color(.blue, lineWidth: 2))

Upvotes: 2

Related Questions