State enum State : Int encode(to:) Declaration Swift public func encode(to encoder: Encoder) throws View Source on GitHub