# `GSLayer.axisRules`

*Instance Property*

Alternative-layer axis rules keyed by axis ID.

## Declaration

```swift
var axisRules: [String : [String : NSNumber]] { get set }
```

```objc
@property (nonatomic, strong) NSDictionary<NSString *,NSDictionary<NSString *,NSNumber *> *> * axisRules;
```

```python
axisRules() -> dict[str, NSDictionary<NSString *,NSNumber *>]
setAxisRules_(axisRules: dict[str, NSDictionary<NSString *,NSNumber *>])
```

## Discussion

Each rule can contain inclusive `min` and `max` bounds in internal axis values. Returns an empty dictionary when the layer has no axis rules. Setting an empty dictionary removes the axis rules, so the layer is no longer an Alternative layer.

## See Also

### Alternative Layers

- [`GSLayer axisRuleString:rule:`](/Core/GlyphsCore/GSLayer/axisRuleString:rule:) — A display string for an axis rule.
- [`GSLayer descriptionForAttributeAxisRules`](/Core/GlyphsCore/GSLayer/descriptionForAttributeAxisRules) — A display description of the Alternative-layer axis rules.

