LineLimit.swift 415 B

12345678
  1. /// Configuration for text height limits, propagated via ``EnvironmentValues/lineLimitSettings``.
  2. public struct LineLimit: Sendable, Hashable {
  3. /// The maximum number of lines text may occupy.
  4. public var limit: Int
  5. /// A Boolean value indicating whether the view should reserve the full height
  6. /// required by the line limit, regardless of the content's length.
  7. public var reservesSpace: Bool
  8. }