Skip to content

Commit

Permalink
fix: Trim shape individual type by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexallah committed Sep 12, 2024
1 parent fc8a44f commit 376c010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Private/Model/ShapeItems/Trim.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class Trim: ShapeItem {
end = try KeyframeGroup<LottieVector1D>(dictionary: endDictionary)
let offsetDictionary: [String: Any] = try dictionary.value(for: CodingKeys.offset)
offset = try KeyframeGroup<LottieVector1D>(dictionary: offsetDictionary)
let trimTypeRawValue: Int = try dictionary.value(for: CodingKeys.trimType)
let trimTypeRawValue: Int = try dictionary.value(for: CodingKeys.trimType) ?? TrimType.individually.rawValue
guard let trimType = TrimType(rawValue: trimTypeRawValue) else {
throw InitializableError.invalidInput()
}
Expand Down

0 comments on commit 376c010

Please sign in to comment.