<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFontDescriptor/withDesign(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIFontDescriptor(im)fontDescriptorWithDesign:"
  },
  "title" : "withDesign(_:)"
}
-->

# withDesign(_:)

Returns a new font descriptor that’s the same as the existing descriptor, but with the specified design.

```
func withDesign(_ design: UIFontDescriptor.SystemDesign) -> UIFontDescriptor?
```

## Parameters

`design`

The new system font design.

## Return Value

The new font descriptor, if the original font descriptor is from a system UI font; otherwise, `nil`.

## Discussion

This method changes the design of an existing font descriptor that describes a system UI font — for example, a font descriptor created by methods such as [`systemFont(ofSize:)`](/documentation/UIKit/UIFont/systemFont(ofSize:)), [`preferredFont(forTextStyle:)`](/documentation/UIKit/UIFont/preferredFont(forTextStyle:)), or [`preferredFontDescriptor(withTextStyle:)`](/documentation/UIKit/UIFontDescriptor/preferredFontDescriptor(withTextStyle:)). If the original font descriptor doesn’t describe a system font, this method returns `nil`.

## See Also

[`fontDescriptorWithFontAttributes:`](/documentation/UIKit/UIFontDescriptor/fontDescriptorWithFontAttributes:)

Returns a font descriptor with a dictionary of attributes.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)