-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from mbender74/master
MacCatalyst Support and change to XCFramework
- Loading branch information
Showing
63 changed files
with
2,700 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>Lottie.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64</string> | ||
<key>LibraryPath</key> | ||
<string>Lottie.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-maccatalyst</string> | ||
<key>LibraryPath</key> | ||
<string>Lottie.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>maccatalyst</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+750 Bytes
ios/platform/Lottie.xcframework/ios-arm64/Lottie.framework/Info.plist
Binary file not shown.
Binary file not shown.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
ios/platform/Lottie.xcframework/ios-arm64_x86_64-maccatalyst/Lottie.framework/Headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
1 change: 1 addition & 0 deletions
1
ios/platform/Lottie.xcframework/ios-arm64_x86_64-maccatalyst/Lottie.framework/Lottie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Lottie |
1 change: 1 addition & 0 deletions
1
ios/platform/Lottie.xcframework/ios-arm64_x86_64-maccatalyst/Lottie.framework/Modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Modules |
1 change: 1 addition & 0 deletions
1
ios/platform/Lottie.xcframework/ios-arm64_x86_64-maccatalyst/Lottie.framework/Resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Resources |
28 changes: 28 additions & 0 deletions
28
...ork/ios-arm64_x86_64-maccatalyst/Lottie.framework/Versions/A/Headers/LOTAnimatedControl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// LOTAnimatedControl.h | ||
// Lottie | ||
// | ||
// Created by brandon_withrow on 8/25/17. | ||
// Copyright © 2017 Airbnb. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@class LOTAnimationView; | ||
@class LOTComposition; | ||
|
||
@interface LOTAnimatedControl : UIControl | ||
|
||
// This class is a base class that is intended to be subclassed | ||
|
||
/** | ||
* Map a specific animation layer to a control state. | ||
* When the state is set all layers will be hidden except the specified layer. | ||
**/ | ||
|
||
- (void)setLayerName:(NSString * _Nonnull)layerName forState:(UIControlState)state; | ||
|
||
@property (nonatomic, strong, readonly, nonnull) LOTAnimationView *animationView; | ||
@property (nonatomic, strong, nullable) LOTComposition *animationComp; | ||
|
||
@end |
53 changes: 53 additions & 0 deletions
53
...work/ios-arm64_x86_64-maccatalyst/Lottie.framework/Versions/A/Headers/LOTAnimatedSwitch.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// | ||
// LOTAnimatedSwitch.h | ||
// Lottie | ||
// | ||
// Created by brandon_withrow on 8/25/17. | ||
// Copyright © 2017 Airbnb. All rights reserved. | ||
// | ||
|
||
#import "LOTAnimatedControl.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface LOTAnimatedSwitch : LOTAnimatedControl | ||
|
||
/// Convenience method to initialize a control from the Main Bundle by name | ||
+ (instancetype _Nonnull)switchNamed:(NSString * _Nonnull)toggleName; | ||
|
||
/// Convenience method to initialize a control from the specified bundle by name | ||
+ (instancetype _Nonnull)switchNamed:(NSString * _Nonnull)toggleName inBundle:(NSBundle * _Nonnull)bundle; | ||
|
||
|
||
/// The ON/OFF state of the control. Setting will toggle without animation | ||
@property (nonatomic, getter=isOn) BOOL on; | ||
|
||
/// Enable interactive sliding gesture for toggle | ||
@property (nonatomic) BOOL interactiveGesture; | ||
|
||
/// Set the state of the control with animation | ||
- (void)setOn:(BOOL)on animated:(BOOL)animated; // does not send action | ||
|
||
/// Styling | ||
|
||
/** | ||
* Sets the animation play range for the ON state animation. | ||
* fromProgress is the start of the animation | ||
* toProgress is the end of the animation and also the ON static state | ||
* Defaults 0-1 | ||
**/ | ||
- (void)setProgressRangeForOnState:(CGFloat)fromProgress | ||
toProgress:(CGFloat)toProgress NS_SWIFT_NAME(setProgressRangeForOnState(fromProgress:toProgress:)); | ||
|
||
/** | ||
* Sets the animation play range for the OFF state animation. | ||
* fromProgress is the start of the animation | ||
* toProgress is the end of the animation and also the OFF static state | ||
* Defaults 1-0 | ||
**/ | ||
- (void)setProgressRangeForOffState:(CGFloat)fromProgress | ||
toProgress:(CGFloat)toProgress NS_SWIFT_NAME(setProgressRangeForOffState(fromProgress:toProgress:)); | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
37 changes: 37 additions & 0 deletions
37
...work/ios-arm64_x86_64-maccatalyst/Lottie.framework/Versions/A/Headers/LOTAnimationCache.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// LOTAnimationCache.h | ||
// Lottie | ||
// | ||
// Created by Brandon Withrow on 1/9/17. | ||
// Copyright © 2017 Brandon Withrow. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class LOTComposition; | ||
|
||
@interface LOTAnimationCache : NSObject | ||
|
||
/// Global Cache | ||
+ (instancetype)sharedCache; | ||
|
||
/// Adds animation to the cache | ||
- (void)addAnimation:(LOTComposition *)animation forKey:(NSString *)key; | ||
|
||
/// Returns animation from cache. | ||
- (LOTComposition * _Nullable)animationForKey:(NSString *)key; | ||
|
||
/// Removes a specific animation from the cache | ||
- (void)removeAnimationForKey:(NSString *)key; | ||
|
||
/// Clears Everything from the Cache | ||
- (void)clearCache; | ||
|
||
/// Disables Caching Animation Model Objects | ||
- (void)disableCaching; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
73 changes: 73 additions & 0 deletions
73
...x86_64-maccatalyst/Lottie.framework/Versions/A/Headers/LOTAnimationTransitionController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// | ||
// LOTAnimationTransitionController.h | ||
// Lottie | ||
// | ||
// Created by Brandon Withrow on 1/18/17. | ||
// Copyright © 2017 Brandon Withrow. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <Foundation/Foundation.h> | ||
|
||
/** LOTAnimationTransitionController | ||
* | ||
* This class creates a custom UIViewController transition animation | ||
* using a Lottie animation to transition between two view controllers | ||
* The transition can use custom defined layers in After Effects for to/from | ||
* | ||
* When referencing After Effects layers the animator masks or transforms the to/from viewController | ||
* with the referenced layer. | ||
* | ||
*/ | ||
|
||
@interface LOTAnimationTransitionController : NSObject <UIViewControllerAnimatedTransitioning> | ||
|
||
/** | ||
The initializer to create a new transition animation. | ||
@param animation The name of the Lottie Animation to load for the transition | ||
@param fromLayer The name of the custom layer to mask the fromVC screenshot with. | ||
If no layer is specified then the screenshot is added behind the Lottie Animation | ||
@param toLayer The name of the custom layer to mask the toVC screenshot with. | ||
If no layer is specified then the screenshot is added behind the Lottie Animation | ||
and a fade transition is performed along with the Lottie animation. | ||
@param applyAnimationTransform A boolean that determines if the custom layer should | ||
have the transform animation from the After Effects layer applied to it. If NO the | ||
layer will be masked by the After Effects Layer | ||
*/ | ||
- (nonnull instancetype)initWithAnimationNamed:(nonnull NSString *)animation | ||
fromLayerNamed:(nullable NSString *)fromLayer | ||
toLayerNamed:(nullable NSString *)toLayer | ||
applyAnimationTransform:(BOOL)applyAnimationTransform; | ||
|
||
/** | ||
The initializer to create a new transition animation. | ||
@param animation The name of the Lottie Animation to load for the transition | ||
@param fromLayer The name of the custom layer to mask the fromVC screenshot with. | ||
If no layer is specified then the screenshot is added behind the Lottie Animation | ||
@param toLayer The name of the custom layer to mask the toVC screenshot with. | ||
If no layer is specified then the screenshot is added behind the Lottie Animation | ||
and a fade transition is performed along with the Lottie animation. | ||
@param applyAnimationTransform A boolean that determines if the custom layer should | ||
have the transform animation from the After Effects layer applied to it. If NO the | ||
layer will be masked by the After Effects Layer | ||
@param bundle custom bundle to load animation and images, if no bundle is specified will load | ||
from mainBundle | ||
*/ | ||
- (instancetype _Nonnull)initWithAnimationNamed:(NSString *_Nonnull)animation | ||
fromLayerNamed:(NSString *_Nullable)fromLayer | ||
toLayerNamed:(NSString *_Nullable)toLayer | ||
applyAnimationTransform:(BOOL)applyAnimationTransform | ||
inBundle:(NSBundle *_Nonnull)bundle; | ||
|
||
@end | ||
|
Oops, something went wrong.