Skip to content

Commit

Permalink
fix: pod lib error
Browse files Browse the repository at this point in the history
  • Loading branch information
iwill committed Jun 7, 2024
1 parent eab994f commit 4777f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ExCodable/ExCodable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ fileprivate extension KeyedDecodingContainer {
else if let double = try? decodeIfPresent(Double.self, forKey: codingKey) { return String(describing: double) as? T } // include Float
}

if #available(iOS 14.0, *) {
if #available(iOS 14.0, tvOS 14.0, *) {
if type is Float16.Type {
if let int64 = try? decodeIfPresent(Int64.self, forKey: codingKey) { return Float16(int64) as? T } // include all Int types
else if let string = try? decodeIfPresent(String.self, forKey: codingKey), let value = Float16(string) { return value as? T }
Expand Down

0 comments on commit 4777f9e

Please sign in to comment.