# SafetyTier.init(from:)

- **Module:** SafetyTier
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Page:** https://libtmux.org/reference/swift/safetytier-init(from-)/

```
SafetyTier.init(from:)(from: any Decoder)
```

Creates a new instance by decoding from the given decoder, when the type's `RawValue` is `String`.

This initializer throws an error if reading from the decoder fails, or
if the data read is corrupted or otherwise invalid.

- Parameter decoder: The decoder to read data from.
