func font(Font?) -> some View
Sets the default font for text in this view.
省略時のフォントをこのビューの中のテキストに対して設定します。
Technology
SwiftUI provides built-in views that display text to the user, like Text
and Label
, or that collect text from the user, like Text
and Text
. Use text and symbol modifiers to control how SwiftUI displays and manages that text. For example, you can set a font, specify text layout parameters, and indicate what kind of input to expect.
To learn more about the kinds of views that you use to display text, see Text Input and Output.
func font(Font?) -> some View
func dynamicTypeSize (DynamicTypeSize ) -> some View
func dynamicTypeSize <T>(T) -> some View
func monospacedDigit () -> some View
func textCase (Text.Case?) -> some View
func allowsTightening (Bool) -> some View
func minimumScaleFactor (CGFloat) -> some View
func truncationMode (Text.TruncationMode ) -> some View
func flipsForRightToLeftLayoutDirection (Bool) -> some View
func lineLimit (Int?) -> some View
func lineSpacing (CGFloat) -> some View
func multilineTextAlignment (TextAlignment ) -> some View
func textSelection <S>(S) -> some View
func keyboardType (UIKeyboardType ) -> some View
func disableAutocorrection (Bool?) -> some View
func textInputAutocapitalization (TextInputAutocapitalization ?) -> some View
func textContentType (UITextContentType ?) -> some View
func textContentType (NSTextContentType ?) -> some View
func textContentType (WKTextContentType ?) -> some View
func symbolRenderingMode (SymbolRenderingMode ?) -> some View
func symbolVariant (SymbolVariants ) -> some View