diff --git a/Wrap.swift b/Wrap.swift index aea4b90..e296bb9 100644 --- a/Wrap.swift +++ b/Wrap.swift @@ -339,6 +339,8 @@ private extension Wrapper { wrappedKey = stringKey } else if let wrappableKey = key as? WrappableKey { wrappedKey = wrappableKey.toWrappedKey() + } else if let stringConvertible = key as? CustomStringConvertible { + wrappedKey = stringConvertible.description } else { wrappedKey = nil }