### Import Lucide Icons Package Source: https://github.com/jakubmazur/lucide-icons-swift/blob/main/README.md Import the LucideIcons package into your Swift files to begin using the icons. ```swift import LucideIcons ``` -------------------------------- ### Load UIImage with Lucide ID (iOS) Source: https://github.com/jakubmazur/lucide-icons-swift/blob/main/README.md Use the UIImage extension to initialize an image directly from a Lucide ID. Ensure UIKit is imported. ```swift import UIKit let image: UIImage = Lucide.tada if let icon: UIImage? = .init(lucideId: "tada") { // Use your icon } ``` -------------------------------- ### Display Lucide Icons in SwiftUI Source: https://github.com/jakubmazur/lucide-icons-swift/blob/main/README.md Demonstrates how to display Lucide icons in SwiftUI views using both macOS and iOS specific image types. ```swift import SwiftUI import LucideIcons struct ContentView: View { var body: some View { VStack { Image(nsImage: Lucide.tada) // For macOS Image(uiImage: Lucide.tada) // For iOS Text("Hello, Lucide Icons!") } } } struct ContentView: View { var body: some View { #if canImport(UIKit) if let uiImage = UIImage(lucideId: "tada") { Image(uiImage: uiImage) } #elseif canImport(AppKit) if let nsImage = NSImage.image(lucideId: "tada") { Image(nsImage: nsImage) } #endif } } ``` -------------------------------- ### Load NSImage with Lucide ID (macOS) Source: https://github.com/jakubmazur/lucide-icons-swift/blob/main/README.md Use the NSImage extension to fetch an image by its Lucide ID. Ensure AppKit is imported. ```swift import AppKit let image: NSImage = Lucide.tada if let icon = NSImage.image(lucideId: "yourIconId") { // Use your icon } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.