### Implement Custom AsyncEmojiProvider with Nuke Source: https://context7.com/divadretlaw/emojitext/llms.txt Shows how to implement a custom `AsyncEmojiProvider` for advanced emoji fetching and caching using the Nuke library. This provider handles checking the cache and fetching remote emoji data, allowing for custom image processing and integration with third-party libraries. The example includes a SwiftUI view demonstrating its usage. ```swift import Foundation import EmojiText import Nuke // Third-party image loading library struct NukeEmojiProvider: AsyncEmojiProvider { private let pipeline: ImagePipeline init(pipeline: ImagePipeline = .shared) { self.pipeline = pipeline } // Check cache for emoji func cachedEmojiData(emoji: any AsyncCustomEmoji, height: CGFloat?) -> Data? { guard let emoji = emoji as? RemoteEmoji else { return nil } let request = ImageRequest(url: emoji.url) return pipeline.cache[request]?.image.pngData() } // Fetch emoji from network func fetchEmojiData(emoji: any AsyncCustomEmoji, height: CGFloat?) async throws -> Data { guard let emoji = emoji as? RemoteEmoji else { throw EmojiProviderError.unsupportedEmoji } let request: ImageRequest if let height { request = ImageRequest(url: emoji.url, processors: [.resize(height: height)]) } else { request = ImageRequest(url: emoji.url) } let (data, _) = try await pipeline.data(for: request) return data } } // Usage in SwiftUI struct NukeProviderView: View { let emojis: [any CustomEmoji] = [ RemoteEmoji(shortcode: "photo", url: URL(string: "https://example.com/photo.jpg")!) ] var body: some View { EmojiText(verbatim: "Photo :photo:", emojis: emojis) .environment(\.emojiText.asyncEmojiProvider, NukeEmojiProvider()) } } ``` -------------------------------- ### Configure Emoji Size and Baseline in SwiftUI Source: https://context7.com/divadretlaw/emojitext/llms.txt Demonstrates how to override automatic emoji sizing and baseline offset calculations in SwiftUI using the EmojiText library. This is useful for precise alignment control or when working with custom fonts. It shows examples of fixed sizing, large sizing for headers, custom baseline offsets, and combined configurations. ```swift import SwiftUI import EmojiText struct SizeConfigView: View { let emojis: [any CustomEmoji] = [ RemoteEmoji(shortcode: "icon", url: URL(string: "https://example.com/icon.png")!) ] var body: some View { VStack(spacing: 20) { // Auto-sized based on font EmojiText(verbatim: "Auto size :icon:", emojis: emojis) .font(.body) // Fixed emoji size (24 points) EmojiText(verbatim: "Fixed size :icon:", emojis: emojis) .font(.body) .emojiText.size(24) // Large emoji for headers EmojiText(verbatim: "Header :icon:", emojis: emojis) .font(.largeTitle) .emojiText.size(48) // Custom baseline offset for alignment EmojiText(verbatim: "Aligned :icon:", emojis: emojis) .font(.body) .emojiText.baselineOffset(-2) // Combined size and baseline EmojiText(verbatim: "Custom :icon:", emojis: emojis) .emojiText.size(32) .emojiText.baselineOffset(-4) } } } ``` -------------------------------- ### EmojiTextView: Multi-line Emoji Display in UIKit and AppKit Source: https://context7.com/divadretlaw/emojitext/llms.txt Provides examples for using EmojiTextView, a text view component that supports multi-line custom emoji rendering. This snippet includes implementations for both UIKit (iOS/tvOS/visionOS) and AppKit (macOS), demonstrating how to integrate custom emojis and text content. Requires UIKit/AppKit and EmojiText frameworks. ```swift // UIKit version (iOS/tvOS/visionOS) import UIKit import EmojiText class EmojiTextViewExample: UIViewController { override func viewDidLoad() { super.viewDidLoad() let emojis: [any CustomEmoji] = [ RemoteEmoji(shortcode: "wave", url: URL(string: "https://example.com/wave.gif")!), SFSymbolEmoji(shortcode: "heart.fill") ] let textView = EmojiTextView() textView.emojis = emojis textView.text = """ Welcome :wave: Thank you for using our app :heart.fill: We hope you enjoy your experience. """ textView.interpretedSyntax = .inlineOnlyPreservingWhitespace textView.translatesAutoresizingMaskIntoConstraints = false view.addSubview(textView) NSLayoutConstraint.activate([ textView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), textView.leadingAnchor.constraint(equalTo: view.leadingAnchor), textView.trailingAnchor.constraint(equalTo: view.trailingAnchor), textView.bottomAnchor.constraint(equalTo: view.bottomAnchor) ]) } } ``` ```swift // AppKit version (macOS) import AppKit import EmojiText class EmojiTextViewMacOS: NSViewController { override func loadView() { let textView = EmojiTextView() textView.emojis = [ SFSymbolEmoji(shortcode: "star.fill"), LocalEmoji(shortcode: "logo", image: NSImage(named: "AppIcon")!) ] textView.text = "Welcome to :logo: App :star.fill:" self.view = textView } } ``` -------------------------------- ### SF Symbol Emoji Configuration in Swift Source: https://context7.com/divadretlaw/emojitext/llms.txt Demonstrates how to create and use SF Symbol emojis within the EmojiText library. Supports various rendering modes like multicolor, hierarchical, and template for tinting. These emojis can be integrated into SwiftUI views. ```swift import EmojiText import SwiftUI // Basic SF Symbol emoji let phoneEmoji = SFSymbolEmoji(shortcode: "iphone") // Multicolor symbol rendering let personEmoji = SFSymbolEmoji( shortcode: "person.fill.badge.plus", symbolRenderingMode: .multicolor ) // Hierarchical rendering let folderEmoji = SFSymbolEmoji( shortcode: "folder.fill.badge.plus", symbolRenderingMode: .hierarchical ) // Template rendering (for tinting) let starEmoji = SFSymbolEmoji( shortcode: "star.fill", renderingMode: .template ) // Usage example struct SFSymbolView: View { let emojis: [any CustomEmoji] = [ SFSymbolEmoji(shortcode: "moon.stars", symbolRenderingMode: .palette), SFSymbolEmoji(shortcode: "heart.fill", symbolRenderingMode: .monochrome) ] var body: some View { EmojiText(verbatim: "Good night :moon.stars: Sweet dreams :heart.fill:", emojis: emojis) .foregroundStyle(.purple) } } ``` -------------------------------- ### Placeholder Configuration for Remote Emojis in Swift Source: https://context7.com/divadretlaw/emojitext/llms.txt Configures the placeholder image displayed while remote emojis are loading. Supports using SF Symbols or custom UIImage objects. Advanced configuration includes specifying rendering modes for SF Symbol placeholders. ```swift import SwiftUI import EmojiText struct PlaceholderConfigView: View { let emojis: [any CustomEmoji] = [ RemoteEmoji(shortcode: "avatar", url: URL(string: "https://example.com/avatar.png")!) ] var body: some View { VStack(spacing: 20) { // Default placeholder (square.dashed) EmojiText(verbatim: "User :avatar:", emojis: emojis) // SF Symbol placeholder EmojiText(verbatim: "User :avatar:", emojis: emojis) .emojiText.placeholder(systemName: "person.crop.circle") // Custom image placeholder EmojiText(verbatim: "User :avatar:", emojis: emojis) .emojiText.placeholder(image: UIImage(named: "LoadingPlaceholder")!) // Placeholder with rendering mode EmojiText(verbatim: "User :avatar:", emojis: emojis) .emojiText.placeholder( systemName: "hourglass", symbolRenderingMode: .hierarchical, renderingMode: .template ) } } } ``` -------------------------------- ### Add EmojiText Dependency with Swift Package Manager Source: https://context7.com/divadretlaw/emojitext/llms.txt Shows how to integrate the EmojiText library into your project by adding it as a dependency in your Package.swift file. This enables its use across different Apple platforms. ```swift // Package.swift import PackageDescription let package = Package( name: "MyApp", platforms: [ .iOS(.v15), .macOS(.v12), .tvOS(.v15), .watchOS(.v8) ], dependencies: [ .package(url: "https://github.com/divadretlaw/EmojiText", from: "1.0.0") ], targets: [ .target( name: "MyApp", dependencies: ["EmojiText"] ) ] ) ``` -------------------------------- ### Configure Custom ImagePipeline for EmojiText with Nuke Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/ImagePipeline.md This snippet demonstrates how to provide a custom ImagePipeline to EmojiText when using Nuke. It utilizes the .environment modifier to inject a new ImagePipeline instance, allowing for customized image loading and caching behavior. ```swift .environment(\.emojiText.imagePipeline, ImagePipeline()) ``` -------------------------------- ### EmojiLabel: Custom Emoji Rendering in UIKit Source: https://context7.com/divadretlaw/emojitext/llms.txt Demonstrates how to use EmojiLabel, a UILabel subclass, to render custom emojis within UIKit applications. It supports basic text, Markdown interpretation, and configuration for emoji size and alignment. Requires UIKit and EmojiText frameworks. ```swift import UIKit import EmojiText class EmojiLabelViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let emojis: [any CustomEmoji] = [ RemoteEmoji(shortcode: "star", url: URL(string: "https://example.com/star.png")!), SFSymbolEmoji(shortcode: "checkmark.circle.fill") ] // Basic usage let label = EmojiLabel() label.emojis = emojis label.text = "Rating: :star: :star: :star:" label.translatesAutoresizingMaskIntoConstraints = false view.addSubview(label) // With Markdown let markdownLabel = EmojiLabel() markdownLabel.emojis = emojis markdownLabel.interpretedSyntax = .inlineOnlyPreservingWhitespace markdownLabel.text = "**Success** :checkmark.circle.fill:" markdownLabel.translatesAutoresizingMaskIntoConstraints = false view.addSubview(markdownLabel) // Configuration options markdownLabel.overrideSize = 20 // Fixed emoji size markdownLabel.overrideBaselineOffset = -2 // Adjust alignment markdownLabel.shouldOmitSpacesBetweenEmojis = true // Optimize rendering // Custom provider markdownLabel.setEmojiProvider( syncEmojiProvider: DefaultSyncEmojiProvider(), asyncEmojiProvider: DefaultAsyncEmojiProvider(session: .shared) ) NSLayoutConstraint.activate([ label.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 20), label.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 20), markdownLabel.topAnchor.constraint(equalTo: label.bottomAnchor, constant: 20), markdownLabel.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 20) ]) } } ``` -------------------------------- ### Display Custom Emojis with EmojiTextField (AppKit) Source: https://context7.com/divadretlaw/emojitext/llms.txt Demonstrates how to use EmojiTextField, an AppKit subclass, to display text with custom emoji rendering. It supports SF Symbols and local images, with options for Markdown interpretation and space omission between emojis. ```swift import AppKit import EmojiText class EmojiTextFieldExample: NSViewController { override func loadView() { let stackView = NSStackView() stackView.orientation = .vertical stackView.spacing = 10 let emojis: [any CustomEmoji] = [ SFSymbolEmoji(shortcode: "checkmark.circle.fill"), SFSymbolEmoji(shortcode: "xmark.circle.fill"), LocalEmoji(shortcode: "badge", image: NSImage(named: "StatusBadge")!) ] // Success status let successField = EmojiTextField() successField.emojis = emojis successField.stringValue = "Build :checkmark.circle.fill: Successful" stackView.addArrangedSubview(successField) // Error status with Markdown let errorField = EmojiTextField() errorField.emojis = emojis errorField.interpretedSyntax = .inlineOnlyPreservingWhitespace errorField.stringValue = "**Error** :xmark.circle.fill: Failed" stackView.addArrangedSubview(errorField) // Configuration errorField.overrideSize = 16 errorField.shouldOmitSpacesBetweenEmojis = true self.view = stackView } } ``` -------------------------------- ### Integrate Nuke for Remote Emoji Loading in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Replaces the default remote emoji loading and caching mechanism with Nuke. This requires implementing a custom `AsyncEmojiProvider` that utilizes the Nuke library. ```swift .environment(\.emojiText.asyncEmojiProvider, NukeEmojiProvider()) ``` -------------------------------- ### Display Local Emoji in Swift Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Documentation.md Renders text with local emojis using a shortcode and an image. Requires the LocalEmoji struct to provide emoji details and an image (UIImage or NSImage). ```swift EmojiText(verbatim: "Hello :my_emoji:", emojis: [LocalEmoji(shortcode: "my_emoji", image: /* some UIImage or NSImage */)]) ``` -------------------------------- ### Configure Placeholder with Custom Image Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Placeholder.md Sets a custom placeholder for remote emojis using a provided image object. This modifier accepts a UIImage (for iOS/tvOS/watchOS) or NSImage (for macOS). ```swift .emojiText.placeholder(image: /* some UIImage or NSImage */) ``` -------------------------------- ### Render Markdown with Emojis in Swift Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Documentation.md Supports rendering Markdown formatted text along with custom emojis. Requires RemoteEmoji for emoji definitions. ```swift EmojiText(markdown: "**Hello** *World* :my_emoji:", emojis: [RemoteEmoji(shortcode: "my_emoji", url: /* URL to emoji */)]) ``` -------------------------------- ### Display Markdown with Emojis in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Renders text with Markdown formatting and custom emojis in a SwiftUI view. Supports standard Markdown syntax alongside remote emojis. ```swift EmojiText( markdown: "**Hello** *World* :my_emoji:", emojis: [RemoteEmoji(shortcode: "my_emoji", url: /* URL to emoji */)] ) ``` -------------------------------- ### Define Local Emoji from Assets or System Images Source: https://context7.com/divadretlaw/emojitext/llms.txt The `LocalEmoji` struct allows using local images (UIImage for iOS, NSImage for macOS) as custom emojis. It supports template rendering mode for tinting and baseline offset adjustments. This is useful for emojis included directly in the asset catalog or from system image providers. ```swift import EmojiText import UIKit // or AppKit for macOS // Basic local emoji from asset catalog let assetEmoji = LocalEmoji( shortcode: "logo", image: UIImage(named: "CompanyLogo")! ) // Template mode with tint color let tintedEmoji = LocalEmoji( shortcode: "heart", image: UIImage(named: "HeartIcon")!, color: .systemRed, renderingMode: .template ) // With baseline offset adjustment let adjustedEmoji = LocalEmoji( shortcode: "badge", image: UIImage(named: "Badge")!, baselineOffset: -3.0 ) // Usage in SwiftUI view struct LocalEmojiView: View { let emojis: [any CustomEmoji] = [ LocalEmoji(shortcode: "check", image: UIImage(systemName: "checkmark.circle.fill")!), LocalEmoji(shortcode: "warning", image: UIImage(systemName: "exclamationmark.triangle.fill")!, color: .systemYellow) ] var body: some View { EmojiText(verbatim: "Task :check: completed with :warning: warnings", emojis: emojis) } } ``` -------------------------------- ### Display Remote Emoji in Swift Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Documentation.md Renders text with remote emojis specified by a shortcode and URL. Requires the RemoteEmoji struct to provide emoji details. ```swift EmojiText(verbatim: "Hello :my_emoji:", emojis: [RemoteEmoji(shortcode: "my_emoji", url: /* URL to emoji */)]) ``` -------------------------------- ### Configure Remote Emoji Placeholder in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Sets a custom placeholder image for remote emojis while they are loading. Can be an SF Symbol name or a UIImage/NSImage. ```swift .emojiText.placeholder(systemName: /* SF Symbol */) ``` ```swift .emojiText.placeholder(image: /* some UIImage or NSImage */) ``` -------------------------------- ### Configure Placeholder with SF Symbol Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Placeholder.md Sets a custom placeholder for remote emojis using an SF Symbol. This modifier takes the SF Symbol name as a string argument. ```swift .emojiText.placeholder(systemName: /* SF Symbol */) ``` -------------------------------- ### Display SF Symbol Emoji in Swift Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Documentation.md Renders text with SF Symbols as emojis, using the symbol name as the shortcode. No additional image data is required. ```swift EmojiText(verbatim: "Hello Moon & Starts :moon.stars:", emojis: [SFSymbolEmoji(shortcode: "moon.stars")]) ``` -------------------------------- ### Display Remote Emoji in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Renders a remote emoji in a SwiftUI view. Requires a shortcode and a URL for the emoji. The emoji will be fetched and displayed asynchronously. ```swift EmojiText( verbatim: "Hello :my_emoji:", emojis: [RemoteEmoji(shortcode: "my_emoji", url: /* URL to emoji */)] ) ``` -------------------------------- ### Display SF Symbol Emoji in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Renders an SF Symbol as an emoji in a SwiftUI view. Requires only the shortcode corresponding to the SF Symbol name. ```swift EmojiText( verbatim: "Hello Moon & Starts :moon.stars:", emojis: [SFSymbolEmoji(shortcode: "moon.stars")] ) ``` -------------------------------- ### Display Local Emoji in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Renders a local emoji in a SwiftUI view. Requires a shortcode and an image (UIImage or NSImage). The emoji is embedded directly within the application. ```swift EmojiText( verbatim: "Hello :my_emoji:", emojis: [LocalEmoji(shortcode: "my_emoji", image: /* some UIImage or NSImage */)] ) ``` -------------------------------- ### Enable Animated Emoji in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Enables animated emoji rendering for remote emojis in SwiftUI. This feature is opt-in and currently in beta. Supported formats include APNG, GIF, and WebP. ```swift EmojiText( verbatim: "GIF :my_gif:", emojis: [RemoteEmoji(shortcode: "my_gif", url: /* URL to gif */)] ) .animated() ``` -------------------------------- ### Display Text with Custom Emojis in SwiftUI Source: https://context7.com/divadretlaw/emojitext/llms.txt The `EmojiText` SwiftUI view renders text with custom emojis specified by shortcodes. It supports plain text, Markdown, and AttributedString inputs. Emojis can be provided as an array of `CustomEmoji` types, including remote, local, and SF Symbols. ```swift import SwiftUI import EmojiText struct ContentView: View { let emojis: [any CustomEmoji] = [ RemoteEmoji(shortcode: "party", url: URL(string: "https://example.com/party.png")!), LocalEmoji(shortcode: "logo", image: UIImage(named: "AppLogo")!), SFSymbolEmoji(shortcode: "star.fill") ] var body: some View { VStack(alignment: .leading, spacing: 16) { // Plain text with emoji EmojiText(verbatim: "Welcome to the :party:!", emojis: emojis) // Markdown formatted text with emoji EmojiText(markdown: "**Hello** _World_ :logo:", emojis: emojis) // Multiple emoji in one text EmojiText(verbatim: "Rate us :star.fill: :star.fill: :star.fill:", emojis: emojis) // With prepended/appended Text EmojiText(verbatim: "Status: :party:", emojis: emojis) .prepend { Text("🎉 ") } .append { Text(" Complete!") } } .font(.body) } } ``` -------------------------------- ### Animated Emoji Playback in Swift Source: https://context7.com/divadretlaw/emojitext/llms.txt Enables playback of animated emoji formats (GIF, APNG, WebP) using RemoteEmoji within EmojiText. This feature is currently supported on UIKit platforms. Animations can be controlled and configured to always play, even in low-power mode. ```swift import SwiftUI import EmojiText struct AnimatedEmojiView: View { @State private var isAnimating = true let animatedEmojis: [any CustomEmoji] = [ RemoteEmoji(shortcode: "loading", url: URL(string: "https://example.com/loading.gif")!), RemoteEmoji(shortcode: "butterfly", url: URL(string: "https://example.com/butterfly.webp")!), RemoteEmoji(shortcode: "sparkle", url: URL(string: "https://example.com/sparkle.apng")!) ] var body: some View { VStack(spacing: 20) { // Basic animated emoji EmojiText(verbatim: "Loading :loading:", emojis: animatedEmojis) .animated() // Controllable animation EmojiText(verbatim: "Butterfly :butterfly:", emojis: animatedEmojis) .animated(isAnimating) // Always animate (even in low-power mode) EmojiText(verbatim: "Sparkle :sparkle:", emojis: animatedEmojis) .animated() .environment(\.emojiText.animatedMode, .always) Button(isAnimating ? "Pause" : "Play") { isAnimating.toggle() } } } } ``` -------------------------------- ### Provide Custom URLSession for Remote Emojis in SwiftUI Source: https://github.com/divadretlaw/emojitext/blob/main/README.md Allows specifying a custom URLSession for fetching remote emojis. This enables advanced network configurations or the use of custom caching mechanisms. ```swift .environment(\.emojiText.asyncEmojiProvider, DefaultAsyncEmojiProvider(session: myUrlSession)) ``` -------------------------------- ### Enable Animated Emojis in Swift Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Documentation.md Enables animation for emojis, supporting APNG, GIF, and WebP formats. The `.animated()` modifier activates this feature. Animations pause in low-power mode by default. ```swift EmojiText(verbatim: "GIF :my_gif:", emojis: [RemoteEmoji(shortcode: "my_gif", url: /* URL to gif */)]) .animated() ``` -------------------------------- ### Define Remote Emoji for Network Loading Source: https://context7.com/divadretlaw/emojitext/llms.txt The `RemoteEmoji` struct represents a custom emoji loaded from a URL. It supports asynchronous fetching, caching via `AsyncEmojiProvider`, optional rendering modes, and baseline offset adjustments for precise alignment. Initialization can be safe, returning nil for invalid URLs. ```swift import EmojiText // Basic remote emoji let basicEmoji = RemoteEmoji( shortcode: "wave", url: URL(string: "https://cdn.example.com/emojis/wave.png")! ) // With template rendering mode (allows tinting) let templateEmoji = RemoteEmoji( shortcode: "icon", url: URL(string: "https://cdn.example.com/emojis/icon.png")!, renderingMode: .template ) // With custom baseline offset for alignment let alignedEmoji = RemoteEmoji( shortcode: "badge", url: URL(string: "https://cdn.example.com/emojis/badge.png")!, baselineOffset: -2.0 ) // Safe initialization with optional URL let safeEmoji = RemoteEmoji( shortcode: "dynamic", url: URL(string: userProvidedURLString) // Returns nil if URL is invalid ) // Usage in EmojiText EmojiText(verbatim: "Hello :wave: and :icon:", emojis: [basicEmoji, templateEmoji]) ``` -------------------------------- ### Set Custom Emoji Size in EmojiText (SwiftUI) Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Emoji_Size.md This snippet demonstrates how to manually set the size of emojis in EmojiText using a SwiftUI modifier. This is useful when using custom fonts or when the default size calculation based on system text styles is not accurate. The size is provided in pixels. ```swift .emojiText.size(/* size in px */) ``` -------------------------------- ### Force Always Play Animated Emojis in Swift Source: https://github.com/divadretlaw/emojitext/blob/main/Sources/EmojiText/Documentation.docc/Documentation.md Forces animated emojis to always play, even in low-power mode, by setting the animation mode to `.always`. This overrides the default pausing behavior. ```swift EmojiText(verbatim: "GIF :my_gif:", emojis: [RemoteEmoji(shortcode: "my_gif", url: /* URL to gif */)]) .animated() .environment(\.emojiText.animatedMode, .always) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.