---
title: "setColor(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfaceseparator/setcolor(_:)"
---

# setColor(_:)

Sets the color of the separator bar.

## Declaration

```swift
func setColor(_ color: UIColor?)
```

## Parameters

- `color`: The custom color to apply to the separator. Specifying nil removes the custom color and returns the separator to the color specified in the storyboard file. The default color is white.

## See Also

### Related Documentation

- [App Programming Guide for watchOS](apple-archive/documentation/General/Conceptual/WatchKitProgrammingGuide.md)
