Skip to content

Commit 8784c6f

Browse files
committed
Updated AttributeEncodable conformance
1 parent 6f00c16 commit 8784c6f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Sources/CoreModel/Encodable.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ extension UInt64: AttributeEncodable {
9999
public var attributeValue: AttributeValue { .int64(numericCast(self)) }
100100
}
101101

102+
extension Float: AttributeEncodable {
103+
104+
public var attributeValue: AttributeValue { .float(self) }
105+
}
106+
107+
extension Double: AttributeEncodable {
108+
109+
public var attributeValue: AttributeValue { .double(self) }
110+
}
111+
102112
extension String: AttributeEncodable {
103113

104114
public var attributeValue: AttributeValue { .string(self) }

0 commit comments

Comments
 (0)