# `GSPathSegment setAttribute:forKey:`

*Instance Method*

## Declaration

```swift
func setAttribute(_ value: Any?, forKey key: String)
```

```objc
- (void) setAttribute:(id) value forKey:(NSString *) key;
```

```python
setAttribute_forKey_(value: object, key: str)
```

