Adam Bell :catPOWER: on Nostr: Does anyone know what the compatibleWith: traitCollection argument does for ...
Does anyone know what the compatibleWith: traitCollection argument does for `UIFont.scaledFont`?
Docs are pretty scarce: "The returned font is appropriate for use in an interface that adopts the specified traits."
Are you supposed to supply the view's current trait collection? Or a trait collection containing `.large` as the preferredContentSizeCategory since that's what the supplied font should be scaled relative to? What's nil do?
Docs are pretty scarce: "The returned font is appropriate for use in an interface that adopts the specified traits."
Are you supposed to supply the view's current trait collection? Or a trait collection containing `.large` as the preferredContentSizeCategory since that's what the supplied font should be scaled relative to? What's nil do?