# `GSInstance setDefaultProperty:value:`

*Instance Method*

Sets the default property for the specified name.

## Declaration

```swift
func setDefaultProperty(_ name: GSPropertyName, value: Any)
```

```objc
- (void) setDefaultProperty:(GSPropertyName) name value:(id) value;
```

```python
setDefaultProperty_value_(name: GSPropertyName, value: object)
```

## Parameters

- `name` — The name of the property.
- `value` — The value to set.

