How to set Lowercase for Text in SwiftUI?

SwiftUI Text – Lowercase

To set lowercase for text in Text view, call textCase() method on this Text view, with .lowercase value passed as argument.


In the following example, we have a Text view. We will set its text case to lowercase using textCase() method.


import SwiftUI

struct ContentView: View {
    var body: some View {
        Text("Hello World!")


SwiftUI Text - Lowercase


Summarising this SwiftUI Tutorial, we learned how to set lowercase for the text in Text view.