code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
// // KeyframeGroup.swift // lottie-swift // // Created by Brandon Withrow on 1/14/19. // // MARK: - KeyframeGroup /// Used for coding/decoding a group of Keyframes by type. /// /// Keyframe data is wrapped in a dictionary { "k" : KeyframeData }. /// The keyframe data can either be an array of keyframes or, if no ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Keyframes/KeyframeGroup.swift
Swift
unknown
8,381
// Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. final class DropShadowEffect: LayerEffect { // MARK: Lifecycle required init(from decoder: Decoder) throws { try super.init(from: decoder) } required init(dictionary: [String: Any]) throws { try super.init(di...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/LayerEffects/DropShadowEffect.swift
Swift
unknown
936
// Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. final class ColorEffectValue: EffectValue { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) value = try? container.decode(KeyframeGr...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/LayerEffects/EffectValues/ColorEffectValue.swift
Swift
unknown
1,046
// Created by Cal Stephens on 8/15/23. // Copyright © 2023 Airbnb Inc. All rights reserved. // MARK: - EffectValueType /// https://lottiefiles.github.io/lottie-docs/schema/#/$defs/effect-values enum EffectValueType: Int, Codable, Sendable { case slider = 0 case angle = 1 case color = 2 case unknown = 9999 ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/LayerEffects/EffectValues/EffectValue.swift
Swift
unknown
2,771
// Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. final class Vector1DEffectValue: EffectValue { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) value = try? container.decode(Keyfram...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/LayerEffects/EffectValues/Vector1DEffectValue.swift
Swift
unknown
1,059
// Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. // MARK: - LayerEffectType /// https://lottiefiles.github.io/lottie-docs/schema/#/$defs/effects enum LayerEffectType: Int, Codable, Sendable { case dropShadow = 25 case unknown = 9999 init(from decoder: Decoder) throws ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/LayerEffects/LayerEffect.swift
Swift
unknown
3,081
// Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. final class DropShadowStyle: LayerStyle { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: DropShadowStyle.CodingKeys.self) opacity = try container.de...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/LayerStyles/DropShadowStyle.swift
Swift
unknown
2,798
// Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. // MARK: - LayerStyleType enum LayerStyleType: Int, Codable, Sendable { case dropShadow = 1 case unknown = 9999 init(from decoder: Decoder) throws { self = try LayerStyleType(rawValue: decoder.singleValueContainer()...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/LayerStyles/LayerStyle.swift
Swift
unknown
2,335
// // ImageLayer.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // /// A layer that holds an image. final class ImageLayerModel: LayerModel { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: ImageLayerModel.CodingKeys.self) ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Layers/ImageLayerModel.swift
Swift
unknown
1,006
// // Layer.swift // lottie-swift // // Created by Brandon Withrow on 1/7/19. // // MARK: - LayerType + ClassFamily /// Used for mapping a heterogeneous list to classes for parsing. extension LayerType: ClassFamily { static var discriminator: Discriminator = .type func getType() -> AnyObject.Type { switch...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Layers/LayerModel.swift
Swift
unknown
8,083
// // PreCompLayer.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // /// A layer that holds another animation composition. final class PreCompLayerModel: LayerModel { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: PreCompL...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Layers/PreCompLayerModel.swift
Swift
unknown
2,040
// // ShapeLayer.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // /// A layer that holds vector shape objects. final class ShapeLayerModel: LayerModel { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: ShapeLayerModel.Codin...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Layers/ShapeLayerModel.swift
Swift
unknown
1,094
// // SolidLayer.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // /// A layer that holds a solid color. final class SolidLayerModel: LayerModel { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: SolidLayerModel.CodingKeys.s...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Layers/SolidLayerModel.swift
Swift
unknown
1,509
// // TextLayer.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // /// A layer that holds text. final class TextLayerModel: LayerModel { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: TextLayerModel.CodingKeys.self) let...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Layers/TextLayerModel.swift
Swift
unknown
1,884
// // DashPattern.swift // lottie-swift // // Created by Brandon Withrow on 1/22/19. // // MARK: - DashElementType enum DashElementType: String, Codable { case offset = "o" case dash = "d" case gap = "g" } // MARK: - DashElement final class DashElement: Codable, DictionaryInitializable { // MARK: Lifecy...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Objects/DashPattern.swift
Swift
unknown
928
// // Marker.swift // lottie-swift // // Created by Brandon Withrow on 1/9/19. // /// A time marker final class Marker: Codable, Sendable, DictionaryInitializable { // MARK: Lifecycle init(dictionary: [String: Any]) throws { name = try dictionary.value(for: CodingKeys.name) frameTime = try dictionary....
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Objects/Marker.swift
Swift
unknown
789
// // Mask.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - MaskMode enum MaskMode: String, Codable { case add = "a" case subtract = "s" case intersect = "i" case lighten = "l" case darken = "d" case difference = "f" case none = "n" } // MARK: - Mask final class Mask:...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Objects/Mask.swift
Swift
unknown
2,356
// // Transform.swift // lottie-swift // // Created by Brandon Withrow on 1/7/19. // /// The animatable transform for a layer. Controls position, rotation, scale, and opacity. final class Transform: Codable, DictionaryInitializable { // MARK: Lifecycle required init(from decoder: Decoder) throws { /// Thi...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Objects/Transform.swift
Swift
unknown
9,298
// // EllipseItem.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - PathDirection enum PathDirection: Int, Codable { case clockwise = 1 case userSetClockwise = 2 case counterClockwise = 3 } // MARK: - Ellipse final class Ellipse: ShapeItem { // MARK: Lifecycle required i...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Ellipse.swift
Swift
unknown
2,108
// // FillShape.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - FillRule enum FillRule: Int, Codable { case none case nonZeroWinding case evenOdd } // MARK: - Fill final class Fill: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let co...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Fill.swift
Swift
unknown
2,050
// // GradientFill.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - GradientType enum GradientType: Int, Codable, Sendable { case none case linear case radial } // MARK: - GradientFill final class GradientFill: ShapeItem { // MARK: Lifecycle required init(from decoder: ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/GradientFill.swift
Swift
unknown
5,321
// // GradientStroke.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - LineCap enum LineCap: Int, Codable, Sendable { case none case butt case round case square } // MARK: - LineJoin enum LineJoin: Int, Codable, Sendable { case none case miter case round case bevel }...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/GradientStroke.swift
Swift
unknown
8,613
// // GroupItem.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // /// An item that define a a group of shape items final class Group: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: Group.CodingKeys.self) it...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Group.swift
Swift
unknown
1,199
// // Merge.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - MergeMode enum MergeMode: Int, Codable, Sendable { case none case merge case add case subtract case intersect case exclude } // MARK: - Merge final class Merge: ShapeItem { // MARK: Lifecycle required in...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Merge.swift
Swift
unknown
1,208
// // Rectangle.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // final class Rectangle: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: Rectangle.CodingKeys.self) direction = try container.decodeIfPresent(P...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Rectangle.swift
Swift
unknown
2,385
// // Repeater.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // final class Repeater: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: Repeater.CodingKeys.self) copies = try container .decodeIfPresent(...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Repeater.swift
Swift
unknown
7,319
// // RoundedCorners.swift // Lottie // // Created by Duolingo on 10/31/22. // // MARK: - RoundedCorners final class RoundedCorners: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: RoundedCorners.CodingKeys.self) radius = try...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/RoundedCorners.swift
Swift
unknown
1,120
// // VectorShape.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // /// An item that defines an custom shape final class Shape: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: Shape.CodingKeys.self) path = t...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Shape.swift
Swift
unknown
1,491
// // ShapeItem.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - ShapeType enum ShapeType: String, Codable, Sendable { case ellipse = "el" case fill = "fl" case gradientFill = "gf" case group = "gr" case gradientStroke = "gs" case merge = "mm" case rectangle = "rc" ca...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/ShapeItem.swift
Swift
unknown
4,438
// // TransformItem.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // final class ShapeTransform: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: ShapeTransform.CodingKeys.self) anchor = try container ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/ShapeTransform.swift
Swift
unknown
6,430
// // Star.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - StarType enum StarType: Int, Codable, Sendable { case none case star case polygon } // MARK: - Star final class Star: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let contain...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Star.swift
Swift
unknown
4,925
// // Stroke.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // final class Stroke: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: Stroke.CodingKeys.self) opacity = try container.decode(KeyframeGroup<LottieV...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Stroke.swift
Swift
unknown
4,332
// // Trim.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // // MARK: - TrimType enum TrimType: Int, Codable { case simultaneously = 1 case individually = 2 } // MARK: - Trim final class Trim: ShapeItem { // MARK: Lifecycle required init(from decoder: Decoder) throws { let contai...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/ShapeItems/Trim.swift
Swift
unknown
2,580
// // Font.swift // lottie-swift // // Created by Brandon Withrow on 1/9/19. // // MARK: - Font final class Font: Codable, Sendable, DictionaryInitializable { // MARK: Lifecycle init(dictionary: [String: Any]) throws { name = try dictionary.value(for: CodingKeys.name) familyName = try dictionary.valu...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Text/Font.swift
Swift
unknown
1,194
// // Glyph.swift // lottie-swift // // Created by Brandon Withrow on 1/9/19. // /// A model that holds a vector character final class Glyph: Codable, Sendable, DictionaryInitializable { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: Glyph.C...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Text/Glyph.swift
Swift
unknown
2,894
// // TextAnimator.swift // lottie-swift // // Created by Brandon Withrow on 1/9/19. // final class TextAnimator: Codable, DictionaryInitializable { // MARK: Lifecycle required init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: TextAnimator.CodingKeys.self) name = try ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Text/TextAnimator.swift
Swift
unknown
7,605
// // TextDocument.swift // lottie-swift // // Created by Brandon Withrow on 1/9/19. // // MARK: - TextJustification enum TextJustification: Int, Codable { case left case right case center } // MARK: - TextDocument final class TextDocument: Codable, DictionaryInitializable, AnyInitializable { // MARK: L...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Text/TextDocument.swift
Swift
unknown
3,220
// Created by Cal Stephens on 12/13/21. // Copyright © 2021 Airbnb Inc. All rights reserved. import QuartzCore // MARK: - RootAnimationLayer /// A root `CALayer` responsible for playing a Lottie animation protocol RootAnimationLayer: CALayer { var lottieAnimationLayer: LottieAnimationLayer? { get set } var curr...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/RootAnimationLayer.swift
Swift
unknown
2,061
// // AnimatorNodeDebugging.swift // lottie-swift // // Created by Brandon Withrow on 1/18/19. // extension AnimatorNode { func printNodeTree() { parentNode?.printNodeTree() LottieLogger.shared.info(String(describing: type(of: self))) if let group = self as? GroupNode { LottieLogger.shared.inf...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Debugging/AnimatorNodeDebugging.swift
Swift
unknown
473
// // LayerDebugging.swift // lottie-swift // // Created by Brandon Withrow on 1/24/19. // import QuartzCore // MARK: - LayerDebugStyle struct LayerDebugStyle { let anchorColor: CGColor let boundsColor: CGColor let anchorWidth: CGFloat let boundsWidth: CGFloat } // MARK: - LayerDebugging protocol LayerD...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Debugging/LayerDebugging.swift
Swift
unknown
4,982
// Created by Cal Stephens on 1/28/22. // Copyright © 2022 Airbnb Inc. All rights reserved. enum TestHelpers { /// Whether or not snapshot tests are currently running in a test target static var snapshotTestsAreRunning = false /// Whether or not performance tests are currently running in a test target static ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Debugging/TestHelpers.swift
Swift
unknown
362
// // KeypathSearchableExtension.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // import QuartzCore extension KeypathSearchable { func animatorNodes(for keyPath: AnimationKeypath) -> [AnimatorNode]? { // Make sure there is a current key path. guard let currentKey = keyPath.currentKey...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Extensions/AnimationKeypathExtension.swift
Swift
unknown
7,901
// // File.swift // // // Created by Denis Koryttsev on 10.05.2022. // extension BlendMode { /// The Core Image filter name for this `BlendMode`, that can be applied to a `CALayer`'s `compositingFilter`. /// Supported compositing filters are defined here: https://developer.apple.com/library/archive/documentation...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Extensions/BlendMode+Filter.swift
Swift
unknown
1,207
// Created by Cal Stephens on 1/7/22. // Copyright © 2022 Airbnb Inc. All rights reserved. import QuartzCore extension CGColor { /// Initializes a `CGColor` using the given `RGB` values static func rgb(_ red: CGFloat, _ green: CGFloat, _ blue: CGFloat) -> CGColor { rgba(red, green, blue, 1.0) } /// Initi...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Extensions/CGColor+RGB.swift
Swift
unknown
804
// // CGFloatExtensions.swift // lottie-swift // // Created by Brandon Withrow on 1/14/19. // import Foundation import QuartzCore extension CGFloat { // MARK: Internal var squared: CGFloat { self * self } var cubed: CGFloat { self * self * self } var cubicRoot: CGFloat { CGFloat(pow(Dou...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Extensions/CGFloatExtensions.swift
Swift
unknown
3,571
// // DataExtension.swift // Lottie // // Created by René Fouquet on 03.05.21. // #if canImport(UIKit) import UIKit #elseif canImport(AppKit) import AppKit #endif extension Data { init(assetName: String, in bundle: Bundle) throws { #if canImport(UIKit) if let asset = NSDataAsset(name: assetName, bundle:...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Extensions/DataExtension.swift
Swift
unknown
793
// // MathKit.swift // UIToolBox // // Created by Brandon Withrow on 10/10/18. // // From https://github.com/buba447/UIToolBox import CoreGraphics import Foundation extension Int { var cgFloat: CGFloat { CGFloat(self) } } extension Double { var cgFloat: CGFloat { CGFloat(self) } } // MARK: - CGFl...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Extensions/MathKit.swift
Swift
unknown
11,910
// // StringExtensions.swift // lottie-swift // // Created by Brandon Withrow on 1/25/19. // import CoreGraphics import Foundation extension String { var cgColor: CGColor { let (red, green, blue) = hexColorComponents() return .rgb(red, green, blue) } var lottieColor: LottieColor { let (red, gre...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Extensions/StringExtensions.swift
Swift
unknown
1,007
// // AnimationContext.swift // lottie-swift // // Created by Brandon Withrow on 2/1/19. // import Foundation import QuartzCore /// A completion block for animations. /// - `true` is passed in if the animation completed playing. /// - `false` is passed in if the animation was interrupted and did not complete pla...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Helpers/AnimationContext.swift
Swift
unknown
2,417
// Created by miguel_jimenez on 8/2/23. // Copyright © 2023 Airbnb Inc. All rights reserved. // MARK: - AnyEquatable struct AnyEquatable { private let value: Any private let equals: (Any) -> Bool init<T: Equatable>(_ value: T) { self.value = value equals = { $0 as? T == value } } } // MARK: Equatabl...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Helpers/AnyEquatable.swift
Swift
unknown
457
// Created by miguel_jimenez on 7/27/23. // Copyright © 2023 Airbnb Inc. All rights reserved. #if canImport(SwiftUI) import SwiftUI @available(iOS 13.0, tvOS 13.0, macOS 10.15, *) extension Binding { /// Helper to transform a `Binding` from one `Value` type to another. func map<Transformed>(transform: @escaping ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Helpers/Binding+Map.swift
Swift
unknown
554
// Created by miguel_jimenez on 7/26/23. // Copyright © 2023 Airbnb Inc. All rights reserved. #if canImport(Combine) && canImport(SwiftUI) import Combine import SwiftUI @available(iOS 13.0, tvOS 13.0, macOS 10.15, *) extension View { /// A backwards compatible wrapper for iOS 14 `onChange` @ViewBuilder func val...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Helpers/View+ValueChanged.swift
Swift
unknown
613
// // InterpolatableExtensions.swift // lottie-swift // // Created by Brandon Withrow on 1/14/19. // import CoreGraphics import Foundation extension LottieColor { // MARK: Lifecycle /// Initialize a new color with Hue Saturation and Value init(h: Double, s: Double, v: Double, a: Double) { let i = floor...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Interpolatable/InterpolatableExtensions.swift
Swift
unknown
2,997
// // KeyframeExtensions.swift // lottie-swift // // Created by Brandon Withrow on 1/14/19. // import CoreGraphics import Foundation extension Keyframe where T: AnyInterpolatable { func interpolate(to: Keyframe<T>, progress: CGFloat) -> T { value._interpolate( to: to.value, amount: progress, ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Interpolatable/KeyframeExtensions.swift
Swift
unknown
1,237
// // KeyframeInterpolator.swift // lottie-swift // // Created by Brandon Withrow on 1/15/19. // import CoreGraphics import Foundation // MARK: - KeyframeInterpolator /// A value provider that produces a value at Time from a group of keyframes final class KeyframeInterpolator<ValueType>: ValueProvider where Value...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Interpolatable/KeyframeInterpolator.swift
Swift
unknown
6,826
// Created by Cal Stephens on 7/26/23. // Copyright © 2023 Airbnb Inc. All rights reserved. // MARK: - LottieAnimationSource /// A data source for a Lottie animation. /// Either a `LottieAnimation` loaded from a `.json` file, /// or a `DotLottieFile` loaded from a `.lottie` file. public enum LottieAnimationSource: Se...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/LottieAnimationSource.swift
Swift
unknown
1,438
// // Shape.swift // lottie-swift // // Created by Brandon Withrow on 1/8/19. // import CoreGraphics // MARK: - BezierPath /// A container that holds instructions for creating a single, unbroken Bezier Path. struct BezierPath { // MARK: Lifecycle /// Initializes a new Bezier Path. init(startPoint: CurveVe...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/BezierPath.swift
Swift
unknown
15,973
// // BezierPathRoundExtension.swift // Lottie // // Created by Duolingo on 11/1/22. // import CoreGraphics import Foundation // Adapted to Swift from lottie-web & lottie-android: // Rounded corner algorithm: // Iterate through each vertex. // If a vertex is a sharp corner, it rounds it. // If a ve...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/BezierPathRoundExtension.swift
Swift
unknown
5,163
// // CGPointExtension.swift // Lottie // // Created by Marcelo Fabri on 5/5/22. // import CoreGraphics extension CGPoint: AnyInitializable { // MARK: Lifecycle init(value: Any) throws { if let dictionary = value as? [String: CGFloat] { let x: CGFloat = try dictionary.value(for: CodingKeys.x) ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/CGPointExtension.swift
Swift
unknown
683
// // LottieColor.swift // lottie-swift // // Created by Brandon Withrow on 1/14/19. // import CoreGraphics // MARK: - LottieColor + Codable extension LottieColor: Codable { // MARK: Lifecycle public init(from decoder: Decoder) throws { var container = try decoder.unkeyedContainer() var r1: Double ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/ColorExtension.swift
Swift
unknown
2,182
// // CompoundBezierPath.swift // lottie-swift // // Created by Brandon Withrow on 1/14/19. // import CoreGraphics import Foundation /// A collection of BezierPath objects that can be trimmed and added. /// struct CompoundBezierPath { // MARK: Lifecycle init() { paths = [] length = 0 } init(path...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/CompoundBezierPath.swift
Swift
unknown
4,316
// // CurveVertex.swift // lottie-swift // // Created by Brandon Withrow on 1/11/19. // import CoreGraphics import Foundation /// A single vertex with an in and out tangent struct CurveVertex { // MARK: Lifecycle /// Initializes a curve point with absolute values init(_ inTangent: CGPoint, _ point: CGPoint...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/CurveVertex.swift
Swift
unknown
6,785
// // PathElement.swift // lottie-swift // // Created by Brandon Withrow on 1/11/19. // import CoreGraphics import Foundation /// A path section, containing one point and its length to the previous point. /// /// The relationship between this path element and the previous is implicit. /// Ideally a path section wo...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/PathElement.swift
Swift
unknown
2,475
// Copyright (C) 2008 Apple Inc. All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/UnitBezier.swift
Swift
unknown
3,830
// // Vector.swift // lottie-swift // // Created by Brandon Withrow on 1/7/19. // import CoreGraphics import Foundation import QuartzCore // MARK: - LottieVector1D + Codable /// Single value container. Needed because lottie sometimes wraps a Double in an array. extension LottieVector1D: Codable { // MARK: Life...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Utility/Primitives/VectorsExtensions.swift
Swift
unknown
7,646
// // LottieAnimation.swift // lottie-swift // // Created by Brandon Withrow on 1/7/19. // import Foundation // MARK: - CoordinateSpace public enum CoordinateSpace: Int, Codable, Sendable { case type2d case type3d } // MARK: - LottieAnimation /// The `LottieAnimation` model is the top level model object in ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Animation/LottieAnimation.swift
Swift
unknown
5,671
// // AnimationPublic.swift // lottie-swift // // Created by Brandon Withrow on 2/5/19. // import CoreGraphics import Foundation extension LottieAnimation { /// A closure for an Animation download. The closure is passed `nil` if there was an error. public typealias DownloadClosure = (LottieAnimation?) -> Void...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Animation/LottieAnimationHelpers.swift
Swift
unknown
11,624
// // LottieAnimationLayer.swift // Lottie // import QuartzCore // MARK: - LottieAnimationLayer /// A CALayer subclass for rendering Lottie animations. /// - Also available as a SwiftUI view (`LottieView`) and a UIView subclass (`LottieAnimationView`) public class LottieAnimationLayer: CALayer { // MARK: Lifec...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Animation/LottieAnimationLayer.swift
Swift
unknown
56,791
// // LottieAnimationView.swift // lottie-swift // // Created by Brandon Withrow on 1/23/19. // import QuartzCore // MARK: - LottieBackgroundBehavior /// Describes the behavior of an AnimationView when the app is moved to the background. public enum LottieBackgroundBehavior { /// Stop the animation and reset it...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Animation/LottieAnimationView.swift
Swift
unknown
42,459
// // AnimationViewInitializers.swift // lottie-swift-iOS // // Created by Brandon Withrow on 2/6/19. // import Foundation extension LottieAnimationView { // MARK: Lifecycle /// Loads a Lottie animation from a JSON file in the supplied bundle. /// /// - Parameter name: The string name of the lottie anima...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Animation/LottieAnimationViewInitializers.swift
Swift
unknown
9,601
// Created by Cal Stephens on 8/3/23. // Copyright © 2023 Airbnb Inc. All rights reserved. import Foundation // MARK: - LottiePlaybackMode /// Configuration for how a Lottie animation should be played public enum LottiePlaybackMode: Hashable { /// The animation is paused at the given state (e.g. paused at a speci...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Animation/LottiePlaybackMode.swift
Swift
unknown
11,188
// Created by Bryn Bodayle on 1/20/22. // Copyright © 2022 Airbnb Inc. All rights reserved. #if canImport(SwiftUI) import SwiftUI // MARK: - LottieView /// A wrapper which exposes Lottie's `LottieAnimationView` to SwiftUI @available(iOS 13.0, tvOS 13.0, macOS 10.15, *) public struct LottieView<Placeholder: View>: UI...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Animation/LottieView.swift
Swift
unknown
23,684
// // AnimationCacheProvider.swift // lottie-swift // // Created by Brandon Withrow on 2/5/19. // /// `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 ani...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/AnimationCache/AnimationCacheProvider.swift
Swift
unknown
608
// // DefaultAnimationCache.swift // Lottie // // Created by Marcelo Fabri on 10/18/22. // import Foundation // MARK: - DefaultAnimationCache /// A thread-safe Animation Cache that will store animations up to `cacheSize`. /// /// Once `cacheSize` is reached, animations can be ejected. /// The default size of the ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/AnimationCache/DefaultAnimationCache.swift
Swift
unknown
1,837
// // LRUAnimationCache.swift // lottie-swift // // Created by Brandon Withrow on 2/5/19. // @available(*, deprecated, message: """ Use DefaultAnimationCache instead, which is thread-safe and automatically responds to memory pressure. """) public typealias LRUAnimationCache = DefaultAnimationCache
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/AnimationCache/LRUAnimationCache.swift
Swift
unknown
307
// // LottieAnimationCache.swift // Lottie // // Created by Marcelo Fabri on 10/17/22. // /// A customization point to configure which `AnimationCacheProvider` will be used. public enum LottieAnimationCache { /// The animation cache that will be used when loading `LottieAnimation` models. /// Using an Animatio...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/AnimationCache/LottieAnimationCache.swift
Swift
unknown
538
// Created by Cal Stephens on 7/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. /// How animation files should be decoded public enum DecodingStrategy: Hashable { /// Use Codable. This is was the default strategy introduced on Lottie 3, but should be rarely /// used as it's slower than `dictionaryBased...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Configuration/DecodingStrategy.swift
Swift
unknown
653
// Created by Cal Stephens on 12/13/21. // Copyright © 2021 Airbnb Inc. All rights reserved. import QuartzCore /// Global configuration options for Lottie animations public struct LottieConfiguration: Hashable { // MARK: Lifecycle public init( renderingEngine: RenderingEngineOption = .automatic, decodin...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Configuration/LottieConfiguration.swift
Swift
unknown
1,898
// Created by Cal Stephens on 7/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. #if canImport(UIKit) import UIKit #elseif canImport(AppKit) import AppKit #endif // MARK: - ReducedMotionOption /// Options for controlling animation behavior in response to user / system "reduced motion" configuration public...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Configuration/ReducedMotionOption.swift
Swift
unknown
4,191
// Created by Cal Stephens on 7/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. // MARK: - RenderingEngineOption public enum RenderingEngineOption: Hashable { /// Uses the Core Animation engine for supported animations, and falls back to using /// the Main Thread engine for animations that use feature...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Configuration/RenderingEngineOption.swift
Swift
unknown
3,356
// // AnimatedButton.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // #if canImport(UIKit) import UIKit #elseif canImport(AppKit) import AppKit #endif // MARK: - AnimatedButton /// An interactive button that plays an animation when pressed. open class AnimatedButton: AnimatedControl { // MA...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Controls/AnimatedButton.swift
Swift
unknown
3,480
// // AnimatedControl.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // #if canImport(UIKit) import UIKit #elseif canImport(AppKit) import AppKit #endif // MARK: - AnimatedControl /// Lottie comes prepacked with a two Animated Controls, `AnimatedSwitch` and /// `AnimatedButton`. Both of these c...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Controls/AnimatedControl.swift
Swift
unknown
6,636
// // AnimatedSwitch.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // #if canImport(UIKit) import UIKit #elseif canImport(AppKit) import AppKit #endif // MARK: - AnimatedSwitch /// An interactive switch with an 'On' and 'Off' state. When the user taps on the /// switch the state is toggled and...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Controls/AnimatedSwitch.swift
Swift
unknown
7,495
// Created by Cal Stephens on 8/14/23. // Copyright © 2023 Airbnb Inc. All rights reserved. #if canImport(SwiftUI) import SwiftUI /// A wrapper which exposes Lottie's `AnimatedButton` to SwiftUI @available(iOS 13.0, tvOS 13.0, macOS 10.15, *) public struct LottieButton: UIViewConfiguringSwiftUIView { // MARK: Life...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Controls/LottieButton.swift
Swift
unknown
4,154
// Created by Cal Stephens on 8/11/23. // Copyright © 2023 Airbnb Inc. All rights reserved. #if canImport(SwiftUI) import SwiftUI /// A wrapper which exposes Lottie's `AnimatedSwitch` to SwiftUI @available(iOS 13.0, tvOS 13.0, macOS 10.15, *) public struct LottieSwitch: UIViewConfiguringSwiftUIView { // MARK: Life...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Controls/LottieSwitch.swift
Swift
unknown
4,868
// Created by Cal Stephens on 8/11/23. // Copyright © 2023 Airbnb Inc. All rights reserved. #if canImport(UIKit) import UIKit /// The control base type for this platform. /// - `UIControl` on iOS / tvOS and `NSControl` on macOS. public typealias LottieControlType = UIControl /// The `State` type of `LottieControlTy...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/Controls/LottieViewType.swift
Swift
unknown
2,606
// // LRUDotLottieCache.swift // Lottie // // Created by Evandro Hoffmann on 20/10/22. // import Foundation // MARK: - DotLottieCache /// A DotLottie Cache that will store lottie files up to `cacheSize`. /// /// Once `cacheSize` is reached, the least recently used lottie will be ejected. /// The default size of t...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DotLottie/Cache/DotLottieCache.swift
Swift
unknown
1,684
// // DotLottieCacheProvider.swift // Lottie // // Created by Evandro Hoffmann on 20/10/22. // /// `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 mult...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DotLottie/Cache/DotLottieCacheProvider.swift
Swift
unknown
569
// // DotLottieConfiguration.swift // Lottie // // Created by Evandro Hoffmann on 19/10/22. // // MARK: - DotLottieConfiguration /// The `DotLottieConfiguration` model holds the presets extracted from DotLottieAnimation /// - The presets are used as input to setup `LottieAnimationView` before playing the animation. ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DotLottie/DotLottieConfiguration.swift
Swift
unknown
2,499
// // DotLottie.swift // Lottie // // Created by Evandro Harrison Hoffmann on 27/06/2020. // import Foundation // MARK: - DotLottieFile /// Detailed .lottie file structure public final class DotLottieFile { // MARK: Lifecycle /// Loads `DotLottie` from `Data` object containing a compressed animation. /// /...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DotLottie/DotLottieFile.swift
Swift
unknown
5,098
// // DotLottieFileHelpers.swift // Lottie // // Created by Evandro Hoffmann on 20/10/22. // import Foundation extension DotLottieFile { public enum SynchronouslyBlockingCurrentThread { /// Loads an DotLottie from a specific filepath synchronously. Returns a `Result<DotLottieFile, Error>` /// Please use...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DotLottie/DotLottieFileHelpers.swift
Swift
unknown
15,334
// // AnimationKeypath.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // /// `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` ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DynamicProperties/AnimationKeypath.swift
Swift
unknown
1,808
// // AnyValueProvider.swift // lottie-swift // // Created by Brandon Withrow on 1/30/19. // import Foundation // MARK: - AnyValueProvider /// `AnyValueProvider` is a protocol that return animation data for a property at a /// given time. Every frame a `LottieAnimationView` queries all of its properties and asks ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DynamicProperties/AnyValueProvider.swift
Swift
unknown
4,004
// // ColorValueProvider.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // import CoreGraphics import Foundation // MARK: - ColorValueProvider /// A `ValueProvider` that returns a CGColor Value public final class ColorValueProvider: ValueProvider { // MARK: Lifecycle /// Initializes with ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DynamicProperties/ValueProviders/ColorValueProvider.swift
Swift
unknown
2,119
// // DoubleValueProvider.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // import CoreGraphics import Foundation // MARK: - FloatValueProvider /// A `ValueProvider` that returns a CGFloat Value public final class FloatValueProvider: ValueProvider { // MARK: Lifecycle /// Initializes with...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DynamicProperties/ValueProviders/FloatValueProvider.swift
Swift
unknown
1,672
// // GradientValueProvider.swift // lottie-swift // // Created by Enrique Bermúdez on 10/27/19. // import CoreGraphics import Foundation // MARK: - GradientValueProvider /// A `ValueProvider` that returns a Gradient Color Value. public final class GradientValueProvider: ValueProvider { // MARK: Lifecycle /...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DynamicProperties/ValueProviders/GradientValueProvider.swift
Swift
unknown
3,280
// // PointValueProvider.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // import CoreGraphics import Foundation // MARK: - PointValueProvider /// A `ValueProvider` that returns a CGPoint Value public final class PointValueProvider: ValueProvider { // MARK: Lifecycle /// Initializes with ...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DynamicProperties/ValueProviders/PointValueProvider.swift
Swift
unknown
1,662
// // SizeValueProvider.swift // lottie-swift // // Created by Brandon Withrow on 2/4/19. // import CoreGraphics import Foundation // MARK: - SizeValueProvider /// A `ValueProvider` that returns a CGSize Value public final class SizeValueProvider: ValueProvider { // MARK: Lifecycle /// Initializes with a bl...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/DynamicProperties/ValueProviders/SizeValueProvider.swift
Swift
unknown
1,648
// // AnimationFontProvider.swift // Lottie // // Created by Brandon Withrow on 8/5/20. // Copyright © 2020 YurtvilleProds. All rights reserved. // import CoreText // MARK: - AnimationFontProvider /// Font provider is a protocol that is used to supply fonts to `LottieAnimationView`. /// public protocol Animation...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/FontProvider/AnimationFontProvider.swift
Swift
unknown
871
// // LottieImageProvider.swift // lottie-swift // // Created by Brandon Withrow on 1/25/19. // import QuartzCore // MARK: - AnimationImageProvider /// Image provider is a protocol that is used to supply images to `LottieAnimationView`. /// /// Some animations require a reference to an image. The image provider l...
2201_75827989/zhi_shi_ku
uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Public/ImageProvider/AnimationImageProvider.swift
Swift
unknown
1,511