lineLimit(_:reservesSpace:) | Apple Developer Documentation

Sets a limit for the number of lines text can occupy in this view.