mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Update lottie-ios
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// CompatibleAnimationKeypath.swift
|
||||
// Lottie_iOS
|
||||
//
|
||||
// Created by Tyler Hedrick on 3/6/19.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
#if os(iOS) || os(tvOS) || os(watchOS) || targetEnvironment(macCatalyst)
|
||||
|
||||
/// An Objective-C compatible wrapper around Lottie's AnimationKeypath
|
||||
@objc
|
||||
public final class CompatibleAnimationKeypath: NSObject {
|
||||
|
||||
// MARK: Lifecycle
|
||||
|
||||
/// Creates a keypath from a dot separated string. The string is separated by "."
|
||||
@objc
|
||||
public init(keypath: String) {
|
||||
animationKeypath = AnimationKeypath(keypath: keypath)
|
||||
}
|
||||
|
||||
/// Creates a keypath from a list of strings.
|
||||
@objc
|
||||
public init(keys: [String]) {
|
||||
animationKeypath = AnimationKeypath(keys: keys)
|
||||
}
|
||||
|
||||
// MARK: Public
|
||||
|
||||
public let animationKeypath: AnimationKeypath
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user