Open SymbolsOpen Symbols
key, from Heroicons

key

From Heroicons · heroicons.key

OutlineFill

In Xcode, drag the template into an asset catalog, where it appears as heroicons.key.

Image("heroicons.key")
    .font(.title)
    .fontWeight(.semibold)

Label("Key", image: "heroicons.key")
let configuration = UIImage.SymbolConfiguration(
    pointSize: 24, weight: .semibold, scale: .medium)
let image = UIImage(named: "heroicons.key", in: nil, with: configuration)
let configuration = NSImage.SymbolConfiguration(
    pointSize: 24, weight: .semibold, scale: .medium)
let image = NSImage(named: "heroicons.key")?
    .withSymbolConfiguration(configuration)
License
MIT License, from Heroicons 2.2.0 · All of Heroicons on GitHub
Weights
Generated by SymbolKit.

key in other libraries

More from Heroicons