Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Icons

Reference

Vitamin icons are all available under the namespace Vitamix.

Each icon exists in two variants, fill and line. Each variant has its own sub-namespace: Vitamix.Fill and Vitamix.Line. In these sub-namspaces, icons are grouped by category.

All icons are PDF vectors, and can be thus resized without loss.

import UIKit
import Vitamin

let heartFill: UIImage = Vitamix.Fill.Health.heart.image

let eyeLine: UIImage = Vitamix.Line.System.eye.image

By default, icon color is black. If you need to change the color, using a color of the VitaminColor namespace, you can do that by embedding the image in an UIImageView, and changing the tintColor:

import UIKit
import Vitamin

let imageView = UIImageView()

// The icon should not be stretched, aspect ratio should be preserved
imageView.contentMode = .scaleAspectFit
imageView.image = Vitamix.Fill.Health.heart.image.withRenderingMode(.alwaysTemplate)
imageView.tintColor = VitaminColor.Core.Content.negative

TIP: During development, you can launch the showcase of this project, and in the Icons section, when you click on an icon, its full name will be copied in your clipboard, to allow you pasting it quickly in your code.