TextCaseModifier.swift 235 B

12345678
  1. extension View {
  2. /// Transforms the case of ``Text`` views.
  3. ///
  4. /// - Parameter textCase: The new text case.
  5. public func textCase(_ textCase: Text.Case?) -> some View {
  6. environment(\.textCase, textCase)
  7. }
  8. }