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 |
|---|---|---|---|---|---|
// Created by eric_horacek on 10/8/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI) && !os(macOS)
import SwiftUI
// MARK: - EpoxySwiftUIUIHostingController
/// A `UIHostingController` that hosts SwiftUI views within an Epoxy container, e.g. an Epoxy
/// `CollectionView`.
///
/// Expose... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUIHostingController.swift | Swift | unknown | 1,875 |
// Created by eric_horacek on 9/16/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
#if canImport(Combine) && canImport(SwiftUI) && !os(macOS)
import Combine
import SwiftUI
// MARK: - SwiftUIHostingViewReuseBehavior
/// The reuse behavior of an `EpoxySwiftUIHostingView`.
enum SwiftUIHostingViewReuseBehavior:... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift | Swift | unknown | 14,749 |
// Created by matthew_cheok on 11/19/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - EpoxyIntrinsicContentSizeInvalidator
/// Allows the SwiftUI view contained in an Epoxy model to request the invalidation of
/// the container's intrinsic content size.
///
//... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUIIntrinsicContentSizeInvalidator.swift | Swift | unknown | 1,325 |
// Created by eric_horacek on 10/8/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - View
@available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
extension View {
/// Applies the layout margins from the parent `EpoxySwiftUIHostingView` to this `View`, if there
/// ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxySwiftUILayoutMargins.swift | Swift | unknown | 1,589 |
// Created by eric_horacek on 9/13/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - StyledView
@available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
extension StyledView where Self: ContentConfigurableView & BehaviorsConfigurableView {
/// Returns a SwiftUI `View`... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/EpoxyableView+SwiftUIView.swift | Swift | unknown | 5,161 |
// Created by eric_horacek on 6/22/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - MeasuringViewRepresentable
/// A `UIViewRepresentable` that uses a `SwiftUIMeasurementContainer` wrapping its represented
/// `UIView` to report its size that fits a proposed s... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/LayoutUtilities/MeasuringViewRepresentable.swift | Swift | unknown | 4,037 |
// Created by Bryn Bodayle on 1/24/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - SwiftUIMeasurementContainer
/// A view that has an `intrinsicContentSize` of the `uiView`'s `systemLayoutSizeFitting(…)` and
/// supports double layout pass sizing and content ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/LayoutUtilities/SwiftUIMeasurementContainer.swift | Swift | unknown | 17,490 |
// Created by eric_horacek on 9/8/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - SwiftUIView
/// A `UIViewRepresentable` SwiftUI `View` that wraps its `Content` `UIView` within a
/// `SwiftUIMeasurementContainer`, used to size a UIKit view correctly within a... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/SwiftUIView.swift | Swift | unknown | 4,827 |
// Created by eric_horacek on 3/3/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - ViewTypeProtocol + swiftUIView
@available(iOS 13.0, tvOS 13.0, macOS 10.15, *)
extension ViewTypeProtocol {
/// Returns a SwiftUI `View` representing this `UIView`, constructe... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/UIView+SwiftUIView.swift | Swift | unknown | 1,296 |
// Created by eric_horacek on 3/4/22.
// Copyright © 2022 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
// MARK: - UIViewConfiguringSwiftUIView
/// A protocol describing a SwiftUI `View` that can configure its `UIView` content via an array of
/// `configuration` closures.
@available(iOS 13.0... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/SwiftUI/UIViewConfiguringSwiftUIView.swift | Swift | unknown | 1,731 |
// Created by Tyler Hedrick on 5/26/20.
// Copyright © 2020 Airbnb Inc. All rights reserved.
// MARK: - BehaviorsConfigurableView
/// A view that can be configured with a `Behaviors` instance that contains the view's non-
/// `Equatable` properties that can be updated on view instances after initialization, e.g. call... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Views/BehaviorsConfigurableView.swift | Swift | unknown | 1,760 |
// Created by Laura Skelton on 5/30/17.
// Copyright © 2017 Airbnb. All rights reserved.
// MARK: - ContentConfigurableView
/// A view that can be configured with a `Content` instance that contains the view's `Equatable`
/// properties that can be updated on existing view instances, e.g. text `String`s or image `UR... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Views/ContentConfigurableView.swift | Swift | unknown | 1,516 |
// Created by eric_horacek on 1/13/21.
// Copyright © 2021 Airbnb Inc. All rights reserved.
/// A `UIView` that can be declaratively configured via a concrete `EpoxyableModel` instance.
typealias EpoxyableView = BehaviorsConfigurableView & ContentConfigurableView & StyledView
| 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Views/EpoxyableView.swift | Swift | unknown | 279 |
// Created by Laura Skelton on 4/14/16.
// Copyright © 2016 Airbnb. All rights reserved.
// MARK: - StyledView
/// A view that can be initialized with a `Style` instance that contains the view's invariant
/// configuration parameters, e.g. the `UIButton.ButtonType` of a `UIButton`.
///
/// A `Style` is expected to ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Views/StyledView.swift | Swift | unknown | 1,755 |
// Created by Cal Stephens on 6/26/23.
// Copyright © 2023 Airbnb Inc. All rights reserved.
#if canImport(SwiftUI)
import SwiftUI
#if canImport(UIKit)
import UIKit
/// The platform's main view type.
/// Either `UIView` on iOS/tvOS or `NSView` on macOS.
typealias ViewType = UIView
/// The platform's SwiftUI view repr... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/EpoxyCore/Views/ViewType.swift | Swift | unknown | 1,757 |
//
// LRUCache.swift
// LRUCache
//
// Version 1.0.2
//
// Created by Nick Lockwood on 05/08/2021.
// Copyright © 2021 Nick Lockwood. All rights reserved.
//
// Distributed under the permissive MIT license
// Get the latest version from here:
//
// https://github.com/nicklockwood/LRUCache
//
// Permission is h... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/LRUCache/LRUCache.swift | Swift | unknown | 6,312 |
//
// Archive+BackingConfiguration.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Fou... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+BackingConfiguration.swift | Swift | unknown | 4,839 |
//
// Archive+Helpers.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
exte... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+Helpers.swift | Swift | unknown | 13,520 |
//
// Archive+MemoryFile.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
e... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+MemoryFile.swift | Swift | unknown | 5,023 |
//
// Archive+Progress.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
ext... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+Progress.swift | Swift | unknown | 2,107 |
//
// Archive+Reading.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
exte... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+Reading.swift | Swift | unknown | 5,674 |
//
// Archive+ReadingDeprecated.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Founda... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+ReadingDeprecated.swift | Swift | unknown | 1,112 |
//
// Archive+Writing.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
exte... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+Writing.swift | Swift | unknown | 16,780 |
//
// Archive+WritingDeprecated.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Founda... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+WritingDeprecated.swift | Swift | unknown | 2,370 |
//
// Archive+ZIP64.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
let zi... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive+ZIP64.swift | Swift | unknown | 7,211 |
//
// Archive.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
/// The defa... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Archive.swift | Swift | unknown | 17,293 |
//
// Data+Compression.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
#if... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Data+Compression.swift | Swift | unknown | 16,623 |
//
// Data+CompressionDeprecated.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Found... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Data+CompressionDeprecated.swift | Swift | unknown | 1,307 |
//
// Data+Serialization.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
#... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Data+Serialization.swift | Swift | unknown | 4,371 |
//
// Entry+Serialization.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Entry+Serialization.swift | Swift | unknown | 9,448 |
//
// Entry+ZIP64.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
// MARK:... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Entry+ZIP64.swift | Swift | unknown | 5,966 |
//
// Entry.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import CoreFoundation
import Foun... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/Entry.swift | Swift | unknown | 12,804 |
//
// FileManager+ZIP.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
exte... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/FileManager+ZIP.swift | Swift | unknown | 15,410 |
//
// URL+ZIP.swift
// ZIPFoundation
//
// Copyright © 2017-2021 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors.
// Released under the MIT License.
//
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information.
//
import Foundation
extension UR... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/EmbeddedLibraries/ZipFoundation/URL+ZIP.swift | Swift | unknown | 867 |
//
// LayerContainer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/22/19.
//
import QuartzCore
// MARK: - CompositionLayer
/// The base class for a child layer of CompositionContainer
class CompositionLayer: CALayer, KeypathSearchable {
// MARK: Lifecycle
init(layer: LayerModel, size: CGSize) ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/CompositionLayer.swift | Swift | unknown | 4,137 |
//
// ImageCompositionLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
import QuartzCore
final class ImageCompositionLayer: CompositionLayer {
// MARK: Lifecycle
init(imageLayer: ImageLayerModel, size: CGSize) {
imageReferenceID = imageLayer.referenceID
super.init(layer: im... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/ImageCompositionLayer.swift | Swift | unknown | 1,305 |
//
// MaskContainerLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
import QuartzCore
extension MaskMode {
var usableMode: MaskMode {
switch self {
case .add:
return .add
case .subtract:
return .subtract
case .intersect:
return .intersect
case .lig... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/MaskContainerLayer.swift | Swift | unknown | 4,616 |
//
// NullCompositionLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
import Foundation
final class NullCompositionLayer: CompositionLayer {
init(layer: LayerModel) {
super.init(layer: layer, size: .zero)
}
required init?(coder _: NSCoder) {
fatalError("init(coder:) has n... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/NullCompositionLayer.swift | Swift | unknown | 667 |
//
// PreCompositionLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
import QuartzCore
final class PreCompositionLayer: CompositionLayer {
// MARK: Lifecycle
init(
precomp: PreCompLayerModel,
asset: PrecompAsset,
layerImageProvider: LayerImageProvider,
layerTextProv... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/PreCompositionLayer.swift | Swift | unknown | 3,881 |
//
// ShapeLayerContainer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/22/19.
//
import CoreGraphics
import Foundation
/// A CompositionLayer responsible for initializing and rendering shapes
final class ShapeCompositionLayer: CompositionLayer {
// MARK: Lifecycle
init(shapeLayer: ShapeLayerMo... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/ShapeCompositionLayer.swift | Swift | unknown | 1,556 |
//
// SolidCompositionLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
import QuartzCore
final class SolidCompositionLayer: CompositionLayer {
// MARK: Lifecycle
init(solid: SolidLayerModel) {
let components = solid.colorHex.hexColorComponents()
colorProperty =
NodePr... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/SolidCompositionLayer.swift | Swift | unknown | 1,680 |
//
// TextCompositionLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
/// Needed for NSMutableParagraphStyle...
#if os(OSX)
import AppKit
#else
import UIKit
#endif
extension TextJustification {
var textAlignment: NSTextAlignment {
switch self {
case .left:
return .left
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/CompLayers/TextCompositionLayer.swift | Swift | unknown | 5,614 |
//
// MainThreadAnimationLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/24/19.
//
import QuartzCore
// MARK: - MainThreadAnimationLayer
/// The base `CALayer` for the Main Thread rendering engine
///
/// This layer holds a single composition container and allows for animation of
/// the current... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/MainThreadAnimationLayer.swift | Swift | unknown | 9,294 |
// Created by Jianjun Wu on 2022/5/12.
// Copyright © 2022 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - CachedImageProvider
private final class CachedImageProvider: AnimationImageProvider {
// MARK: Lifecycle
/// Initializes an image provider with an image provider
///
/// - Parameter imag... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/CachedImageProvider.swift | Swift | unknown | 1,790 |
//
// CompositionLayersInitializer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
import CoreGraphics
import Foundation
extension [LayerModel] {
func initializeCompositionLayers(
assetLibrary: AssetLibrary?,
layerImageProvider: LayerImageProvider,
layerTextProvider: LayerTextP... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/CompositionLayersInitializer.swift | Swift | unknown | 3,488 |
//
// TextLayer.swift
// Pods
//
// Created by Brandon Withrow on 8/3/20.
//
import CoreGraphics
import CoreText
import Foundation
import QuartzCore
/// Needed for NSMutableParagraphStyle...
#if os(OSX)
import AppKit
#else
import UIKit
#endif
// MARK: - CoreTextRenderLayer
/// A CALayer subclass that renders text... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/CoreTextRenderLayer.swift | Swift | unknown | 9,834 |
//
// InvertedMatteLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/28/19.
//
import QuartzCore
/// A layer that inverses the alpha output of its input layer.
///
/// WARNING: This is experimental and probably not very performant.
final class InvertedMatteLayer: CALayer, CompositionLayerDelegate {... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/InvertedMatteLayer.swift | Swift | unknown | 1,207 |
//
// LayerFontProvider.swift
// Lottie
//
// Created by Brandon Withrow on 8/5/20.
// Copyright © 2020 YurtvilleProds. All rights reserved.
//
/// Connects a LottieFontProvider to a group of text layers
final class LayerFontProvider {
// MARK: Lifecycle
init(fontProvider: AnimationFontProvider) {
self.f... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/LayerFontProvider.swift | Swift | unknown | 755 |
//
// LayerImageProvider.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
/// Connects a LottieImageProvider to a group of image layers
final class LayerImageProvider {
// MARK: Lifecycle
init(imageProvider: AnimationImageProvider, assets: [String: ImageAsset]?) {
self.imageProvider =... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/LayerImageProvider.swift | Swift | unknown | 1,257 |
//
// LayerTextProvider.swift
// lottie-ios-iOS
//
// Created by Alexandr Goncharov on 07/06/2019.
//
/// Connects a LottieTextProvider to a group of text layers
final class LayerTextProvider {
// MARK: Lifecycle
init(textProvider: AnimationKeypathTextProvider) {
self.textProvider = textProvider
textL... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/LayerTextProvider.swift | Swift | unknown | 725 |
//
// LayerTransformPropertyMap.swift
// lottie-swift
//
// Created by Brandon Withrow on 2/4/19.
//
import QuartzCore
// MARK: - LayerTransformProperties
final class LayerTransformProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(transform: Transform) {
anchor = NodeProperty(prov... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/LayerContainers/Utility/LayerTransformNode.swift | Swift | unknown | 4,879 |
//
// ItemsExtension.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/18/19.
//
// MARK: - NodeTree
final class NodeTree {
var rootNode: AnimatorNode? = nil
var transform: ShapeTransform? = nil
var renderContainers: [ShapeContainerLayer] = []
var paths: [PathOutputNode] = []
var childrenNodes:... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Extensions/ItemsExtension.swift | Swift | unknown | 4,179 |
//
// NodeProperty.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import CoreGraphics
import Foundation
/// A node property that holds a reference to a T ValueProvider and a T ValueContainer.
class NodeProperty<T>: AnyNodeProperty {
// MARK: Lifecycle
init(provider: AnyValueProvider) {... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/NodeProperty.swift | Swift | unknown | 1,261 |
//
// AnyNodeProperty.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import CoreGraphics
import Foundation
// MARK: - AnyNodeProperty
/// A property of a node. The node property holds a provider and a container
protocol AnyNodeProperty {
/// Returns true if the property needs to recomput... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/AnyNodeProperty.swift | Swift | unknown | 1,281 |
//
// AnyValueContainer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import CoreGraphics
import Foundation
/// The container for the value of a property.
protocol AnyValueContainer: AnyObject {
/// The stored value of the container
var value: Any { get }
/// Notifies the provider t... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/AnyValueContainer.swift | Swift | unknown | 582 |
//
// KeypathSettable.swift
// lottie-swift
//
// Created by Brandon Withrow on 2/4/19.
//
import QuartzCore
/// Protocol that provides keypath search functionality. Returns all node properties associated with a keypath.
protocol KeypathSearchable {
/// The name of the Keypath
var keypathName: String { get }
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/KeypathSearchable.swift | Swift | unknown | 547 |
//
// NodePropertyMap.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/21/19.
//
import QuartzCore
// MARK: - NodePropertyMap
protocol NodePropertyMap {
var properties: [AnyNodeProperty] { get }
}
extension NodePropertyMap {
var childKeypaths: [KeypathSearchable] {
[]
}
var keypathLayer:... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/Protocols/NodePropertyMap.swift | Swift | unknown | 790 |
//
// ValueContainer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import CoreGraphics
import Foundation
/// A container for a node value that is Typed to T.
class ValueContainer<T>: AnyValueContainer {
// MARK: Lifecycle
init(_ value: T) {
outputValue = value
}
// MARK: Inte... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/ValueContainer.swift | Swift | unknown | 789 |
//
// KeyframeGroupInterpolator.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/22/19.
//
import CoreGraphics
import Foundation
/// A value provider that produces an array of values from an array of Keyframe Interpolators
final class GroupInterpolator<ValueType>: ValueProvider where ValueType: Interpol... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/ValueProviders/GroupInterpolator.swift | Swift | unknown | 1,073 |
//
// SingleValueProvider.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import Foundation
import QuartzCore
/// Returns a value for every frame.
final class SingleValueProvider<ValueType: AnyInterpolatable>: ValueProvider {
// MARK: Lifecycle
init(_ value: ValueType) {
self.value ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/NodeProperties/ValueProviders/SingleValueProvider.swift | Swift | unknown | 673 |
// Created by Lan Xu on 2024/6/7.
// Copyright © 2024 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - DropShadowNode
final class DropShadowNode: LayerEffectNode {
// MARK: Lifecycle
init(model: DropShadowModel) {
properties = DropShadowNodeProperties(model: model)
}
// MARK: Internal
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/LayerEffectNodes/DropShadowNode.swift | Swift | unknown | 3,302 |
// Created by Lan Xu on 2024/6/8.
// Copyright © 2024 Airbnb Inc. All rights reserved.
import QuartzCore
// MARK: - LayerEffectNode
protocol LayerEffectNode {
func applyEffect(to layer: CALayer)
var propertyMap: NodePropertyMap { get }
}
extension LayerEffectNode {
func updateWithFrame(layer: CALayer, frame:... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/LayerEffectNodes/LayerEffectNode.swift | Swift | unknown | 510 |
//
// RoundedCornersNode.swift
// Lottie
//
// Created by Duolingo on 10/31/22.
//
import Foundation
import QuartzCore
// MARK: - RoundedCornersProperties
final class RoundedCornersProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(roundedCorners: RoundedCorners) {
keypathName = ro... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/ModifierNodes/RoundedCornersNode.swift | Swift | unknown | 2,171 |
//
// TrimPathNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/23/19.
//
import Foundation
import QuartzCore
// MARK: - TrimPathProperties
final class TrimPathProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(trim: Trim) {
keypathName = trim.name
start = NodePr... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/ModifierNodes/TrimPathNode.swift | Swift | unknown | 9,437 |
//
// TransformNodeOutput.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import QuartzCore
class GroupOutputNode: NodeOutput {
// MARK: Lifecycle
init(parent: NodeOutput?, rootNode: NodeOutput?) {
self.parent = parent
self.rootNode = rootNode
}
// MARK: Internal
let par... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/GroupOutputNode.swift | Swift | unknown | 1,753 |
//
// PassThroughOutputNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import CoreGraphics
class PassThroughOutputNode: NodeOutput {
// MARK: Lifecycle
init(parent: NodeOutput?) {
self.parent = parent
}
// MARK: Internal
let parent: NodeOutput?
var hasUpdate = false
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PassThroughOutputNode.swift | Swift | unknown | 1,050 |
//
// PathNodeOutput.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import CoreGraphics
/// A node that has an output of a BezierPath
class PathOutputNode: NodeOutput {
// MARK: Lifecycle
init(parent: NodeOutput?) {
self.parent = parent
}
// MARK: Internal
let parent: NodeO... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/PathOutputNode.swift | Swift | unknown | 2,337 |
//
// FillRenderer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import QuartzCore
extension FillRule {
var cgFillRule: CGPathFillRule {
switch self {
case .evenOdd:
return .evenOdd
default:
return .winding
}
}
var caFillRule: CAShapeLayerFillRule {
sw... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/FillRenderer.swift | Swift | unknown | 1,148 |
//
// GradientFillRenderer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import QuartzCore
// MARK: - GradientFillLayer
private final class GradientFillLayer: CALayer {
var start: CGPoint = .zero {
didSet {
setNeedsDisplay()
}
}
var numberOfColors = 0 {
didSet {
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientFillRenderer.swift | Swift | unknown | 5,631 |
//
// GradientStrokeRenderer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import QuartzCore
// MARK: - Renderer
final class GradientStrokeRenderer: PassThroughOutputNode, Renderable {
// MARK: Lifecycle
override init(parent: NodeOutput?) {
strokeRender = StrokeRenderer(parent: n... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/GradientStrokeRenderer.swift | Swift | unknown | 1,447 |
//
// LegacyGradientFillRenderer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import QuartzCore
/// A rendered for a Path Fill
final class LegacyGradientFillRenderer: PassThroughOutputNode, Renderable {
var shouldRenderInContext = true
var start: CGPoint = .zero {
didSet {
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/LegacyGradientFillRenderer.swift | Swift | unknown | 3,850 |
//
// StrokeRenderer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import QuartzCore
extension LineJoin {
var cgLineJoin: CGLineJoin {
switch self {
case .bevel:
return .bevel
case .none:
return .miter
case .miter:
return .miter
case .round:
ret... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/OutputNodes/Renderables/StrokeRenderer.swift | Swift | unknown | 3,263 |
//
// EllipseNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/17/19.
//
import Foundation
import QuartzCore
// MARK: - EllipseNodeProperties
final class EllipseNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(ellipse: Ellipse) {
keypathName = ellipse.name
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/EllipseNode.swift | Swift | unknown | 3,717 |
//
// PolygonNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/21/19.
//
import Foundation
import QuartzCore
// MARK: - PolygonNodeProperties
final class PolygonNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(star: Star) {
keypathName = star.name
direction... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/PolygonNode.swift | Swift | unknown | 5,306 |
//
// RectNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/21/19.
//
import CoreGraphics
import Foundation
// MARK: - RectNodeProperties
final class RectNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(rectangle: Rectangle) {
keypathName = rectangle.name
d... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/RectNode.swift | Swift | unknown | 7,159 |
//
// PathNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/16/19.
//
import CoreGraphics
import Foundation
// MARK: - ShapeNodeProperties
final class ShapeNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(shape: Shape) {
keypathName = shape.name
path = Node... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/ShapeNode.swift | Swift | unknown | 1,504 |
//
// StarNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/21/19.
//
import Foundation
import QuartzCore
// MARK: - StarNodeProperties
final class StarNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(star: Star) {
keypathName = star.name
direction = star.d... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/PathNodes/StarNode.swift | Swift | unknown | 7,696 |
//
// GroupNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/18/19.
//
import QuartzCore
// MARK: - GroupNodeProperties
final class GroupNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(transform: ShapeTransform?) {
if let transform {
anchor = NodePropert... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift | Swift | unknown | 5,562 |
//
// FillNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/17/19.
//
import CoreGraphics
import Foundation
// MARK: - FillNodeProperties
final class FillNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(fill: Fill) {
keypathName = fill.name
color = NodeProp... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/FillNode.swift | Swift | unknown | 2,013 |
//
// GradientFillNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/22/19.
//
import Foundation
import QuartzCore
// MARK: - GradientFillProperties
final class GradientFillProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(gradientfill: GradientFill) {
keypathName = ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/GradientFillNode.swift | Swift | unknown | 2,951 |
//
// GradientStrokeNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/23/19.
//
import CoreGraphics
import Foundation
// MARK: - GradientStrokeProperties
final class GradientStrokeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(gradientStroke: GradientStroke) {
ke... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/GradientStrokeNode.swift | Swift | unknown | 5,190 |
//
// StrokeNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/22/19.
//
import Foundation
import QuartzCore
// MARK: - StrokeNodeProperties
final class StrokeNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(stroke: Stroke) {
keypathName = stroke.name
color ... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/RenderNodes/StrokeNode.swift | Swift | unknown | 5,854 |
//
// TextAnimatorNode.swift
// lottie-ios-iOS
//
// Created by Brandon Withrow on 2/19/19.
//
import QuartzCore
// MARK: - TextAnimatorNodeProperties
final class TextAnimatorNodeProperties: NodePropertyMap, KeypathSearchable {
// MARK: Lifecycle
init(textAnimator: TextAnimator) {
keypathName = textAnim... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Nodes/Text/TextAnimatorNode.swift | Swift | unknown | 7,791 |
//
// AnimatorNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/15/19.
//
import QuartzCore
// MARK: - NodeOutput
/// Defines the basic outputs of an animator node.
///
protocol NodeOutput {
/// The parent node.
var parent: NodeOutput? { get }
/// Returns true if there are any updates upstr... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Protocols/AnimatorNode.swift | Swift | unknown | 6,476 |
//
// PathNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/17/19.
//
// MARK: - PathNode
protocol PathNode {
var pathOutput: PathOutputNode { get }
}
extension PathNode where Self: AnimatorNode {
var outputNode: NodeOutput {
pathOutput
}
}
| 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Protocols/PathNode.swift | Swift | unknown | 274 |
//
// RenderNode.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/17/19.
//
import QuartzCore
// MARK: - RenderNode
/// A protocol that defines a node that holds render instructions
protocol RenderNode {
var renderer: Renderable & NodeOutput { get }
}
// MARK: - Renderable
/// A protocol that defin... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/Protocols/RenderNode.swift | Swift | unknown | 1,381 |
//
// ShapeContainerLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/30/19.
//
import QuartzCore
/// The base layer that holds Shapes and Shape Renderers
class ShapeContainerLayer: CALayer {
// MARK: Lifecycle
override init() {
super.init()
actions = [
"position" : NSNull(),
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeContainerLayer.swift | Swift | unknown | 1,618 |
//
// RenderLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/18/19.
//
import QuartzCore
/// The layer responsible for rendering shape objects
final class ShapeRenderLayer: ShapeContainerLayer {
// MARK: Lifecycle
init(renderer: Renderable & NodeOutput) {
self.renderer = renderer
sup... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/MainThread/NodeRenderSystem/RenderLayers/ShapeRenderLayer.swift | Swift | unknown | 2,341 |
//
// Asset.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/9/19.
//
// MARK: - Asset
public class Asset: Codable, DictionaryInitializable {
// MARK: Lifecycle
required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: Asset.CodingKeys.self)
if let... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Assets/Asset.swift | Swift | unknown | 1,199 |
//
// AssetLibrary.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/9/19.
//
final class AssetLibrary: Codable, AnyInitializable, Sendable {
// MARK: Lifecycle
required init(from decoder: Decoder) throws {
var container = try decoder.unkeyedContainer()
var containerForKeys = container
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Assets/AssetLibrary.swift | Swift | unknown | 2,233 |
//
// ImageAsset.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/9/19.
//
import CoreGraphics
import Foundation
#if canImport(UIKit)
import UIKit
#elseif canImport(AppKit)
import AppKit
#endif
// MARK: - ImageAsset
public final class ImageAsset: Asset {
// MARK: Lifecycle
required init(from dec... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Assets/ImageAsset.swift | Swift | unknown | 3,777 |
//
// PrecompAsset.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/9/19.
//
final class PrecompAsset: Asset {
// MARK: Lifecycle
required init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: PrecompAsset.CodingKeys.self)
layers = try container.decode([LayerMo... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Assets/PrecompAsset.swift | Swift | unknown | 1,013 |
//
// DictionaryInitializable.swift
// Lottie
//
// Created by Marcelo Fabri on 5/5/22.
//
// MARK: - InitializableError
enum InitializableError: Error {
case invalidInput(file: StaticString = #file, line: UInt = #line)
}
// MARK: - DictionaryInitializable
protocol DictionaryInitializable {
init(dictionary:... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/DictionaryInitializable.swift | Swift | unknown | 1,460 |
//
// DotLottieAnimation.swift
// Pods
//
// Created by Evandro Harrison Hoffmann on 28/06/2021.
//
import Foundation
// MARK: - DotLottieAnimation
struct DotLottieAnimation: Codable {
/// Id of Animation
var id: String
/// Loop enabled
var loop: Bool? = false
/// Animation Playback Speed
var speed: Do... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/DotLottie/DotLottieAnimation.swift | Swift | unknown | 1,205 |
//
// DotLottieImageProvider.swift
// Lottie
//
// Created by Evandro Hoffmann on 20/10/22.
//
#if canImport(UIKit)
import UIKit
#elseif canImport(AppKit)
import AppKit
#endif
// MARK: - DotLottieImageProvider
/// An image provider that loads the images from a DotLottieFile into memory
class DotLottieImageProvide... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/DotLottie/DotLottieImageProvider.swift | Swift | unknown | 2,315 |
//
// DotLottieManifest.swift
// Lottie
//
// Created by Evandro Harrison Hoffmann on 27/06/2020.
//
import Foundation
/// Manifest model for .lottie File
struct DotLottieManifest: Codable {
var animations: [DotLottieAnimation]
var version: String?
var author: String?
var generator: String?
/// Decodes da... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/DotLottie/DotLottieManifest.swift | Swift | unknown | 1,060 |
//
// DotLottieUtils.swift
// Lottie
//
// Created by Evandro Harrison Hoffmann on 27/06/2020.
//
import Foundation
// MARK: - DotLottieUtils
enum DotLottieUtils {
static let dotLottieExtension = "lottie"
static let jsonExtension = "json"
/// Temp folder to app directory
static var tempDirectoryURL: URL {
... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/DotLottie/DotLottieUtils.swift | Swift | unknown | 1,836 |
import Foundation
#if canImport(UIKit)
import UIKit
#endif
extension Bundle {
func getAnimationData(_ name: String, subdirectory: String? = nil) throws -> Data {
// Check for files in the bundle at the given path
let name = name.removingJSONSuffix()
if let url = url(forResource: name, withExtension: "jso... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Extensions/Bundle.swift | Swift | unknown | 1,742 |
// From: https://medium.com/@kewindannerfjordremeczki/swift-4-0-decodable-heterogeneous-collections-ecc0e6b468cf
// MARK: - ClassFamily
/// To support a new class family, create an enum that conforms to this protocol and contains the different types.
protocol ClassFamily: Decodable {
/// The discriminator key.
st... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Extensions/KeyedDecodingContainerExtensions.swift | Swift | unknown | 2,815 |
//
// Keyframe.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/7/19.
//
// MARK: - KeyframeData
/// A generic class used to parse and remap keyframe json.
///
/// Keyframe json has a couple of different variations and formats depending on the
/// type of keyframea and also the version of the JSON. By p... | 2201_75827989/zhi_shi_ku | uni_modules/uts-animation-view/utssdk/app-ios/lottie-ios/Private/Model/Keyframes/KeyframeData.swift | Swift | unknown | 3,284 |