Skip to content

Commit

Permalink
Update Swift icon generation to output properties as members. (#64)
Browse files Browse the repository at this point in the history
* Update Swift icon generation to output properties as members.

* Regenerate Swift icons.

* Address PR comments.
  • Loading branch information
pixlwave authored Jan 9, 2024
1 parent 593bad5 commit f006a14
Show file tree
Hide file tree
Showing 306 changed files with 409 additions and 266 deletions.
115 changes: 0 additions & 115 deletions assets/ios/swift/CompoundIconTokens.swift

This file was deleted.

116 changes: 116 additions & 0 deletions assets/ios/swift/CompoundIcons.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@

//
// CompoundIcons.swift
//

import SwiftUI

public class CompoundIcons {
public let webBrowser = Image("webBrowser", bundle: Bundle.module)
public let warning = Image("warning", bundle: Bundle.module)
public let volumeOn = Image("volumeOn", bundle: Bundle.module)
public let volumeOnSolid = Image("volumeOnSolid", bundle: Bundle.module)
public let volumeOff = Image("volumeOff", bundle: Bundle.module)
public let volumeOffSolid = Image("volumeOffSolid", bundle: Bundle.module)
public let voiceCall = Image("voiceCall", bundle: Bundle.module)
public let visibilityOn = Image("visibilityOn", bundle: Bundle.module)
public let visibilityOff = Image("visibilityOff", bundle: Bundle.module)
public let videoCall = Image("videoCall", bundle: Bundle.module)
public let videoCallSolid = Image("videoCallSolid", bundle: Bundle.module)
public let videoCallOff = Image("videoCallOff", bundle: Bundle.module)
public let videoCallOffSolid = Image("videoCallOffSolid", bundle: Bundle.module)
public let videoCallMissedSolid = Image("videoCallMissedSolid", bundle: Bundle.module)
public let videoCallDeclinedSolid = Image("videoCallDeclinedSolid", bundle: Bundle.module)
public let verified = Image("verified", bundle: Bundle.module)
public let userProfile = Image("userProfile", bundle: Bundle.module)
public let userProfileSolid = Image("userProfileSolid", bundle: Bundle.module)
public let userAdd = Image("userAdd", bundle: Bundle.module)
public let userAddSolid = Image("userAddSolid", bundle: Bundle.module)
public let unknown = Image("unknown", bundle: Bundle.module)
public let unknownSolid = Image("unknownSolid", bundle: Bundle.module)
public let threads = Image("threads", bundle: Bundle.module)
public let threadsSolid = Image("threadsSolid", bundle: Bundle.module)
public let switchCameraSolid = Image("switchCameraSolid", bundle: Bundle.module)
public let spotlight = Image("spotlight", bundle: Bundle.module)
public let share = Image("share", bundle: Bundle.module)
public let shareScreenSolid = Image("shareScreenSolid", bundle: Bundle.module)
public let shareScreenOutline = Image("shareScreenOutline", bundle: Bundle.module)
public let shareAndroid = Image("shareAndroid", bundle: Bundle.module)
public let settings = Image("settings", bundle: Bundle.module)
public let settingsSolid = Image("settingsSolid", bundle: Bundle.module)
public let send = Image("send", bundle: Bundle.module)
public let sendSolid = Image("sendSolid", bundle: Bundle.module)
public let search = Image("search", bundle: Bundle.module)
public let roomAdmin = Image("roomAdmin", bundle: Bundle.module)
public let `public` = Image("public", bundle: Bundle.module)
public let popOut = Image("popOut", bundle: Bundle.module)
public let polls = Image("polls", bundle: Bundle.module)
public let pollsEnd = Image("pollsEnd", bundle: Bundle.module)
public let plus = Image("plus", bundle: Bundle.module)
public let pinOn = Image("pinOn", bundle: Bundle.module)
public let pinOff = Image("pinOff", bundle: Bundle.module)
public let overflowVertical = Image("overflowVertical", bundle: Bundle.module)
public let overflowHorizontal = Image("overflowHorizontal", bundle: Bundle.module)
public let offline = Image("offline", bundle: Bundle.module)
public let notifications = Image("notifications", bundle: Bundle.module)
public let notificationsSolid = Image("notificationsSolid", bundle: Bundle.module)
public let notificationsSolidOff = Image("notificationsSolidOff", bundle: Bundle.module)
public let notificationsOff = Image("notificationsOff", bundle: Bundle.module)
public let mobile = Image("mobile", bundle: Bundle.module)
public let micOnSolid = Image("micOnSolid", bundle: Bundle.module)
public let micOnOutline = Image("micOnOutline", bundle: Bundle.module)
public let micOffSolid = Image("micOffSolid", bundle: Bundle.module)
public let micOffOutline = Image("micOffOutline", bundle: Bundle.module)
public let menu = Image("menu", bundle: Bundle.module)
public let mention = Image("mention", bundle: Bundle.module)
public let markerReadReceipts = Image("markerReadReceipts", bundle: Bundle.module)
public let lock = Image("lock", bundle: Bundle.module)
public let lockOff = Image("lockOff", bundle: Bundle.module)
public let link = Image("link", bundle: Bundle.module)
public let leave = Image("leave", bundle: Bundle.module)
public let info = Image("info", bundle: Bundle.module)
public let infoSolid = Image("infoSolid", bundle: Bundle.module)
public let image = Image("image", bundle: Bundle.module)
public let host = Image("host", bundle: Bundle.module)
public let help = Image("help", bundle: Bundle.module)
public let helpSolid = Image("helpSolid", bundle: Bundle.module)
public let grid = Image("grid", bundle: Bundle.module)
public let filter = Image("filter", bundle: Bundle.module)
public let files = Image("files", bundle: Bundle.module)
public let favouriteOn = Image("favouriteOn", bundle: Bundle.module)
public let favouriteOff = Image("favouriteOff", bundle: Bundle.module)
public let extensions = Image("extensions", bundle: Bundle.module)
public let exportArchive = Image("exportArchive", bundle: Bundle.module)
public let expand = Image("expand", bundle: Bundle.module)
public let error = Image("error", bundle: Bundle.module)
public let endCall = Image("endCall", bundle: Bundle.module)
public let email = Image("email", bundle: Bundle.module)
public let emailSolid = Image("emailSolid", bundle: Bundle.module)
public let edit = Image("edit", bundle: Bundle.module)
public let dragList = Image("dragList", bundle: Bundle.module)
public let dragGrid = Image("dragGrid", bundle: Bundle.module)
public let download = Image("download", bundle: Bundle.module)
public let delete = Image("delete", bundle: Bundle.module)
public let darkMode = Image("darkMode", bundle: Bundle.module)
public let computer = Image("computer", bundle: Bundle.module)
public let company = Image("company", bundle: Bundle.module)
public let collapse = Image("collapse", bundle: Bundle.module)
public let close = Image("close", bundle: Bundle.module)
public let chevronUp = Image("chevronUp", bundle: Bundle.module)
public let chevronUpDown = Image("chevronUpDown", bundle: Bundle.module)
public let chevronRight = Image("chevronRight", bundle: Bundle.module)
public let chevronLeft = Image("chevronLeft", bundle: Bundle.module)
public let chevronDown = Image("chevronDown", bundle: Bundle.module)
public let check = Image("check", bundle: Bundle.module)
public let checkCircle = Image("checkCircle", bundle: Bundle.module)
public let checkCircleSolid = Image("checkCircleSolid", bundle: Bundle.module)
public let chat = Image("chat", bundle: Bundle.module)
public let chatSolid = Image("chatSolid", bundle: Bundle.module)
public let chatProblem = Image("chatProblem", bundle: Bundle.module)
public let chatNew = Image("chatNew", bundle: Bundle.module)
public let block = Image("block", bundle: Bundle.module)
public let arrowUpRight = Image("arrowUpRight", bundle: Bundle.module)
public let arrowRight = Image("arrowRight", bundle: Bundle.module)
public let arrowLeft = Image("arrowLeft", bundle: Bundle.module)
public init() { }
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"images":[{"filename":"iconBlock.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
{"images":[{"filename":"arrowLeft.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"images":[{"filename":"iconDelete.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
{"images":[{"filename":"arrowRight.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"images":[{"filename":"iconCollapse.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
{"images":[{"filename":"arrowUpRight.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"images":[{"filename":"block.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"images":[{"filename":"chat.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"images":[{"filename":"chatNew.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"images":[{"filename":"iconChatNew.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
{"images":[{"filename":"chatProblem.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"images":[{"filename":"iconCheck.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
{"images":[{"filename":"chatSolid.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"images":[{"filename":"check.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Loading

0 comments on commit f006a14

Please sign in to comment.