SwiftUI React Nativev6.3.3
  • Values
  • Runtime

Getting started

  • Introduction
  • Installation
  • Quick start

Concepts

  • Reading the reference
  • Composing modifiers
  • Values
  • State and data flow

About

  • What it is
  • Why SwiftUI
  • History

Under the hood

  • How it renders
  • How it's generated
  • Principles
ValuesText and symbols

FontContext

Information used to resolve a font.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+visionOS 1.0+Font.Context in SwiftUI

Declaration#

React
type FontContext = { readonly debugDescription: string; readonly hashValue: number; };
Swift
struct Context

Properties#

  • debugDescription*string
  • hashValue*number

Overview#

  • SeeAlso: EnvironmentValues.fontResolutionContext, Font.resolve(in:)

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also#

More in Text and symbols.

  • DisabledTextSelectabilityA selectability type that disables text selection by the person using your app.
  • EnabledTextSelectabilityA selectability type that enables text selection by the person using your app.
  • FindContextThe status of the find navigator for views which support text editing.
  • FixedTextVariantThe default text variant preference that chooses the largest available variant.
  • FontAn environment-dependent font.
  • FontChainFont with chained calls: SwiftUI.Font.bold(...).
  • FontDesignA design to use for fonts.
  • FontLeadingA line spacing adjustment that you can apply to a font.
  • FontWeightA weight to use for fonts.
  • FontWidthA width to use for fonts that have multiple widths.
  • SubmitLabelA semantic label describing the label of submission within a view hierarchy.
  • SubmitTriggersA type that defines various triggers that result in the firing of a submission action.

On this page

0%
  • Declaration
  • Properties
  • Overview
  • See also
Report an issue