---
title: "withDesign(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontdescriptor/withdesign(_:)"
---

# withDesign(_:)

Returns a new font descriptor based on the current object, but with the specified design style.

## Declaration

```swift
func withDesign(_ design: NSFontDescriptor.SystemDesign) -> Self?
```

## Parameters

- `design`: The replacement design style for the font. For a list of possible values, see UIFontDescriptor.SystemDesign.

## Return Value

Return Value The new font descriptor.

## See Also

### Modifying an Existing Font Descriptor

- [addingAttributes(_:)](appkit/nsfontdescriptor/addingattributes(_:).md)
- [withFace(_:)](appkit/nsfontdescriptor/withface(_:).md)
- [withFamily(_:)](appkit/nsfontdescriptor/withfamily(_:).md)
- [withMatrix(_:)](appkit/nsfontdescriptor/withmatrix(_:).md)
- [withSize(_:)](appkit/nsfontdescriptor/withsize(_:).md)
- [withSymbolicTraits(_:)](appkit/nsfontdescriptor/withsymbolictraits(_:).md)
- [NSFontDescriptor.SystemDesign](appkit/nsfontdescriptor/systemdesign.md)
