# `GSFlowSegmentedControl setWidth:forSegment:`

*Instance Method*

Fixed pixel width for the segment. Pass 0 to let the segment size itself to fit its content (the default).

## Declaration

```swift
func setWidth(_ width: CGFloat, forSegment segment: Int)
```

```objc
- (void) setWidth:(CGFloat) width forSegment:(NSInteger) segment;
```

```python
setWidth_forSegment_(width: float, segment: int)
```

