Files
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

43 lines
1.0 KiB
Swift

//
// ImageLayer.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/8/19.
//
import Foundation
/// 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)
referenceID = try container.decode(String.self, forKey: .referenceID)
try super.init(from: decoder)
}
required init(dictionary: [String: Any]) throws {
referenceID = try dictionary.value(for: CodingKeys.referenceID)
try super.init(dictionary: dictionary)
}
// MARK: Internal
/// The reference ID of the image.
let referenceID: String
override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(referenceID, forKey: .referenceID)
}
// MARK: Private
private enum CodingKeys: String, CodingKey {
case referenceID = "refId"
}
}