diff --git a/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift b/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift index f6adfdd7cb..92b5e4a18b 100644 --- a/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift +++ b/Sources/Private/CoreAnimation/Animations/StrokeAnimation.swift @@ -1,7 +1,6 @@ // Created by Cal Stephens on 2/10/22. // Copyright © 2022 Airbnb Inc. All rights reserved. -import Foundation import QuartzCore // MARK: - StrokeShapeItem diff --git a/Sources/Private/CoreAnimation/CoreAnimationLayer.swift b/Sources/Private/CoreAnimation/CoreAnimationLayer.swift index d5745a8449..4492a8694e 100644 --- a/Sources/Private/CoreAnimation/CoreAnimationLayer.swift +++ b/Sources/Private/CoreAnimation/CoreAnimationLayer.swift @@ -1,7 +1,6 @@ // Created by Cal Stephens on 12/13/21. // Copyright © 2021 Airbnb Inc. All rights reserved. -import Foundation import QuartzCore // MARK: - CoreAnimationLayer diff --git a/Sources/Private/CoreAnimation/Layers/LayerModel+makeAnimationLayer.swift b/Sources/Private/CoreAnimation/Layers/LayerModel+makeAnimationLayer.swift index 0af3da9068..459469141e 100644 --- a/Sources/Private/CoreAnimation/Layers/LayerModel+makeAnimationLayer.swift +++ b/Sources/Private/CoreAnimation/Layers/LayerModel+makeAnimationLayer.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 12/20/21. // Copyright © 2021 Airbnb Inc. All rights reserved. -import QuartzCore - // MARK: - LayerContext /// Context available when constructing an `AnimationLayer` diff --git a/Sources/Private/MainThread/LayerContainers/CompLayers/CompositionLayer.swift b/Sources/Private/MainThread/LayerContainers/CompLayers/CompositionLayer.swift index 455d236688..bf3eae3873 100644 --- a/Sources/Private/MainThread/LayerContainers/CompLayers/CompositionLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/CompLayers/CompositionLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/22/19. // -import Foundation import QuartzCore // MARK: - CompositionLayer diff --git a/Sources/Private/MainThread/LayerContainers/CompLayers/ImageCompositionLayer.swift b/Sources/Private/MainThread/LayerContainers/CompLayers/ImageCompositionLayer.swift index 13d6617834..1d8a001f91 100644 --- a/Sources/Private/MainThread/LayerContainers/CompLayers/ImageCompositionLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/CompLayers/ImageCompositionLayer.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import CoreGraphics -import Foundation import QuartzCore final class ImageCompositionLayer: CompositionLayer { diff --git a/Sources/Private/MainThread/LayerContainers/CompLayers/MaskContainerLayer.swift b/Sources/Private/MainThread/LayerContainers/CompLayers/MaskContainerLayer.swift index a0af0fd507..e548e9fd49 100644 --- a/Sources/Private/MainThread/LayerContainers/CompLayers/MaskContainerLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/CompLayers/MaskContainerLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import Foundation import QuartzCore extension MaskMode { diff --git a/Sources/Private/MainThread/LayerContainers/CompLayers/PreCompositionLayer.swift b/Sources/Private/MainThread/LayerContainers/CompLayers/PreCompositionLayer.swift index 38de1fab5e..b9051463e3 100644 --- a/Sources/Private/MainThread/LayerContainers/CompLayers/PreCompositionLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/CompLayers/PreCompositionLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import Foundation import QuartzCore final class PreCompositionLayer: CompositionLayer { diff --git a/Sources/Private/MainThread/LayerContainers/CompLayers/SolidCompositionLayer.swift b/Sources/Private/MainThread/LayerContainers/CompLayers/SolidCompositionLayer.swift index 34814ef104..928283cbb6 100644 --- a/Sources/Private/MainThread/LayerContainers/CompLayers/SolidCompositionLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/CompLayers/SolidCompositionLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import Foundation import QuartzCore final class SolidCompositionLayer: CompositionLayer { diff --git a/Sources/Private/MainThread/LayerContainers/CompLayers/TextCompositionLayer.swift b/Sources/Private/MainThread/LayerContainers/CompLayers/TextCompositionLayer.swift index 9f82f59c54..bb5edec1be 100644 --- a/Sources/Private/MainThread/LayerContainers/CompLayers/TextCompositionLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/CompLayers/TextCompositionLayer.swift @@ -5,11 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import CoreGraphics -import CoreText -import Foundation -import QuartzCore - /// Needed for NSMutableParagraphStyle... #if os(OSX) import AppKit diff --git a/Sources/Private/MainThread/LayerContainers/MainThreadAnimationLayer.swift b/Sources/Private/MainThread/LayerContainers/MainThreadAnimationLayer.swift index cb9ced70c3..c62b53c4b9 100644 --- a/Sources/Private/MainThread/LayerContainers/MainThreadAnimationLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/MainThreadAnimationLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/24/19. // -import Foundation import QuartzCore // MARK: - MainThreadAnimationLayer diff --git a/Sources/Private/MainThread/LayerContainers/Utility/CachedImageProvider.swift b/Sources/Private/MainThread/LayerContainers/Utility/CachedImageProvider.swift index 1f2cfa8651..068f3aa795 100644 --- a/Sources/Private/MainThread/LayerContainers/Utility/CachedImageProvider.swift +++ b/Sources/Private/MainThread/LayerContainers/Utility/CachedImageProvider.swift @@ -1,8 +1,6 @@ // Created by Jianjun Wu on 2022/5/12. // Copyright © 2022 Airbnb Inc. All rights reserved. -import CoreGraphics -import Foundation import QuartzCore // MARK: - CachedImageProvider diff --git a/Sources/Private/MainThread/LayerContainers/Utility/InvertedMatteLayer.swift b/Sources/Private/MainThread/LayerContainers/Utility/InvertedMatteLayer.swift index 6d7435a20a..8c726d1c54 100644 --- a/Sources/Private/MainThread/LayerContainers/Utility/InvertedMatteLayer.swift +++ b/Sources/Private/MainThread/LayerContainers/Utility/InvertedMatteLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/28/19. // -import Foundation import QuartzCore /// A layer that inverses the alpha output of its input layer. diff --git a/Sources/Private/MainThread/LayerContainers/Utility/LayerFontProvider.swift b/Sources/Private/MainThread/LayerContainers/Utility/LayerFontProvider.swift index 8bc7e2dacd..e054ce254f 100644 --- a/Sources/Private/MainThread/LayerContainers/Utility/LayerFontProvider.swift +++ b/Sources/Private/MainThread/LayerContainers/Utility/LayerFontProvider.swift @@ -6,8 +6,6 @@ // Copyright © 2020 YurtvilleProds. All rights reserved. // -import Foundation - /// Connects a LottieFontProvider to a group of text layers final class LayerFontProvider { diff --git a/Sources/Private/MainThread/LayerContainers/Utility/LayerImageProvider.swift b/Sources/Private/MainThread/LayerContainers/Utility/LayerImageProvider.swift index 4396665f49..b3a9215b4a 100644 --- a/Sources/Private/MainThread/LayerContainers/Utility/LayerImageProvider.swift +++ b/Sources/Private/MainThread/LayerContainers/Utility/LayerImageProvider.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import Foundation - /// Connects a LottieImageProvider to a group of image layers final class LayerImageProvider { diff --git a/Sources/Private/MainThread/LayerContainers/Utility/LayerTextProvider.swift b/Sources/Private/MainThread/LayerContainers/Utility/LayerTextProvider.swift index 021f56182c..365ab26ab1 100644 --- a/Sources/Private/MainThread/LayerContainers/Utility/LayerTextProvider.swift +++ b/Sources/Private/MainThread/LayerContainers/Utility/LayerTextProvider.swift @@ -5,8 +5,6 @@ // Created by Alexandr Goncharov on 07/06/2019. // -import Foundation - /// Connects a LottieTextProvider to a group of text layers final class LayerTextProvider { diff --git a/Sources/Private/MainThread/LayerContainers/Utility/LayerTransformNode.swift b/Sources/Private/MainThread/LayerContainers/Utility/LayerTransformNode.swift index 83c535f24d..7ef739afe8 100644 --- a/Sources/Private/MainThread/LayerContainers/Utility/LayerTransformNode.swift +++ b/Sources/Private/MainThread/LayerContainers/Utility/LayerTransformNode.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import CoreGraphics -import Foundation import QuartzCore // MARK: - LayerTransformProperties diff --git a/Sources/Private/MainThread/NodeRenderSystem/Extensions/ItemsExtension.swift b/Sources/Private/MainThread/NodeRenderSystem/Extensions/ItemsExtension.swift index 5dc8fc4e70..14582acd45 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Extensions/ItemsExtension.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Extensions/ItemsExtension.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/18/19. // -import Foundation - // MARK: - NodeTree final class NodeTree { diff --git a/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/KeypathSearchable.swift b/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/KeypathSearchable.swift index b46f524f81..c91c99aa5b 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/KeypathSearchable.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/KeypathSearchable.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation import QuartzCore /// Protocol that provides keypath search functionality. Returns all node properties associated with a keypath. diff --git a/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/NodePropertyMap.swift b/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/NodePropertyMap.swift index 9be2d1e9c4..c3813d7b42 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/NodePropertyMap.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/NodePropertyMap.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/21/19. // -import Foundation import QuartzCore // MARK: - NodePropertyMap diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/GroupOutputNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/GroupOutputNode.swift index 0e782d423f..fd571443a1 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/GroupOutputNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/GroupOutputNode.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import CoreGraphics -import Foundation import QuartzCore class GroupOutputNode: NodeOutput { diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PassThroughOutputNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PassThroughOutputNode.swift index 6518d9c32a..07ea6c24b9 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PassThroughOutputNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PassThroughOutputNode.swift @@ -6,7 +6,6 @@ // import CoreGraphics -import Foundation class PassThroughOutputNode: NodeOutput { diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PathOutputNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PathOutputNode.swift index 74d153f4af..b5c600c205 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PathOutputNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PathOutputNode.swift @@ -6,7 +6,6 @@ // import CoreGraphics -import Foundation /// A node that has an output of a BezierPath class PathOutputNode: NodeOutput { diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/FillRenderer.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/FillRenderer.swift index 1631ea9dd0..44218df650 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/FillRenderer.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/FillRenderer.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import CoreGraphics -import Foundation import QuartzCore extension FillRule { diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientFillRenderer.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientFillRenderer.swift index e4bbe024a1..d011ad61d3 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientFillRenderer.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientFillRenderer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import Foundation import QuartzCore // MARK: - GradientFillLayer diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientStrokeRenderer.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientStrokeRenderer.swift index 7ac8267fac..531b2559d2 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientStrokeRenderer.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientStrokeRenderer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import Foundation import QuartzCore // MARK: - Renderer diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/LegacyGradientFillRenderer.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/LegacyGradientFillRenderer.swift index b5f7575760..953548bd54 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/LegacyGradientFillRenderer.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/LegacyGradientFillRenderer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import Foundation import QuartzCore /// A rendered for a Path Fill diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/StrokeRenderer.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/StrokeRenderer.swift index 39c0668136..d1171f2cbe 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/StrokeRenderer.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/StrokeRenderer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import Foundation import QuartzCore extension LineJoin { diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift index 9603e85ae5..4ac2286f33 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/18/19. // -import CoreGraphics -import Foundation import QuartzCore // MARK: - GroupNodeProperties diff --git a/Sources/Private/MainThread/NodeRenderSystem/Nodes/Text/TextAnimatorNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Nodes/Text/TextAnimatorNode.swift index 4d2af08f2e..cb4b04068e 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Nodes/Text/TextAnimatorNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Nodes/Text/TextAnimatorNode.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/19/19. // -import CoreGraphics -import Foundation import QuartzCore // MARK: - TextAnimatorNodeProperties diff --git a/Sources/Private/MainThread/NodeRenderSystem/Protocols/AnimatorNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Protocols/AnimatorNode.swift index 1327618f61..82bc247b39 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Protocols/AnimatorNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Protocols/AnimatorNode.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/15/19. // -import Foundation import QuartzCore // MARK: - NodeOutput diff --git a/Sources/Private/MainThread/NodeRenderSystem/Protocols/PathNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Protocols/PathNode.swift index 7eaa6cf45b..defae81534 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Protocols/PathNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Protocols/PathNode.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/17/19. // -import Foundation - // MARK: - PathNode protocol PathNode { diff --git a/Sources/Private/MainThread/NodeRenderSystem/Protocols/RenderNode.swift b/Sources/Private/MainThread/NodeRenderSystem/Protocols/RenderNode.swift index 9b4cfbf225..959d47e00f 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/Protocols/RenderNode.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/Protocols/RenderNode.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/17/19. // -import CoreGraphics -import Foundation import QuartzCore // MARK: - RenderNode diff --git a/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeContainerLayer.swift b/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeContainerLayer.swift index 7879f1e1a3..fbe177762c 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeContainerLayer.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeContainerLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import Foundation import QuartzCore /// The base layer that holds Shapes and Shape Renderers diff --git a/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeRenderLayer.swift b/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeRenderLayer.swift index bba42e5aa7..bd2eac2c5f 100644 --- a/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeRenderLayer.swift +++ b/Sources/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeRenderLayer.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/18/19. // -import Foundation import QuartzCore /// The layer responsible for rendering shape objects diff --git a/Sources/Private/Model/Assets/Asset.swift b/Sources/Private/Model/Assets/Asset.swift index 9fcfcb6a41..f3c3962589 100644 --- a/Sources/Private/Model/Assets/Asset.swift +++ b/Sources/Private/Model/Assets/Asset.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - // MARK: - Asset public class Asset: Codable, DictionaryInitializable { diff --git a/Sources/Private/Model/Assets/AssetLibrary.swift b/Sources/Private/Model/Assets/AssetLibrary.swift index 98826ba1e0..3a0af94bf6 100644 --- a/Sources/Private/Model/Assets/AssetLibrary.swift +++ b/Sources/Private/Model/Assets/AssetLibrary.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - final class AssetLibrary: Codable, AnyInitializable, Sendable { // MARK: Lifecycle diff --git a/Sources/Private/Model/Assets/PrecompAsset.swift b/Sources/Private/Model/Assets/PrecompAsset.swift index e26ee7af54..dfd955e376 100644 --- a/Sources/Private/Model/Assets/PrecompAsset.swift +++ b/Sources/Private/Model/Assets/PrecompAsset.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - final class PrecompAsset: Asset { // MARK: Lifecycle diff --git a/Sources/Private/Model/DictionaryInitializable.swift b/Sources/Private/Model/DictionaryInitializable.swift index b53443a0d8..7e6afc87e8 100644 --- a/Sources/Private/Model/DictionaryInitializable.swift +++ b/Sources/Private/Model/DictionaryInitializable.swift @@ -5,8 +5,6 @@ // Created by Marcelo Fabri on 5/5/22. // -import Foundation - // MARK: - InitializableError enum InitializableError: Error { diff --git a/Sources/Private/Model/DotLottie/DotLottieImageProvider.swift b/Sources/Private/Model/DotLottie/DotLottieImageProvider.swift index 78b7d17148..783adc408e 100644 --- a/Sources/Private/Model/DotLottie/DotLottieImageProvider.swift +++ b/Sources/Private/Model/DotLottie/DotLottieImageProvider.swift @@ -5,7 +5,6 @@ // Created by Evandro Hoffmann on 20/10/22. // -import Foundation #if canImport(UIKit) import UIKit #elseif canImport(AppKit) diff --git a/Sources/Private/Model/Extensions/KeyedDecodingContainerExtensions.swift b/Sources/Private/Model/Extensions/KeyedDecodingContainerExtensions.swift index 4d9761adc7..01e9d80cb1 100644 --- a/Sources/Private/Model/Extensions/KeyedDecodingContainerExtensions.swift +++ b/Sources/Private/Model/Extensions/KeyedDecodingContainerExtensions.swift @@ -1,7 +1,5 @@ // From: https://medium.com/@kewindannerfjordremeczki/swift-4-0-decodable-heterogeneous-collections-ecc0e6b468cf -import Foundation - // MARK: - ClassFamily /// To support a new class family, create an enum that conforms to this protocol and contains the different types. diff --git a/Sources/Private/Model/Keyframes/KeyframeData.swift b/Sources/Private/Model/Keyframes/KeyframeData.swift index 0bc767c525..39151608a3 100644 --- a/Sources/Private/Model/Keyframes/KeyframeData.swift +++ b/Sources/Private/Model/Keyframes/KeyframeData.swift @@ -5,9 +5,6 @@ // Created by Brandon Withrow on 1/7/19. // -import CoreGraphics -import Foundation - // MARK: - KeyframeData /// A generic class used to parse and remap keyframe json. diff --git a/Sources/Private/Model/Keyframes/KeyframeGroup.swift b/Sources/Private/Model/Keyframes/KeyframeGroup.swift index 4998556753..df89bc8a1c 100644 --- a/Sources/Private/Model/Keyframes/KeyframeGroup.swift +++ b/Sources/Private/Model/Keyframes/KeyframeGroup.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/14/19. // -import Foundation - // MARK: - KeyframeGroup /// Used for coding/decoding a group of Keyframes by type. diff --git a/Sources/Private/Model/LayerEffects/DropShadowEffect.swift b/Sources/Private/Model/LayerEffects/DropShadowEffect.swift index e4fa1504af..655c7f1d49 100644 --- a/Sources/Private/Model/LayerEffects/DropShadowEffect.swift +++ b/Sources/Private/Model/LayerEffects/DropShadowEffect.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - final class DropShadowEffect: LayerEffect { // MARK: Lifecycle diff --git a/Sources/Private/Model/LayerEffects/EffectValues/ColorEffectValue.swift b/Sources/Private/Model/LayerEffects/EffectValues/ColorEffectValue.swift index a20844cf21..125c65d2c7 100644 --- a/Sources/Private/Model/LayerEffects/EffectValues/ColorEffectValue.swift +++ b/Sources/Private/Model/LayerEffects/EffectValues/ColorEffectValue.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - final class ColorEffectValue: EffectValue { // MARK: Lifecycle diff --git a/Sources/Private/Model/LayerEffects/EffectValues/EffectValue.swift b/Sources/Private/Model/LayerEffects/EffectValues/EffectValue.swift index b5951b2d59..de4c9db39a 100644 --- a/Sources/Private/Model/LayerEffects/EffectValues/EffectValue.swift +++ b/Sources/Private/Model/LayerEffects/EffectValues/EffectValue.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 8/15/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - // MARK: - EffectValueType /// https://lottiefiles.github.io/lottie-docs/schema/#/$defs/effect-values diff --git a/Sources/Private/Model/LayerEffects/EffectValues/Vector1DEffectValue.swift b/Sources/Private/Model/LayerEffects/EffectValues/Vector1DEffectValue.swift index 28d0694601..59555a495e 100644 --- a/Sources/Private/Model/LayerEffects/EffectValues/Vector1DEffectValue.swift +++ b/Sources/Private/Model/LayerEffects/EffectValues/Vector1DEffectValue.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - final class Vector1DEffectValue: EffectValue { // MARK: Lifecycle diff --git a/Sources/Private/Model/LayerEffects/LayerEffect.swift b/Sources/Private/Model/LayerEffects/LayerEffect.swift index 357c23665f..1e3cb89fd8 100644 --- a/Sources/Private/Model/LayerEffects/LayerEffect.swift +++ b/Sources/Private/Model/LayerEffects/LayerEffect.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - // MARK: - LayerEffectType /// https://lottiefiles.github.io/lottie-docs/schema/#/$defs/effects diff --git a/Sources/Private/Model/LayerStyles/DropShadowStyle.swift b/Sources/Private/Model/LayerStyles/DropShadowStyle.swift index 4ffa537557..1f2d14a904 100644 --- a/Sources/Private/Model/LayerStyles/DropShadowStyle.swift +++ b/Sources/Private/Model/LayerStyles/DropShadowStyle.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - final class DropShadowStyle: LayerStyle { // MARK: Lifecycle diff --git a/Sources/Private/Model/LayerStyles/LayerStyle.swift b/Sources/Private/Model/LayerStyles/LayerStyle.swift index 8763b6ca79..ed55b316e8 100644 --- a/Sources/Private/Model/LayerStyles/LayerStyle.swift +++ b/Sources/Private/Model/LayerStyles/LayerStyle.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - // MARK: - LayerStyleType enum LayerStyleType: Int, Codable, Sendable { diff --git a/Sources/Private/Model/Layers/ImageLayerModel.swift b/Sources/Private/Model/Layers/ImageLayerModel.swift index 91ea324799..781e5c1f01 100644 --- a/Sources/Private/Model/Layers/ImageLayerModel.swift +++ b/Sources/Private/Model/Layers/ImageLayerModel.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - /// A layer that holds an image. final class ImageLayerModel: LayerModel { diff --git a/Sources/Private/Model/Layers/LayerModel.swift b/Sources/Private/Model/Layers/LayerModel.swift index 04fc527aa9..48978b176d 100644 --- a/Sources/Private/Model/Layers/LayerModel.swift +++ b/Sources/Private/Model/Layers/LayerModel.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/7/19. // -import Foundation - // MARK: - LayerType + ClassFamily /// Used for mapping a heterogeneous list to classes for parsing. diff --git a/Sources/Private/Model/Layers/PreCompLayerModel.swift b/Sources/Private/Model/Layers/PreCompLayerModel.swift index e1cb11c64f..a83214d75d 100644 --- a/Sources/Private/Model/Layers/PreCompLayerModel.swift +++ b/Sources/Private/Model/Layers/PreCompLayerModel.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - /// A layer that holds another animation composition. final class PreCompLayerModel: LayerModel { diff --git a/Sources/Private/Model/Layers/ShapeLayerModel.swift b/Sources/Private/Model/Layers/ShapeLayerModel.swift index b9562ad420..805da83a95 100644 --- a/Sources/Private/Model/Layers/ShapeLayerModel.swift +++ b/Sources/Private/Model/Layers/ShapeLayerModel.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - /// A layer that holds vector shape objects. final class ShapeLayerModel: LayerModel { diff --git a/Sources/Private/Model/Layers/SolidLayerModel.swift b/Sources/Private/Model/Layers/SolidLayerModel.swift index 9ad232a238..17312c90e1 100644 --- a/Sources/Private/Model/Layers/SolidLayerModel.swift +++ b/Sources/Private/Model/Layers/SolidLayerModel.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - /// A layer that holds a solid color. final class SolidLayerModel: LayerModel { diff --git a/Sources/Private/Model/Layers/TextLayerModel.swift b/Sources/Private/Model/Layers/TextLayerModel.swift index 0dc6f0e09f..604a331f51 100644 --- a/Sources/Private/Model/Layers/TextLayerModel.swift +++ b/Sources/Private/Model/Layers/TextLayerModel.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - /// A layer that holds text. final class TextLayerModel: LayerModel { diff --git a/Sources/Private/Model/Objects/DashPattern.swift b/Sources/Private/Model/Objects/DashPattern.swift index 2a70d0bc53..2e3d2af223 100644 --- a/Sources/Private/Model/Objects/DashPattern.swift +++ b/Sources/Private/Model/Objects/DashPattern.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/22/19. // -import Foundation - // MARK: - DashElementType enum DashElementType: String, Codable { diff --git a/Sources/Private/Model/Objects/Marker.swift b/Sources/Private/Model/Objects/Marker.swift index f689f9e58c..a724452695 100644 --- a/Sources/Private/Model/Objects/Marker.swift +++ b/Sources/Private/Model/Objects/Marker.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - /// A time marker final class Marker: Codable, Sendable, DictionaryInitializable { diff --git a/Sources/Private/Model/Objects/Mask.swift b/Sources/Private/Model/Objects/Mask.swift index 10762d5437..a3fa34b990 100644 --- a/Sources/Private/Model/Objects/Mask.swift +++ b/Sources/Private/Model/Objects/Mask.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - MaskMode enum MaskMode: String, Codable { diff --git a/Sources/Private/Model/Objects/Transform.swift b/Sources/Private/Model/Objects/Transform.swift index 7b509e95e8..de94ca6a97 100644 --- a/Sources/Private/Model/Objects/Transform.swift +++ b/Sources/Private/Model/Objects/Transform.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/7/19. // -import Foundation - /// The animatable transform for a layer. Controls position, rotation, scale, and opacity. final class Transform: Codable, DictionaryInitializable { diff --git a/Sources/Private/Model/ShapeItems/Ellipse.swift b/Sources/Private/Model/ShapeItems/Ellipse.swift index df8528605b..42f4bc10d8 100644 --- a/Sources/Private/Model/ShapeItems/Ellipse.swift +++ b/Sources/Private/Model/ShapeItems/Ellipse.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - PathDirection enum PathDirection: Int, Codable { diff --git a/Sources/Private/Model/ShapeItems/Fill.swift b/Sources/Private/Model/ShapeItems/Fill.swift index f22dcfdfb4..f0090ae1ad 100644 --- a/Sources/Private/Model/ShapeItems/Fill.swift +++ b/Sources/Private/Model/ShapeItems/Fill.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - FillRule enum FillRule: Int, Codable { diff --git a/Sources/Private/Model/ShapeItems/GradientFill.swift b/Sources/Private/Model/ShapeItems/GradientFill.swift index afc3d8865b..05a8485cfe 100644 --- a/Sources/Private/Model/ShapeItems/GradientFill.swift +++ b/Sources/Private/Model/ShapeItems/GradientFill.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - GradientType enum GradientType: Int, Codable, Sendable { diff --git a/Sources/Private/Model/ShapeItems/GradientStroke.swift b/Sources/Private/Model/ShapeItems/GradientStroke.swift index 0a1fedeb1e..ba5db4c2ea 100644 --- a/Sources/Private/Model/ShapeItems/GradientStroke.swift +++ b/Sources/Private/Model/ShapeItems/GradientStroke.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - LineCap enum LineCap: Int, Codable, Sendable { diff --git a/Sources/Private/Model/ShapeItems/Group.swift b/Sources/Private/Model/ShapeItems/Group.swift index e95210906e..84a48dde4d 100644 --- a/Sources/Private/Model/ShapeItems/Group.swift +++ b/Sources/Private/Model/ShapeItems/Group.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - /// An item that define a a group of shape items final class Group: ShapeItem { diff --git a/Sources/Private/Model/ShapeItems/Merge.swift b/Sources/Private/Model/ShapeItems/Merge.swift index 2c4e9a61b5..1707137cd8 100644 --- a/Sources/Private/Model/ShapeItems/Merge.swift +++ b/Sources/Private/Model/ShapeItems/Merge.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - MergeMode enum MergeMode: Int, Codable, Sendable { diff --git a/Sources/Private/Model/ShapeItems/Rectangle.swift b/Sources/Private/Model/ShapeItems/Rectangle.swift index e268334a73..339c1d7521 100644 --- a/Sources/Private/Model/ShapeItems/Rectangle.swift +++ b/Sources/Private/Model/ShapeItems/Rectangle.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - final class Rectangle: ShapeItem { // MARK: Lifecycle diff --git a/Sources/Private/Model/ShapeItems/Repeater.swift b/Sources/Private/Model/ShapeItems/Repeater.swift index 0980ebdd57..7062bdd53b 100644 --- a/Sources/Private/Model/ShapeItems/Repeater.swift +++ b/Sources/Private/Model/ShapeItems/Repeater.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - final class Repeater: ShapeItem { // MARK: Lifecycle diff --git a/Sources/Private/Model/ShapeItems/RoundedCorners.swift b/Sources/Private/Model/ShapeItems/RoundedCorners.swift index e2c1b68eb4..6cc1aa8559 100644 --- a/Sources/Private/Model/ShapeItems/RoundedCorners.swift +++ b/Sources/Private/Model/ShapeItems/RoundedCorners.swift @@ -5,8 +5,6 @@ // Created by Duolingo on 10/31/22. // -import Foundation - // MARK: - RoundedCorners final class RoundedCorners: ShapeItem { diff --git a/Sources/Private/Model/ShapeItems/Shape.swift b/Sources/Private/Model/ShapeItems/Shape.swift index c1eeb66e68..eb5158bf11 100644 --- a/Sources/Private/Model/ShapeItems/Shape.swift +++ b/Sources/Private/Model/ShapeItems/Shape.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - /// An item that defines an custom shape final class Shape: ShapeItem { diff --git a/Sources/Private/Model/ShapeItems/ShapeItem.swift b/Sources/Private/Model/ShapeItems/ShapeItem.swift index 73f62789d6..3e0fe551c6 100644 --- a/Sources/Private/Model/ShapeItems/ShapeItem.swift +++ b/Sources/Private/Model/ShapeItems/ShapeItem.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - ShapeType enum ShapeType: String, Codable, Sendable { diff --git a/Sources/Private/Model/ShapeItems/ShapeTransform.swift b/Sources/Private/Model/ShapeItems/ShapeTransform.swift index 797b761537..26c13db45d 100644 --- a/Sources/Private/Model/ShapeItems/ShapeTransform.swift +++ b/Sources/Private/Model/ShapeItems/ShapeTransform.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - final class ShapeTransform: ShapeItem { // MARK: Lifecycle diff --git a/Sources/Private/Model/ShapeItems/Star.swift b/Sources/Private/Model/ShapeItems/Star.swift index 31a7dce147..cbf96d603d 100644 --- a/Sources/Private/Model/ShapeItems/Star.swift +++ b/Sources/Private/Model/ShapeItems/Star.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - StarType enum StarType: Int, Codable, Sendable { diff --git a/Sources/Private/Model/ShapeItems/Stroke.swift b/Sources/Private/Model/ShapeItems/Stroke.swift index 87a1728e68..c9f5e8b1cc 100644 --- a/Sources/Private/Model/ShapeItems/Stroke.swift +++ b/Sources/Private/Model/ShapeItems/Stroke.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - final class Stroke: ShapeItem { // MARK: Lifecycle diff --git a/Sources/Private/Model/ShapeItems/Trim.swift b/Sources/Private/Model/ShapeItems/Trim.swift index aaa6ce4f4e..444c28d32c 100644 --- a/Sources/Private/Model/ShapeItems/Trim.swift +++ b/Sources/Private/Model/ShapeItems/Trim.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/8/19. // -import Foundation - // MARK: - TrimType enum TrimType: Int, Codable { diff --git a/Sources/Private/Model/Text/Font.swift b/Sources/Private/Model/Text/Font.swift index 5e60c7d06d..0a1187f5bd 100644 --- a/Sources/Private/Model/Text/Font.swift +++ b/Sources/Private/Model/Text/Font.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - // MARK: - Font final class Font: Codable, Sendable, DictionaryInitializable { diff --git a/Sources/Private/Model/Text/Glyph.swift b/Sources/Private/Model/Text/Glyph.swift index b11a0148ec..7c68c0701e 100644 --- a/Sources/Private/Model/Text/Glyph.swift +++ b/Sources/Private/Model/Text/Glyph.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - /// A model that holds a vector character final class Glyph: Codable, Sendable, DictionaryInitializable { diff --git a/Sources/Private/Model/Text/TextAnimator.swift b/Sources/Private/Model/Text/TextAnimator.swift index dc60b92153..9e16ffe05a 100644 --- a/Sources/Private/Model/Text/TextAnimator.swift +++ b/Sources/Private/Model/Text/TextAnimator.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - final class TextAnimator: Codable, DictionaryInitializable { // MARK: Lifecycle diff --git a/Sources/Private/Model/Text/TextDocument.swift b/Sources/Private/Model/Text/TextDocument.swift index 9682ae24fa..9214d645e5 100644 --- a/Sources/Private/Model/Text/TextDocument.swift +++ b/Sources/Private/Model/Text/TextDocument.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/9/19. // -import Foundation - // MARK: - TextJustification enum TextJustification: Int, Codable { diff --git a/Sources/Private/Utility/Debugging/AnimatorNodeDebugging.swift b/Sources/Private/Utility/Debugging/AnimatorNodeDebugging.swift index 63dd31826d..79b7f5c04f 100644 --- a/Sources/Private/Utility/Debugging/AnimatorNodeDebugging.swift +++ b/Sources/Private/Utility/Debugging/AnimatorNodeDebugging.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/18/19. // -import Foundation - extension AnimatorNode { func printNodeTree() { diff --git a/Sources/Private/Utility/Debugging/LayerDebugging.swift b/Sources/Private/Utility/Debugging/LayerDebugging.swift index 8555fe3c6c..2e29b5706a 100644 --- a/Sources/Private/Utility/Debugging/LayerDebugging.swift +++ b/Sources/Private/Utility/Debugging/LayerDebugging.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/24/19. // -import Foundation import QuartzCore // MARK: - LayerDebugStyle diff --git a/Sources/Private/Utility/Extensions/AnimationKeypathExtension.swift b/Sources/Private/Utility/Extensions/AnimationKeypathExtension.swift index 14d267a12d..eda74d1406 100644 --- a/Sources/Private/Utility/Extensions/AnimationKeypathExtension.swift +++ b/Sources/Private/Utility/Extensions/AnimationKeypathExtension.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation import QuartzCore extension KeypathSearchable { diff --git a/Sources/Private/Utility/Extensions/DataExtension.swift b/Sources/Private/Utility/Extensions/DataExtension.swift index 2aa6d320e4..19b7d524d2 100644 --- a/Sources/Private/Utility/Extensions/DataExtension.swift +++ b/Sources/Private/Utility/Extensions/DataExtension.swift @@ -5,7 +5,6 @@ // Created by René Fouquet on 03.05.21. // -import Foundation #if canImport(UIKit) import UIKit #elseif canImport(AppKit) diff --git a/Sources/Private/Utility/Helpers/AnimationContext.swift b/Sources/Private/Utility/Helpers/AnimationContext.swift index 4ef83e09fa..5a54b80c80 100644 --- a/Sources/Private/Utility/Helpers/AnimationContext.swift +++ b/Sources/Private/Utility/Helpers/AnimationContext.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 2/1/19. // -import CoreGraphics import Foundation import QuartzCore diff --git a/Sources/Private/Utility/Helpers/AnyEquatable.swift b/Sources/Private/Utility/Helpers/AnyEquatable.swift index 40e01c059f..e695eb8cee 100644 --- a/Sources/Private/Utility/Helpers/AnyEquatable.swift +++ b/Sources/Private/Utility/Helpers/AnyEquatable.swift @@ -1,8 +1,6 @@ // Created by miguel_jimenez on 8/2/23. // Copyright © 2023 Airbnb Inc. All rights reserved. -import Foundation - // MARK: - AnyEquatable struct AnyEquatable { diff --git a/Sources/Private/Utility/Primitives/BezierPath.swift b/Sources/Private/Utility/Primitives/BezierPath.swift index 5789211901..523402afec 100644 --- a/Sources/Private/Utility/Primitives/BezierPath.swift +++ b/Sources/Private/Utility/Primitives/BezierPath.swift @@ -6,7 +6,6 @@ // import CoreGraphics -import Foundation // MARK: - BezierPath diff --git a/Sources/Private/Utility/Primitives/ColorExtension.swift b/Sources/Private/Utility/Primitives/ColorExtension.swift index 936fb2b2b6..86a55d4daf 100644 --- a/Sources/Private/Utility/Primitives/ColorExtension.swift +++ b/Sources/Private/Utility/Primitives/ColorExtension.swift @@ -6,7 +6,6 @@ // import CoreGraphics -import Foundation // MARK: - LottieColor + Codable diff --git a/Sources/Public/Animation/LottieAnimation.swift b/Sources/Public/Animation/LottieAnimation.swift index bca001c912..3af4844ed8 100644 --- a/Sources/Public/Animation/LottieAnimation.swift +++ b/Sources/Public/Animation/LottieAnimation.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/7/19. // -import Foundation - // MARK: - CoordinateSpace public enum CoordinateSpace: Int, Codable, Sendable { diff --git a/Sources/Public/Animation/LottieAnimationLayer.swift b/Sources/Public/Animation/LottieAnimationLayer.swift index fd9958362e..9f27810523 100644 --- a/Sources/Public/Animation/LottieAnimationLayer.swift +++ b/Sources/Public/Animation/LottieAnimationLayer.swift @@ -3,7 +3,6 @@ // Lottie // -import Foundation import QuartzCore // MARK: - LottieAnimationLayer diff --git a/Sources/Public/Animation/LottieAnimationView.swift b/Sources/Public/Animation/LottieAnimationView.swift index 7a034bf368..d34c07a752 100644 --- a/Sources/Public/Animation/LottieAnimationView.swift +++ b/Sources/Public/Animation/LottieAnimationView.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 1/23/19. // -import Foundation import QuartzCore // MARK: - LottieBackgroundBehavior diff --git a/Sources/Public/AnimationCache/AnimationCacheProvider.swift b/Sources/Public/AnimationCache/AnimationCacheProvider.swift index d0086e937e..ba6e3768d0 100644 --- a/Sources/Public/AnimationCache/AnimationCacheProvider.swift +++ b/Sources/Public/AnimationCache/AnimationCacheProvider.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/5/19. // -import Foundation - /// `AnimationCacheProvider` is a protocol that describes an Animation Cache. /// Animation Cache is used when loading `LottieAnimation` models. Using an Animation Cache /// can increase performance when loading an animation multiple times. diff --git a/Sources/Public/AnimationCache/LRUAnimationCache.swift b/Sources/Public/AnimationCache/LRUAnimationCache.swift index ad401610fd..ebf1f5ee56 100644 --- a/Sources/Public/AnimationCache/LRUAnimationCache.swift +++ b/Sources/Public/AnimationCache/LRUAnimationCache.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/5/19. // -import Foundation - @available(*, deprecated, message: """ Use DefaultAnimationCache instead, which is thread-safe and automatically responds to memory pressure. """) diff --git a/Sources/Public/Controls/AnimatedButton.swift b/Sources/Public/Controls/AnimatedButton.swift index cd4ae0bd21..2f09d4826c 100644 --- a/Sources/Public/Controls/AnimatedButton.swift +++ b/Sources/Public/Controls/AnimatedButton.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation - #if canImport(UIKit) import UIKit #elseif canImport(AppKit) diff --git a/Sources/Public/Controls/AnimatedControl.swift b/Sources/Public/Controls/AnimatedControl.swift index d97605b64e..595814eab2 100644 --- a/Sources/Public/Controls/AnimatedControl.swift +++ b/Sources/Public/Controls/AnimatedControl.swift @@ -11,8 +11,6 @@ import UIKit import AppKit #endif -import Foundation - // MARK: - AnimatedControl /// Lottie comes prepacked with a two Animated Controls, `AnimatedSwitch` and diff --git a/Sources/Public/Controls/AnimatedSwitch.swift b/Sources/Public/Controls/AnimatedSwitch.swift index 1923a01887..726297f928 100644 --- a/Sources/Public/Controls/AnimatedSwitch.swift +++ b/Sources/Public/Controls/AnimatedSwitch.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation - #if canImport(UIKit) import UIKit #elseif canImport(AppKit) diff --git a/Sources/Public/DotLottie/Cache/DotLottieCacheProvider.swift b/Sources/Public/DotLottie/Cache/DotLottieCacheProvider.swift index 11beb4bc62..4b32c68295 100644 --- a/Sources/Public/DotLottie/Cache/DotLottieCacheProvider.swift +++ b/Sources/Public/DotLottie/Cache/DotLottieCacheProvider.swift @@ -5,8 +5,6 @@ // Created by Evandro Hoffmann on 20/10/22. // -import Foundation - /// `DotLottieCacheProvider` is a protocol that describes a DotLottie Cache. /// DotLottie Cache is used when loading `DotLottie` models. Using a DotLottie Cache /// can increase performance when loading an animation multiple times. diff --git a/Sources/Public/DynamicProperties/AnimationKeypath.swift b/Sources/Public/DynamicProperties/AnimationKeypath.swift index 0e77a3bcde..425c156484 100644 --- a/Sources/Public/DynamicProperties/AnimationKeypath.swift +++ b/Sources/Public/DynamicProperties/AnimationKeypath.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation - /// `AnimationKeypath` is an object that describes a keypath search for nodes in the /// animation JSON. `AnimationKeypath` matches views and properties inside of `LottieAnimationView` /// to their backing `LottieAnimation` model by name. diff --git a/Sources/Public/DynamicProperties/AnyValueProvider.swift b/Sources/Public/DynamicProperties/AnyValueProvider.swift index f6575b599c..ee11209c7a 100644 --- a/Sources/Public/DynamicProperties/AnyValueProvider.swift +++ b/Sources/Public/DynamicProperties/AnyValueProvider.swift @@ -5,9 +5,6 @@ // Created by Brandon Withrow on 1/30/19. // -import CoreGraphics -import Foundation - // MARK: - AnyValueProvider /// `AnyValueProvider` is a protocol that return animation data for a property at a diff --git a/Sources/Public/FontProvider/AnimationFontProvider.swift b/Sources/Public/FontProvider/AnimationFontProvider.swift index a0b07c2a1e..d9e1e8ea39 100644 --- a/Sources/Public/FontProvider/AnimationFontProvider.swift +++ b/Sources/Public/FontProvider/AnimationFontProvider.swift @@ -6,9 +6,7 @@ // Copyright © 2020 YurtvilleProds. All rights reserved. // -import CoreGraphics import CoreText -import Foundation // MARK: - AnimationFontProvider diff --git a/Sources/Public/ImageProvider/AnimationImageProvider.swift b/Sources/Public/ImageProvider/AnimationImageProvider.swift index 32b1d84459..7f7477003e 100644 --- a/Sources/Public/ImageProvider/AnimationImageProvider.swift +++ b/Sources/Public/ImageProvider/AnimationImageProvider.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import CoreGraphics -import Foundation import QuartzCore // MARK: - AnimationImageProvider diff --git a/Sources/Public/Keyframes/Keyframe.swift b/Sources/Public/Keyframes/Keyframe.swift index 626260cd5d..85d6da3a95 100644 --- a/Sources/Public/Keyframes/Keyframe.swift +++ b/Sources/Public/Keyframes/Keyframe.swift @@ -1,8 +1,6 @@ // Created by Cal Stephens on 1/24/22. // Copyright © 2022 Airbnb Inc. All rights reserved. -import CoreFoundation - // MARK: - Keyframe /// A keyframe with a single value, and timing information diff --git a/Sources/Public/Primitives/LottieColor.swift b/Sources/Public/Primitives/LottieColor.swift index 7c2672f26f..3af8ab1a14 100644 --- a/Sources/Public/Primitives/LottieColor.swift +++ b/Sources/Public/Primitives/LottieColor.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation - // MARK: - ColorFormatDenominator public enum ColorFormatDenominator: Hashable { diff --git a/Sources/Public/Primitives/Vectors.swift b/Sources/Public/Primitives/Vectors.swift index 61fca480bd..af5d956630 100644 --- a/Sources/Public/Primitives/Vectors.swift +++ b/Sources/Public/Primitives/Vectors.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation - // MARK: - LottieVector1D public struct LottieVector1D: Hashable, Sendable { diff --git a/Sources/Public/TextProvider/AnimationTextProvider.swift b/Sources/Public/TextProvider/AnimationTextProvider.swift index 40e1583b83..cd41545e8f 100644 --- a/Sources/Public/TextProvider/AnimationTextProvider.swift +++ b/Sources/Public/TextProvider/AnimationTextProvider.swift @@ -5,8 +5,6 @@ // Created by Alexandr Goncharov on 07/06/2019. // -import Foundation - // MARK: - AnimationKeypathTextProvider /// Protocol for providing dynamic text to for a Lottie animation. diff --git a/Sources/Public/iOS/AnimationSubview.swift b/Sources/Public/iOS/AnimationSubview.swift index 035e1a6c21..93264ef259 100644 --- a/Sources/Public/iOS/AnimationSubview.swift +++ b/Sources/Public/iOS/AnimationSubview.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation #if canImport(UIKit) import UIKit diff --git a/Sources/Public/iOS/BundleImageProvider.swift b/Sources/Public/iOS/BundleImageProvider.swift index 3160809215..98de9c5f9f 100644 --- a/Sources/Public/iOS/BundleImageProvider.swift +++ b/Sources/Public/iOS/BundleImageProvider.swift @@ -5,8 +5,6 @@ // Created by Brandon Withrow on 1/25/19. // -import CoreGraphics -import Foundation #if canImport(UIKit) import UIKit diff --git a/Sources/Public/iOS/UIColorExtension.swift b/Sources/Public/iOS/UIColorExtension.swift index 006ca24084..b05f937ffe 100644 --- a/Sources/Public/iOS/UIColorExtension.swift +++ b/Sources/Public/iOS/UIColorExtension.swift @@ -5,7 +5,6 @@ // Created by Brandon Withrow on 2/4/19. // -import Foundation #if os(iOS) || os(tvOS) || os(watchOS) || targetEnvironment(macCatalyst) import UIKit