Skip to content

baronha/iconoir-swift

 
 

Repository files navigation

Iconoir-swift

Version License

Iconoir-swift is a Swift package that extends the usage of Iconoir icons for your iOS, macOS, and SwiftUI projects. It provides over 1000+ unique SVG icons designed on a 24x24 pixels grid, allowing you to easily use them in your app projects.

Features

  • Easily use Iconoir icons as UIImage and Image objects in your UIKit and SwiftUI projects
  • Access to all 1000+ icons from the Iconoir library
  • Easy integration with your existing iOS or macOS projects
  • MIT licensed, open-source, and free to use

Requirements

  • iOS 13+
  • macOS 10.15+
  • Swift 5+

Installation

To add Iconoir-swift to your Xcode project, follow these steps:

  1. In Xcode, open your project and navigate to File > Swift Packages > Add Package Dependency...
  2. Enter the repository URL: https://github.com/iconoir-icons/iconoir-swift.git
  3. Choose the branch or version you want to add, and click Next.
  4. Select the target where you want to use the package, then click Finish.

Usage

UIKit

import UIKit
import Iconoir_swift

let imageView = UIImageView(image: Iconoir.bell.asUIImage)

SwiftUI

import SwiftUI
import Iconoir_swift

struct ContentView: View {
    var body: some View {
        Iconoir.bell.asImage
            .foregroundColor(.blue)
            .font(.system(size: 24))
    }
}

Original Iconoir Project

Iconoir-swift is built on top of the original Iconoir project. You can access the full library of icons, as well as additional packages and usage instructions, at the Iconoir GitHub repository.

License

Iconoir-swift is released under the MIT License.

About

Swift package containing Iconoir icons.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 93.0%
  • Python 7.0%