lottie-ios 4.4.1 → 4.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/.github/workflows/main.yml +5 -0
  2. package/Lottie.xcodeproj/project.pbxproj +40 -44
  3. package/Lottie.xcworkspace/xcuserdata/calstephens.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  4. package/Lottie.xcworkspace/xcuserdata/calstephens.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +18 -0
  5. package/Package.swift +1 -1
  6. package/README.md +1 -1
  7. package/Rakefile +5 -12
  8. package/Sources/Private/EmbeddedLibraries/EpoxyCore/README.md +3 -4
  9. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUIIntrinsicContentSizeInvalidator.swift +0 -1
  10. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUILayoutMargins.swift +0 -4
  11. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxyableView+SwiftUIView.swift +0 -4
  12. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/LayoutUtilities/MeasuringViewRepresentable.swift +0 -4
  13. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/LayoutUtilities/SwiftUIMeasurementContainer.swift +0 -1
  14. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/SwiftUIView.swift +0 -4
  15. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/UIView+SwiftUIView.swift +0 -1
  16. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/UIViewConfiguringSwiftUIView.swift +0 -2
  17. package/Sources/Private/EmbeddedLibraries/EpoxyCore/Views/ViewType.swift +0 -4
  18. package/Sources/Private/MainThread/LayerContainers/Utility/CoreTextRenderLayer.swift +0 -1
  19. package/Sources/Private/Model/DotLottie/DotLottieUtils.swift +3 -5
  20. package/Sources/Private/Utility/Extensions/DataExtension.swift +5 -8
  21. package/Sources/Private/Utility/Extensions/MathKit.swift +2 -2
  22. package/Sources/Private/Utility/Helpers/Binding+Map.swift +0 -1
  23. package/Sources/Private/Utility/Helpers/View+ValueChanged.swift +15 -2
  24. package/Sources/Public/Animation/LottieAnimationHelpers.swift +0 -1
  25. package/Sources/Public/Animation/LottieView.swift +11 -8
  26. package/Sources/Public/Controls/LottieButton.swift +0 -1
  27. package/Sources/Public/Controls/LottieSwitch.swift +0 -1
  28. package/Sources/Public/Controls/LottieViewType.swift +1 -1
  29. package/Sources/Public/DotLottie/DotLottieFileHelpers.swift +0 -5
  30. package/Sources/Public/iOS/LottieAnimationViewBase.swift +1 -5
  31. package/Version.xcconfig +6 -0
  32. package/lottie-ios.podspec +5 -4
  33. package/package.json +1 -1
  34. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUIHostingController.swift +0 -46
  35. package/Sources/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift +0 -389
@@ -147,11 +147,16 @@ jobs:
147
147
  cocoapod:
148
148
  name: "Lint CocoaPods podspec"
149
149
  runs-on: macos-14
150
+ strategy:
151
+ matrix:
152
+ xcode:
153
+ - '15.2' # Swift 5.9, first Xcode version with visionOS
150
154
  steps:
151
155
  - uses: actions/checkout@v2
152
156
  - uses: ./.github/actions/setup
153
157
  with:
154
158
  install-mint: false
159
+ xcode: ${{ matrix.xcode }}
155
160
  - name: Lint CocoaPod Podspec
156
161
  run: bundle exec rake lint:podspec
157
162
 
@@ -85,13 +85,11 @@
85
85
  080DEFB82A95710300BE2D96 /* AnyEpoxyModelProperty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206DB2A56014E002DCE17 /* AnyEpoxyModelProperty.swift */; };
86
86
  080DEFB92A95710300BE2D96 /* EpoxyModelProperty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206DC2A56014E002DCE17 /* EpoxyModelProperty.swift */; };
87
87
  080DEFBA2A95710300BE2D96 /* ClassReference.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206DA2A56014E002DCE17 /* ClassReference.swift */; };
88
- 080DEFBB2A95710800BE2D96 /* EpoxySwiftUIHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C22A56014E002DCE17 /* EpoxySwiftUIHostingController.swift */; };
89
88
  080DEFBC2A95710800BE2D96 /* EpoxySwiftUILayoutMargins.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206BC2A56014E002DCE17 /* EpoxySwiftUILayoutMargins.swift */; };
90
89
  080DEFBD2A95710800BE2D96 /* EpoxyableView+SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206BE2A56014E002DCE17 /* EpoxyableView+SwiftUIView.swift */; };
91
90
  080DEFBE2A95710800BE2D96 /* UIView+SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C32A56014E002DCE17 /* UIView+SwiftUIView.swift */; };
92
91
  080DEFBF2A95710800BE2D96 /* UIViewConfiguringSwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206BB2A56014E002DCE17 /* UIViewConfiguringSwiftUIView.swift */; };
93
92
  080DEFC02A95710800BE2D96 /* EpoxySwiftUIIntrinsicContentSizeInvalidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206BD2A56014E002DCE17 /* EpoxySwiftUIIntrinsicContentSizeInvalidator.swift */; };
94
- 080DEFC12A95710800BE2D96 /* EpoxySwiftUIHostingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C52A56014E002DCE17 /* EpoxySwiftUIHostingView.swift */; };
95
93
  080DEFC22A95710800BE2D96 /* SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C42A56014E002DCE17 /* SwiftUIView.swift */; };
96
94
  080DEFC32A95710B00BE2D96 /* SwiftUIMeasurementContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C02A56014E002DCE17 /* SwiftUIMeasurementContainer.swift */; };
97
95
  080DEFC42A95710B00BE2D96 /* MeasuringViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C12A56014E002DCE17 /* MeasuringViewRepresentable.swift */; };
@@ -459,18 +457,12 @@
459
457
  08E2070F2A56014E002DCE17 /* MeasuringViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C12A56014E002DCE17 /* MeasuringViewRepresentable.swift */; };
460
458
  08E207102A56014E002DCE17 /* MeasuringViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C12A56014E002DCE17 /* MeasuringViewRepresentable.swift */; };
461
459
  08E207112A56014E002DCE17 /* MeasuringViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C12A56014E002DCE17 /* MeasuringViewRepresentable.swift */; };
462
- 08E207122A56014E002DCE17 /* EpoxySwiftUIHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C22A56014E002DCE17 /* EpoxySwiftUIHostingController.swift */; };
463
- 08E207132A56014E002DCE17 /* EpoxySwiftUIHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C22A56014E002DCE17 /* EpoxySwiftUIHostingController.swift */; };
464
- 08E207142A56014E002DCE17 /* EpoxySwiftUIHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C22A56014E002DCE17 /* EpoxySwiftUIHostingController.swift */; };
465
460
  08E207152A56014E002DCE17 /* UIView+SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C32A56014E002DCE17 /* UIView+SwiftUIView.swift */; };
466
461
  08E207162A56014E002DCE17 /* UIView+SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C32A56014E002DCE17 /* UIView+SwiftUIView.swift */; };
467
462
  08E207172A56014E002DCE17 /* UIView+SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C32A56014E002DCE17 /* UIView+SwiftUIView.swift */; };
468
463
  08E207182A56014E002DCE17 /* SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C42A56014E002DCE17 /* SwiftUIView.swift */; };
469
464
  08E207192A56014E002DCE17 /* SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C42A56014E002DCE17 /* SwiftUIView.swift */; };
470
465
  08E2071A2A56014E002DCE17 /* SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C42A56014E002DCE17 /* SwiftUIView.swift */; };
471
- 08E2071B2A56014E002DCE17 /* EpoxySwiftUIHostingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C52A56014E002DCE17 /* EpoxySwiftUIHostingView.swift */; };
472
- 08E2071C2A56014E002DCE17 /* EpoxySwiftUIHostingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C52A56014E002DCE17 /* EpoxySwiftUIHostingView.swift */; };
473
- 08E2071D2A56014E002DCE17 /* EpoxySwiftUIHostingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C52A56014E002DCE17 /* EpoxySwiftUIHostingView.swift */; };
474
466
  08E2071E2A56014E002DCE17 /* EpoxyModelStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C72A56014E002DCE17 /* EpoxyModelStorage.swift */; };
475
467
  08E2071F2A56014E002DCE17 /* EpoxyModelStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C72A56014E002DCE17 /* EpoxyModelStorage.swift */; };
476
468
  08E207202A56014E002DCE17 /* EpoxyModelStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08E206C72A56014E002DCE17 /* EpoxyModelStorage.swift */; };
@@ -1185,6 +1177,7 @@
1185
1177
  0820D5C12A8BF60F007D705C /* EffectValue.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EffectValue.swift; sourceTree = "<group>"; };
1186
1178
  0820D5CC2A8BF6FF007D705C /* ColorEffectValue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorEffectValue.swift; sourceTree = "<group>"; };
1187
1179
  0820D5D02A8C006E007D705C /* DropShadowAnimation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DropShadowAnimation.swift; sourceTree = "<group>"; };
1180
+ 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; };
1188
1181
  0887346E28F0CBDE00458627 /* LottieAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LottieAnimation.swift; sourceTree = "<group>"; };
1189
1182
  0887347228F0CCDD00458627 /* LottieAnimationHelpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LottieAnimationHelpers.swift; sourceTree = "<group>"; };
1190
1183
  0887347328F0CCDD00458627 /* LottieAnimationViewInitializers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LottieAnimationViewInitializers.swift; sourceTree = "<group>"; };
@@ -1237,10 +1230,8 @@
1237
1230
  08E206BE2A56014E002DCE17 /* EpoxyableView+SwiftUIView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "EpoxyableView+SwiftUIView.swift"; sourceTree = "<group>"; };
1238
1231
  08E206C02A56014E002DCE17 /* SwiftUIMeasurementContainer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftUIMeasurementContainer.swift; sourceTree = "<group>"; };
1239
1232
  08E206C12A56014E002DCE17 /* MeasuringViewRepresentable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MeasuringViewRepresentable.swift; sourceTree = "<group>"; };
1240
- 08E206C22A56014E002DCE17 /* EpoxySwiftUIHostingController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EpoxySwiftUIHostingController.swift; sourceTree = "<group>"; };
1241
1233
  08E206C32A56014E002DCE17 /* UIView+SwiftUIView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIView+SwiftUIView.swift"; sourceTree = "<group>"; };
1242
1234
  08E206C42A56014E002DCE17 /* SwiftUIView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftUIView.swift; sourceTree = "<group>"; };
1243
- 08E206C52A56014E002DCE17 /* EpoxySwiftUIHostingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EpoxySwiftUIHostingView.swift; sourceTree = "<group>"; };
1244
1235
  08E206C72A56014E002DCE17 /* EpoxyModelStorage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EpoxyModelStorage.swift; sourceTree = "<group>"; };
1245
1236
  08E206C82A56014E002DCE17 /* CallbackContextEpoxyModeled.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CallbackContextEpoxyModeled.swift; sourceTree = "<group>"; };
1246
1237
  08E206CA2A56014E002DCE17 /* ViewDifferentiatorProviding.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewDifferentiatorProviding.swift; sourceTree = "<group>"; };
@@ -1668,10 +1659,8 @@
1668
1659
  08E206BD2A56014E002DCE17 /* EpoxySwiftUIIntrinsicContentSizeInvalidator.swift */,
1669
1660
  08E206BE2A56014E002DCE17 /* EpoxyableView+SwiftUIView.swift */,
1670
1661
  08E206BF2A56014E002DCE17 /* LayoutUtilities */,
1671
- 08E206C22A56014E002DCE17 /* EpoxySwiftUIHostingController.swift */,
1672
1662
  08E206C32A56014E002DCE17 /* UIView+SwiftUIView.swift */,
1673
1663
  08E206C42A56014E002DCE17 /* SwiftUIView.swift */,
1674
- 08E206C52A56014E002DCE17 /* EpoxySwiftUIHostingView.swift */,
1675
1664
  );
1676
1665
  path = SwiftUI;
1677
1666
  sourceTree = "<group>";
@@ -1749,6 +1738,7 @@
1749
1738
  2EAF59C027A0798600E00531 /* Sources */,
1750
1739
  2E8040BA27A07343006E74CB /* Tests */,
1751
1740
  08FB47C52B23B86500744478 /* PrivacyInfo.xcprivacy */,
1741
+ 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */,
1752
1742
  2E80409B27A0725D006E74CB /* Products */,
1753
1743
  );
1754
1744
  sourceTree = "<group>";
@@ -2797,7 +2787,6 @@
2797
2787
  080DF0632A95717000BE2D96 /* DropShadowStyle.swift in Sources */,
2798
2788
  080DEFF72A95712400BE2D96 /* RectangleAnimation.swift in Sources */,
2799
2789
  080DEF712A95709D00BE2D96 /* LottieAnimationView.swift in Sources */,
2800
- 080DEFC12A95710800BE2D96 /* EpoxySwiftUIHostingView.swift in Sources */,
2801
2790
  080DF0792A95717F00BE2D96 /* KeyframeExtensions.swift in Sources */,
2802
2791
  080DF0062A95712D00BE2D96 /* ShapeCompositionLayer.swift in Sources */,
2803
2792
  080DEF702A95709700BE2D96 /* ReducedMotionOption.swift in Sources */,
@@ -2824,7 +2813,6 @@
2824
2813
  080DF0142A95713500BE2D96 /* GroupNode.swift in Sources */,
2825
2814
  080DF0212A95713B00BE2D96 /* PolygonNode.swift in Sources */,
2826
2815
  080DF0372A95715600BE2D96 /* DotLottieManifest.swift in Sources */,
2827
- 080DEFBB2A95710800BE2D96 /* EpoxySwiftUIHostingController.swift in Sources */,
2828
2816
  080DEF9F2A9570F600BE2D96 /* SectionedChangeset.swift in Sources */,
2829
2817
  080DF05F2A95716D00BE2D96 /* ColorEffectValue.swift in Sources */,
2830
2818
  080DF04D2A95715C00BE2D96 /* ShapeLayerModel.swift in Sources */,
@@ -3145,7 +3133,6 @@
3145
3133
  6C4877FF28FF20140005AF07 /* DotLottieAnimation.swift in Sources */,
3146
3134
  2E9C97262822F43100677516 /* StrokeAnimation.swift in Sources */,
3147
3135
  2E9C97382822F43100677516 /* VisibilityAnimation.swift in Sources */,
3148
- 08E207122A56014E002DCE17 /* EpoxySwiftUIHostingController.swift in Sources */,
3149
3136
  2EAF5AD727A0798700E00531 /* Vectors.swift in Sources */,
3150
3137
  2E9C95E22822F43100677516 /* Group.swift in Sources */,
3151
3138
  2E9C97112822F43100677516 /* Keyframes+combined.swift in Sources */,
@@ -3213,7 +3200,6 @@
3213
3200
  08BCA8472B0E8E0B00594EEB /* LRUCache.swift in Sources */,
3214
3201
  08C001F62A46150D00AB54BA /* Archive.swift in Sources */,
3215
3202
  2E9C96AB2822F43100677516 /* GradientStrokeNode.swift in Sources */,
3216
- 08E2071B2A56014E002DCE17 /* EpoxySwiftUIHostingView.swift in Sources */,
3217
3203
  08E207452A56014E002DCE17 /* DidDisplayProviding.swift in Sources */,
3218
3204
  08E2074E2A56014E002DCE17 /* ViewEpoxyModeled.swift in Sources */,
3219
3205
  2EAF5AC227A0798700E00531 /* BundleImageProvider.swift in Sources */,
@@ -3348,7 +3334,6 @@
3348
3334
  2E9C97722822F43100677516 /* AnimationContext.swift in Sources */,
3349
3335
  2E9C96B22822F43100677516 /* NodeProperty.swift in Sources */,
3350
3336
  08E6CF8A2A86E26F00A6D92F /* AnimatedSwitch.swift in Sources */,
3351
- 08E2071C2A56014E002DCE17 /* EpoxySwiftUIHostingView.swift in Sources */,
3352
3337
  2E9C965E2822F43100677516 /* MainThreadAnimationLayer.swift in Sources */,
3353
3338
  AB87F02C2A72F5A80091D7B8 /* View+ValueChanged.swift in Sources */,
3354
3339
  2E9C964F2822F43100677516 /* SolidCompositionLayer.swift in Sources */,
@@ -3541,7 +3526,6 @@
3541
3526
  2E9C96CD2822F43100677516 /* ShapeRenderLayer.swift in Sources */,
3542
3527
  08E6CF8D2A86E26F00A6D92F /* LottieSwitch.swift in Sources */,
3543
3528
  5721092029119F3100169699 /* BezierPathRoundExtension.swift in Sources */,
3544
- 08E207132A56014E002DCE17 /* EpoxySwiftUIHostingController.swift in Sources */,
3545
3529
  ABF033B52A7B0ABA00F8C228 /* AnyEquatable.swift in Sources */,
3546
3530
  08E2070A2A56014E002DCE17 /* EpoxyableView+SwiftUIView.swift in Sources */,
3547
3531
  6C48780328FF20140005AF07 /* DotLottieFile.swift in Sources */,
@@ -3749,7 +3733,6 @@
3749
3733
  2E9C973A2822F43100677516 /* VisibilityAnimation.swift in Sources */,
3750
3734
  2EAF5AD927A0798700E00531 /* Vectors.swift in Sources */,
3751
3735
  2E9C95E42822F43100677516 /* Group.swift in Sources */,
3752
- 08E207142A56014E002DCE17 /* EpoxySwiftUIHostingController.swift in Sources */,
3753
3736
  2E9C97132822F43100677516 /* Keyframes+combined.swift in Sources */,
3754
3737
  0887347D28F0CCDD00458627 /* LottieAnimationView.swift in Sources */,
3755
3738
  08C002F12A46196300AB54BA /* Archive+Reading.swift in Sources */,
@@ -3816,7 +3799,6 @@
3816
3799
  08E206F92A56014E002DCE17 /* Collection+Diff.swift in Sources */,
3817
3800
  08BCA8492B0E8E0B00594EEB /* LRUCache.swift in Sources */,
3818
3801
  2EAF5AC427A0798700E00531 /* BundleImageProvider.swift in Sources */,
3819
- 08E2071D2A56014E002DCE17 /* EpoxySwiftUIHostingView.swift in Sources */,
3820
3802
  2E9C976D2822F43100677516 /* InterpolatableExtensions.swift in Sources */,
3821
3803
  08E207472A56014E002DCE17 /* DidDisplayProviding.swift in Sources */,
3822
3804
  08E207502A56014E002DCE17 /* ViewEpoxyModeled.swift in Sources */,
@@ -3875,11 +3857,12 @@
3875
3857
  /* Begin XCBuildConfiguration section */
3876
3858
  080DEF662A95707C00BE2D96 /* Debug */ = {
3877
3859
  isa = XCBuildConfiguration;
3860
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
3878
3861
  buildSettings = {
3879
3862
  ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
3880
3863
  CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
3881
3864
  CODE_SIGN_STYLE = Automatic;
3882
- CURRENT_PROJECT_VERSION = 1;
3865
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
3883
3866
  DEFINES_MODULE = YES;
3884
3867
  DYLIB_COMPATIBILITY_VERSION = 1;
3885
3868
  DYLIB_CURRENT_VERSION = 1;
@@ -3896,7 +3879,7 @@
3896
3879
  "@loader_path/Frameworks",
3897
3880
  );
3898
3881
  LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
3899
- MARKETING_VERSION = 1.0;
3882
+ MARKETING_VERSION = "${MARKETING_VERSION}";
3900
3883
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
3901
3884
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
3902
3885
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -3914,11 +3897,12 @@
3914
3897
  };
3915
3898
  080DEF672A95707C00BE2D96 /* Release */ = {
3916
3899
  isa = XCBuildConfiguration;
3900
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
3917
3901
  buildSettings = {
3918
3902
  ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
3919
3903
  CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
3920
3904
  CODE_SIGN_STYLE = Automatic;
3921
- CURRENT_PROJECT_VERSION = 1;
3905
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
3922
3906
  DEFINES_MODULE = YES;
3923
3907
  DYLIB_COMPATIBILITY_VERSION = 1;
3924
3908
  DYLIB_CURRENT_VERSION = 1;
@@ -3935,7 +3919,7 @@
3935
3919
  "@loader_path/Frameworks",
3936
3920
  );
3937
3921
  LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
3938
- MARKETING_VERSION = 1.0;
3922
+ MARKETING_VERSION = "${MARKETING_VERSION}";
3939
3923
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
3940
3924
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
3941
3925
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -3952,6 +3936,7 @@
3952
3936
  };
3953
3937
  2E80409F27A0725D006E74CB /* Debug */ = {
3954
3938
  isa = XCBuildConfiguration;
3939
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
3955
3940
  buildSettings = {
3956
3941
  ALWAYS_SEARCH_USER_PATHS = NO;
3957
3942
  CLANG_ANALYZER_NONNULL = YES;
@@ -3984,7 +3969,7 @@
3984
3969
  CLANG_WARN_UNREACHABLE_CODE = YES;
3985
3970
  CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
3986
3971
  COPY_PHASE_STRIP = NO;
3987
- CURRENT_PROJECT_VERSION = 1;
3972
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
3988
3973
  DEBUG_INFORMATION_FORMAT = dwarf;
3989
3974
  ENABLE_STRICT_OBJC_MSGSEND = YES;
3990
3975
  ENABLE_TESTABILITY = YES;
@@ -4003,6 +3988,7 @@
4003
3988
  GCC_WARN_UNUSED_FUNCTION = YES;
4004
3989
  GCC_WARN_UNUSED_VARIABLE = YES;
4005
3990
  IPHONEOS_DEPLOYMENT_TARGET = 15.2;
3991
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4006
3992
  MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
4007
3993
  MTL_FAST_MATH = YES;
4008
3994
  ONLY_ACTIVE_ARCH = YES;
@@ -4016,6 +4002,7 @@
4016
4002
  };
4017
4003
  2E8040A027A0725D006E74CB /* Release */ = {
4018
4004
  isa = XCBuildConfiguration;
4005
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4019
4006
  buildSettings = {
4020
4007
  ALWAYS_SEARCH_USER_PATHS = NO;
4021
4008
  CLANG_ANALYZER_NONNULL = YES;
@@ -4048,7 +4035,7 @@
4048
4035
  CLANG_WARN_UNREACHABLE_CODE = YES;
4049
4036
  CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
4050
4037
  COPY_PHASE_STRIP = NO;
4051
- CURRENT_PROJECT_VERSION = 1;
4038
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
4052
4039
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4053
4040
  ENABLE_NS_ASSERTIONS = NO;
4054
4041
  ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -4061,6 +4048,7 @@
4061
4048
  GCC_WARN_UNUSED_FUNCTION = YES;
4062
4049
  GCC_WARN_UNUSED_VARIABLE = YES;
4063
4050
  IPHONEOS_DEPLOYMENT_TARGET = 15.2;
4051
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4064
4052
  MTL_ENABLE_DEBUG_INFO = NO;
4065
4053
  MTL_FAST_MATH = YES;
4066
4054
  SDKROOT = iphoneos;
@@ -4074,11 +4062,12 @@
4074
4062
  };
4075
4063
  2E8040A227A0725D006E74CB /* Debug */ = {
4076
4064
  isa = XCBuildConfiguration;
4065
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4077
4066
  buildSettings = {
4078
4067
  APPLICATION_EXTENSION_API_ONLY = YES;
4079
4068
  CODE_SIGN_IDENTITY = "";
4080
4069
  CODE_SIGN_STYLE = Automatic;
4081
- CURRENT_PROJECT_VERSION = 1;
4070
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
4082
4071
  DEFINES_MODULE = YES;
4083
4072
  DYLIB_COMPATIBILITY_VERSION = 1;
4084
4073
  DYLIB_CURRENT_VERSION = 1;
@@ -4087,13 +4076,13 @@
4087
4076
  GENERATE_INFOPLIST_FILE = YES;
4088
4077
  INFOPLIST_KEY_NSHumanReadableCopyright = "";
4089
4078
  INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
4090
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
4079
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
4091
4080
  LD_RUNPATH_SEARCH_PATHS = (
4092
4081
  "$(inherited)",
4093
4082
  "@executable_path/Frameworks",
4094
4083
  "@loader_path/Frameworks",
4095
4084
  );
4096
- MARKETING_VERSION = 1.0;
4085
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4097
4086
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
4098
4087
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
4099
4088
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -4107,11 +4096,12 @@
4107
4096
  };
4108
4097
  2E8040A327A0725D006E74CB /* Release */ = {
4109
4098
  isa = XCBuildConfiguration;
4099
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4110
4100
  buildSettings = {
4111
4101
  APPLICATION_EXTENSION_API_ONLY = YES;
4112
4102
  CODE_SIGN_IDENTITY = "";
4113
4103
  CODE_SIGN_STYLE = Automatic;
4114
- CURRENT_PROJECT_VERSION = 1;
4104
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
4115
4105
  DEFINES_MODULE = YES;
4116
4106
  DYLIB_COMPATIBILITY_VERSION = 1;
4117
4107
  DYLIB_CURRENT_VERSION = 1;
@@ -4120,13 +4110,13 @@
4120
4110
  GENERATE_INFOPLIST_FILE = YES;
4121
4111
  INFOPLIST_KEY_NSHumanReadableCopyright = "";
4122
4112
  INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
4123
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
4113
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
4124
4114
  LD_RUNPATH_SEARCH_PATHS = (
4125
4115
  "$(inherited)",
4126
4116
  "@executable_path/Frameworks",
4127
4117
  "@loader_path/Frameworks",
4128
4118
  );
4129
- MARKETING_VERSION = 1.0;
4119
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4130
4120
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
4131
4121
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
4132
4122
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -4140,6 +4130,7 @@
4140
4130
  };
4141
4131
  2E8040B427A072B8006E74CB /* Debug */ = {
4142
4132
  isa = XCBuildConfiguration;
4133
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4143
4134
  buildSettings = {
4144
4135
  ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
4145
4136
  CODE_SIGN_STYLE = Automatic;
@@ -4159,6 +4150,7 @@
4159
4150
  };
4160
4151
  2E8040B527A072B8006E74CB /* Release */ = {
4161
4152
  isa = XCBuildConfiguration;
4153
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4162
4154
  buildSettings = {
4163
4155
  ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
4164
4156
  CODE_SIGN_STYLE = Automatic;
@@ -4178,11 +4170,12 @@
4178
4170
  };
4179
4171
  2EAF59B227A0787B00E00531 /* Debug */ = {
4180
4172
  isa = XCBuildConfiguration;
4173
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4181
4174
  buildSettings = {
4182
4175
  APPLICATION_EXTENSION_API_ONLY = YES;
4183
4176
  CODE_SIGN_STYLE = Automatic;
4184
4177
  COMBINE_HIDPI_IMAGES = YES;
4185
- CURRENT_PROJECT_VERSION = 1;
4178
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
4186
4179
  DEAD_CODE_STRIPPING = YES;
4187
4180
  DEFINES_MODULE = YES;
4188
4181
  DYLIB_COMPATIBILITY_VERSION = 1;
@@ -4197,8 +4190,8 @@
4197
4190
  "@executable_path/../Frameworks",
4198
4191
  "@loader_path/Frameworks",
4199
4192
  );
4200
- MACOSX_DEPLOYMENT_TARGET = 10.11;
4201
- MARKETING_VERSION = 1.0;
4193
+ MACOSX_DEPLOYMENT_TARGET = 10.15;
4194
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4202
4195
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
4203
4196
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
4204
4197
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -4212,11 +4205,12 @@
4212
4205
  };
4213
4206
  2EAF59B327A0787B00E00531 /* Release */ = {
4214
4207
  isa = XCBuildConfiguration;
4208
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4215
4209
  buildSettings = {
4216
4210
  APPLICATION_EXTENSION_API_ONLY = YES;
4217
4211
  CODE_SIGN_STYLE = Automatic;
4218
4212
  COMBINE_HIDPI_IMAGES = YES;
4219
- CURRENT_PROJECT_VERSION = 1;
4213
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
4220
4214
  DEAD_CODE_STRIPPING = YES;
4221
4215
  DEFINES_MODULE = YES;
4222
4216
  DYLIB_COMPATIBILITY_VERSION = 1;
@@ -4231,8 +4225,8 @@
4231
4225
  "@executable_path/../Frameworks",
4232
4226
  "@loader_path/Frameworks",
4233
4227
  );
4234
- MACOSX_DEPLOYMENT_TARGET = 10.11;
4235
- MARKETING_VERSION = 1.0;
4228
+ MACOSX_DEPLOYMENT_TARGET = 10.15;
4229
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4236
4230
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
4237
4231
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
4238
4232
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -4246,11 +4240,12 @@
4246
4240
  };
4247
4241
  2EAF59BE27A078E400E00531 /* Debug */ = {
4248
4242
  isa = XCBuildConfiguration;
4243
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4249
4244
  buildSettings = {
4250
4245
  APPLICATION_EXTENSION_API_ONLY = YES;
4251
4246
  CODE_SIGN_IDENTITY = "";
4252
4247
  CODE_SIGN_STYLE = Automatic;
4253
- CURRENT_PROJECT_VERSION = 1;
4248
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
4254
4249
  DEFINES_MODULE = YES;
4255
4250
  DYLIB_COMPATIBILITY_VERSION = 1;
4256
4251
  DYLIB_CURRENT_VERSION = 1;
@@ -4264,7 +4259,7 @@
4264
4259
  "@executable_path/Frameworks",
4265
4260
  "@loader_path/Frameworks",
4266
4261
  );
4267
- MARKETING_VERSION = 1.0;
4262
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4268
4263
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
4269
4264
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
4270
4265
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -4274,17 +4269,18 @@
4274
4269
  SWIFT_EMIT_LOC_STRINGS = YES;
4275
4270
  SWIFT_VERSION = 5.0;
4276
4271
  TARGETED_DEVICE_FAMILY = 3;
4277
- TVOS_DEPLOYMENT_TARGET = 11.0;
4272
+ TVOS_DEPLOYMENT_TARGET = 13.0;
4278
4273
  };
4279
4274
  name = Debug;
4280
4275
  };
4281
4276
  2EAF59BF27A078E400E00531 /* Release */ = {
4282
4277
  isa = XCBuildConfiguration;
4278
+ baseConfigurationReference = 086DFA8A2BA0D46900CE8687 /* Version.xcconfig */;
4283
4279
  buildSettings = {
4284
4280
  APPLICATION_EXTENSION_API_ONLY = YES;
4285
4281
  CODE_SIGN_IDENTITY = "";
4286
4282
  CODE_SIGN_STYLE = Automatic;
4287
- CURRENT_PROJECT_VERSION = 1;
4283
+ CURRENT_PROJECT_VERSION = "${CURRENT_PROJECT_VERSION}";
4288
4284
  DEFINES_MODULE = YES;
4289
4285
  DYLIB_COMPATIBILITY_VERSION = 1;
4290
4286
  DYLIB_CURRENT_VERSION = 1;
@@ -4298,7 +4294,7 @@
4298
4294
  "@executable_path/Frameworks",
4299
4295
  "@loader_path/Frameworks",
4300
4296
  );
4301
- MARKETING_VERSION = 1.0;
4297
+ MARKETING_VERSION = "${MARKETING_VERSION}";
4302
4298
  MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
4303
4299
  MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++17";
4304
4300
  PRODUCT_BUNDLE_IDENTIFIER = com.airbnb.Lottie;
@@ -4308,7 +4304,7 @@
4308
4304
  SWIFT_EMIT_LOC_STRINGS = YES;
4309
4305
  SWIFT_VERSION = 5.0;
4310
4306
  TARGETED_DEVICE_FAMILY = 3;
4311
- TVOS_DEPLOYMENT_TARGET = 11.0;
4307
+ TVOS_DEPLOYMENT_TARGET = 13.0;
4312
4308
  };
4313
4309
  name = Release;
4314
4310
  };
@@ -3,4 +3,22 @@
3
3
  uuid = "01C80884-20C6-43CD-959A-834F11C6CFBC"
4
4
  type = "0"
5
5
  version = "2.0">
6
+ <Breakpoints>
7
+ <BreakpointProxy
8
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
9
+ <BreakpointContent
10
+ uuid = "82609F00-E052-4A66-A922-03120D26327C"
11
+ shouldBeEnabled = "No"
12
+ ignoreCount = "0"
13
+ continueAfterRunningActions = "No"
14
+ filePath = "Sources/Private/CoreAnimation/CoreAnimationLayer.swift"
15
+ startingColumnNumber = "9223372036854775807"
16
+ endingColumnNumber = "9223372036854775807"
17
+ startingLineNumber = "26"
18
+ endingLineNumber = "26"
19
+ landmarkName = "CoreAnimationLayer"
20
+ landmarkType = "3">
21
+ </BreakpointContent>
22
+ </BreakpointProxy>
23
+ </Breakpoints>
6
24
  </Bucket>
package/Package.swift CHANGED
@@ -4,7 +4,7 @@ import PackageDescription
4
4
  let package = Package(
5
5
  name: "Lottie",
6
6
  // Minimum platform versions should be kept in sync with the per-platform targets in Lottie.xcodeproj, lottie-ios.podspec, and lottie-spm's Package.swift
7
- platforms: [.iOS("11.0"), .macOS("10.11"), .tvOS("11.0"), .custom("visionOS", versionString: "1.0")],
7
+ platforms: [.iOS("13.0"), .macOS("10.15"), .tvOS("13.0"), .custom("visionOS", versionString: "1.0")],
8
8
  products: [.library(name: "Lottie", targets: ["Lottie"])],
9
9
  dependencies: [
10
10
  .package(url: "https://github.com/airbnb/swift", .upToNextMajor(from: "1.0.1")),
package/README.md CHANGED
@@ -41,7 +41,7 @@ To install Lottie using [Swift Package Manager](https://github.com/apple/swift-p
41
41
  or you can add the following dependency to your `Package.swift`:
42
42
 
43
43
  ```swift
44
- .package(url: "https://github.com/airbnb/lottie-spm.git", from: "4.4.1")
44
+ .package(url: "https://github.com/airbnb/lottie-spm.git", from: "4.4.2")
45
45
  ```
46
46
 
47
47
  When using Swift Package Manager we recommend using the [lottie-spm](https://github.com/airbnb/lottie-spm) repo instead of the main lottie-ios repo. The main git repository for [lottie-ios](https://github.com/airbnb/lottie-ios) is somewhat large (300+ MB), and Swift Package Manager always downloads the full repository with all git history. The [lottie-spm](https://github.com/airbnb/lottie-spm) repo is much smaller (less than 500kb), so can be downloaded much more quickly.
package/Rakefile CHANGED
@@ -12,23 +12,23 @@ namespace :build do
12
12
 
13
13
  desc 'Builds the Lottie package for iOS'
14
14
  task :iOS do
15
- xcodebuild('build -scheme "Lottie (iOS)" -destination generic/platform=iOS -workspace Lottie.xcworkspace')
15
+ xcodebuild('build -scheme "Lottie (iOS)" -destination generic/platform=iOS -workspace Lottie.xcworkspace OTHER_SWIFT_FLAGS="-warnings-as-errors"')
16
16
  end
17
17
 
18
18
  desc 'Builds the Lottie package for macOS'
19
19
  task :macOS do
20
- xcodebuild('build -scheme "Lottie (macOS)" -destination generic/platform=macOS -workspace Lottie.xcworkspace')
20
+ xcodebuild('build -scheme "Lottie (macOS)" -destination generic/platform=macOS -workspace Lottie.xcworkspace OTHER_SWIFT_FLAGS="-warnings-as-errors"')
21
21
  end
22
22
 
23
23
  desc 'Builds the Lottie package for tvOS'
24
24
  task :tvOS do
25
- xcodebuild('build -scheme "Lottie (tvOS)" -destination generic/platform=tvOS -workspace Lottie.xcworkspace')
25
+ xcodebuild('build -scheme "Lottie (tvOS)" -destination generic/platform=tvOS -workspace Lottie.xcworkspace OTHER_SWIFT_FLAGS="-warnings-as-errors"')
26
26
  end
27
27
 
28
28
  desc 'Builds the Lottie package for visionOS'
29
29
  task :visionOS do
30
30
  ifVisionOSEnabled {
31
- xcodebuild('build -scheme "Lottie (visionOS)" -destination generic/platform=visionOS -workspace Lottie.xcworkspace')
31
+ xcodebuild('build -scheme "Lottie (visionOS)" -destination generic/platform=visionOS -workspace Lottie.xcworkspace OTHER_SWIFT_FLAGS="-warnings-as-errors"')
32
32
  }
33
33
  end
34
34
  end
@@ -146,8 +146,6 @@ namespace :test do
146
146
  sh 'cp -R [^script]* script/test-carthage/Carthage/Checkouts/lottie-ios'
147
147
 
148
148
  Dir.chdir('script/test-carthage') do
149
- installVisionOSIfNecessary()
150
-
151
149
  # Build the Lottie framework scheme
152
150
  sh 'carthage build --use-xcframeworks'
153
151
 
@@ -256,11 +254,6 @@ def ifVisionOSEnabled
256
254
  if ENV["SKIP_VISION_OS"] == "true"
257
255
  puts "Skipping visionOS build"
258
256
  else
259
- installVisionOSIfNecessary()
260
257
  yield
261
258
  end
262
- end
263
-
264
- def installVisionOSIfNecessary
265
- xcodebuild("-downloadPlatform visionOS")
266
- end
259
+ end
@@ -23,9 +23,8 @@ When doing this, follow these steps:
23
23
  3. Change all of the `public` symbols defined in this module to instead be `internal`
24
24
  to prevent Lottie from exposing any EpoxyCore APIs.
25
25
 
26
- 4. Add `@available` annotations as necessary so the library compiles
27
- (Lottie has a lower minimum iOS version than EpoxyCore).
28
-
29
- 5. Namespace any types that conflict with other existing types.
26
+ 4. Namespace any types that conflict with other existing types.
30
27
  For example, the EpoxyCore `Entry` type conflicts with the ZipFoundation `Entry` type,
31
28
  so the EpoxyCore type has been renamed to `EpoxyEntry`.
29
+
30
+ 5. Delete `EpoxySwiftUIHostingController.swift` and `EpoxySwiftUIHostingView.swift`, which are not used by Lottie, and emit deprecation warnings when building for visionOS.
@@ -29,7 +29,6 @@ struct EpoxyIntrinsicContentSizeInvalidator {
29
29
 
30
30
  // MARK: - EnvironmentValues
31
31
 
32
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
33
32
  extension EnvironmentValues {
34
33
  /// A means of invalidating the intrinsic content size of the parent `EpoxySwiftUIHostingView`.
35
34
  var epoxyIntrinsicContentSizeInvalidator: EpoxyIntrinsicContentSizeInvalidator {
@@ -6,7 +6,6 @@ import SwiftUI
6
6
 
7
7
  // MARK: - View
8
8
 
9
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
10
9
  extension View {
11
10
  /// Applies the layout margins from the parent `EpoxySwiftUIHostingView` to this `View`, if there
12
11
  /// are any.
@@ -22,7 +21,6 @@ extension View {
22
21
 
23
22
  // MARK: - EnvironmentValues
24
23
 
25
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
26
24
  extension EnvironmentValues {
27
25
  /// The layout margins of the parent `EpoxySwiftUIHostingView`, else zero if there is none.
28
26
  var epoxyLayoutMargins: EdgeInsets {
@@ -33,7 +31,6 @@ extension EnvironmentValues {
33
31
 
34
32
  // MARK: - EpoxyLayoutMarginsKey
35
33
 
36
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
37
34
  private struct EpoxyLayoutMarginsKey: EnvironmentKey {
38
35
  static let defaultValue = EdgeInsets()
39
36
  }
@@ -42,7 +39,6 @@ private struct EpoxyLayoutMarginsKey: EnvironmentKey {
42
39
 
43
40
  /// A view modifier that applies the layout margins from an enclosing `EpoxySwiftUIHostingView` to
44
41
  /// the modified `View`.
45
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
46
42
  private struct EpoxyLayoutMarginsPadding: ViewModifier {
47
43
  @Environment(\.epoxyLayoutMargins) var epoxyLayoutMargins
48
44
 
@@ -6,7 +6,6 @@ import SwiftUI
6
6
 
7
7
  // MARK: - StyledView
8
8
 
9
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
10
9
  extension StyledView where Self: ContentConfigurableView & BehaviorsConfigurableView {
11
10
  /// Returns a SwiftUI `View` representing this `EpoxyableView`.
12
11
  ///
@@ -52,7 +51,6 @@ extension StyledView where Self: ContentConfigurableView & BehaviorsConfigurable
52
51
  }
53
52
  }
54
53
 
55
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
56
54
  extension StyledView
57
55
  where
58
56
  Self: ContentConfigurableView & BehaviorsConfigurableView,
@@ -96,7 +94,6 @@ extension StyledView
96
94
  }
97
95
  }
98
96
 
99
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
100
97
  extension StyledView
101
98
  where
102
99
  Self: ContentConfigurableView & BehaviorsConfigurableView,
@@ -138,7 +135,6 @@ extension StyledView
138
135
  }
139
136
  }
140
137
 
141
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
142
138
  extension StyledView
143
139
  where
144
140
  Self: ContentConfigurableView & BehaviorsConfigurableView,
@@ -13,7 +13,6 @@ import SwiftUI
13
13
  /// `sizeThatFits(…)` method.
14
14
  ///
15
15
  /// - SeeAlso: ``SwiftUIMeasurementContainer``
16
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
17
16
  protocol MeasuringViewRepresentable: ViewRepresentableType
18
17
  where
19
18
  RepresentableViewType == SwiftUIMeasurementContainer<Content>
@@ -32,7 +31,6 @@ protocol MeasuringViewRepresentable: ViewRepresentableType
32
31
 
33
32
  // MARK: Extensions
34
33
 
35
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
36
34
  extension MeasuringViewRepresentable {
37
35
  /// Returns a copy of this view with its sizing strategy updated to the given `sizing` value.
38
36
  func sizing(_ strategy: SwiftUIMeasurementContainerStrategy) -> Self {
@@ -45,7 +43,6 @@ extension MeasuringViewRepresentable {
45
43
  // MARK: Defaults
46
44
 
47
45
  #if os(iOS) || os(tvOS)
48
- @available(iOS 13.0, tvOS 13.0, *)
49
46
  extension MeasuringViewRepresentable {
50
47
  func _overrideSizeThatFits(
51
48
  _ size: inout CGSize,
@@ -87,7 +84,6 @@ extension MeasuringViewRepresentable {
87
84
  }
88
85
 
89
86
  #elseif os(macOS)
90
- @available(macOS 10.15, *)
91
87
  extension MeasuringViewRepresentable {
92
88
  func _overrideSizeThatFits(
93
89
  _ size: inout CGSize,
@@ -13,7 +13,6 @@ import SwiftUI
13
13
  /// height through the `SwiftUISizingContext` binding.
14
14
  ///
15
15
  /// - SeeAlso: ``MeasuringViewRepresentable``
16
- @available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
17
16
  final class SwiftUIMeasurementContainer<Content: ViewType>: ViewType {
18
17
 
19
18
  // MARK: Lifecycle