From 3ac1f2dcdc7f1e3af8b675427abed91e755bfe53 Mon Sep 17 00:00:00 2001 From: Kingtak Justin Wong Date: Sat, 24 Sep 2022 19:19:24 -0700 Subject: [PATCH] Regenerated files from newly built system --- AwesomeEnum.xcodeproj/project.pbxproj | 14 +- Classes/Enums/Awesome.swift | 333 ++++----- Classes/Enums/AwesomePro.swift | 967 +++++++++++++------------ Classes/Extensions/Amazing+Tools.swift | 102 --- Classes/Libs/Fonts.swift | 88 --- 5 files changed, 668 insertions(+), 836 deletions(-) diff --git a/AwesomeEnum.xcodeproj/project.pbxproj b/AwesomeEnum.xcodeproj/project.pbxproj index 395a74e..ddc62f3 100644 --- a/AwesomeEnum.xcodeproj/project.pbxproj +++ b/AwesomeEnum.xcodeproj/project.pbxproj @@ -67,6 +67,14 @@ D06BBAB728DB11E8001F2802 /* SwiftUI+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D06BBAB528DB11E4001F2802 /* SwiftUI+Extensions.swift */; }; D06BBAB828DB11E8001F2802 /* SwiftUI+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D06BBAB528DB11E4001F2802 /* SwiftUI+Extensions.swift */; }; D06BBAB928DB11E8001F2802 /* SwiftUI+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D06BBAB528DB11E4001F2802 /* SwiftUI+Extensions.swift */; }; + D0F6554F28DB013F00667700 /* Awesome+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554D28DB013E00667700 /* Awesome+Extension.swift */; }; + D0F6555028DB013F00667700 /* Awesome+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554D28DB013E00667700 /* Awesome+Extension.swift */; }; + D0F6555128DB013F00667700 /* Awesome+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554D28DB013E00667700 /* Awesome+Extension.swift */; }; + D0F6555228DB013F00667700 /* Awesome+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554D28DB013E00667700 /* Awesome+Extension.swift */; }; + D0F6555328DB013F00667700 /* AwesomePro+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554E28DB013F00667700 /* AwesomePro+Extension.swift */; }; + D0F6555428DB013F00667700 /* AwesomePro+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554E28DB013F00667700 /* AwesomePro+Extension.swift */; }; + D0F6555528DB013F00667700 /* AwesomePro+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554E28DB013F00667700 /* AwesomePro+Extension.swift */; }; + D0F6555628DB013F00667700 /* AwesomePro+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F6554E28DB013F00667700 /* AwesomePro+Extension.swift */; }; D0FE71CA28DFE8B900B12687 /* Amazing+Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0FE71C928DFE8B900B12687 /* Amazing+Image.swift */; }; D0FE71CB28DFE8B900B12687 /* Amazing+Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0FE71C928DFE8B900B12687 /* Amazing+Image.swift */; }; D0FE71CC28DFE8B900B12687 /* Amazing+Image.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0FE71C928DFE8B900B12687 /* Amazing+Image.swift */; }; @@ -173,7 +181,7 @@ 15116D2320761C3300BC08D3 /* Classes */ = { isa = PBXGroup; children = ( - D05F130E28D83EBB0089495D /* Swift UI */, + D05F130E28D83EBB0089495D /* SwiftUI */, 63DD7B6F27C5AC7500F6DD0A /* Assets */, 15116D2420761C3300BC08D3 /* Enums */, 15116D2620761C3300BC08D3 /* Extensions */, @@ -281,13 +289,13 @@ path = Assets; sourceTree = ""; }; - D05F130E28D83EBB0089495D /* Swift UI */ = { + D05F130E28D83EBB0089495D /* SwiftUI */ = { isa = PBXGroup; children = ( D06BBAB528DB11E4001F2802 /* SwiftUI+Extensions.swift */, D05F130928D83EAC0089495D /* Awesome+Image.swift */, ); - path = "Swift UI"; + path = SwiftUI; sourceTree = ""; }; /* End PBXGroup section */ diff --git a/Classes/Enums/Awesome.swift b/Classes/Enums/Awesome.swift index 27246fd..57685bf 100644 --- a/Classes/Enums/Awesome.swift +++ b/Classes/Enums/Awesome.swift @@ -1,16 +1,174 @@ // // Awesome.swift -// AwesomeEnum +// Awesome // // Originally created by Ondrej Rafaj on 13/10/2017. -// Copyright © 2017 manGoweb UK. All rights reserved. +// Copyright ©2022 manGoweb UK. All rights reserved. // -// This file has been auto-generated on 27/02/2022 16:18. +// This file has been auto-generated on 24/09/2022 19:03). import Foundation - public struct Awesome { + public enum Regular: String, Amazing { + case addressBook = "\u{f2b9}" + case addressCard = "\u{f2bb}" + case angry = "\u{f556}" + case arrowAltCircleDown = "\u{f358}" + case arrowAltCircleLeft = "\u{f359}" + case arrowAltCircleRight = "\u{f35a}" + case arrowAltCircleUp = "\u{f35b}" + case bell = "\u{f0f3}" + case bellSlash = "\u{f1f6}" + case bookmark = "\u{f02e}" + case building = "\u{f1ad}" + case calendar = "\u{f133}" + case calendarAlt = "\u{f073}" + case calendarCheck = "\u{f274}" + case calendarMinus = "\u{f272}" + case calendarPlus = "\u{f271}" + case calendarTimes = "\u{f273}" + case caretSquareDown = "\u{f150}" + case caretSquareLeft = "\u{f191}" + case caretSquareRight = "\u{f152}" + case caretSquareUp = "\u{f151}" + case chartBar = "\u{f080}" + case checkCircle = "\u{f058}" + case checkSquare = "\u{f14a}" + case circle = "\u{f111}" + case clipboard = "\u{f328}" + case clock = "\u{f017}" + case clone = "\u{f24d}" + case closedCaptioning = "\u{f20a}" + case comment = "\u{f075}" + case commentAlt = "\u{f27a}" + case commentDots = "\u{f4ad}" + case comments = "\u{f086}" + case compass = "\u{f14e}" + case copy = "\u{f0c5}" + case copyright = "\u{f1f9}" + case creditCard = "\u{f09d}" + case dizzy = "\u{f567}" + case dotCircle = "\u{f192}" + case edit = "\u{f044}" + case envelope = "\u{f0e0}" + case envelopeOpen = "\u{f2b6}" + case eye = "\u{f06e}" + case eyeSlash = "\u{f070}" + case file = "\u{f15b}" + case fileAlt = "\u{f15c}" + case fileArchive = "\u{f1c6}" + case fileAudio = "\u{f1c7}" + case fileCode = "\u{f1c9}" + case fileExcel = "\u{f1c3}" + case fileImage = "\u{f1c5}" + case filePdf = "\u{f1c1}" + case filePowerpoint = "\u{f1c4}" + case fileVideo = "\u{f1c8}" + case fileWord = "\u{f1c2}" + case flag = "\u{f024}" + case flushed = "\u{f579}" + case folder = "\u{f07b}" + case folderOpen = "\u{f07c}" + case frown = "\u{f119}" + case frownOpen = "\u{f57a}" + case futbol = "\u{f1e3}" + case gem = "\u{f3a5}" + case grimace = "\u{f57f}" + case grin = "\u{f580}" + case grinAlt = "\u{f581}" + case grinBeam = "\u{f582}" + case grinBeamSweat = "\u{f583}" + case grinHearts = "\u{f584}" + case grinSquint = "\u{f585}" + case grinSquintTears = "\u{f586}" + case grinStars = "\u{f587}" + case grinTears = "\u{f588}" + case grinTongue = "\u{f589}" + case grinTongueSquint = "\u{f58a}" + case grinTongueWink = "\u{f58b}" + case grinWink = "\u{f58c}" + case handLizard = "\u{f258}" + case handPaper = "\u{f256}" + case handPeace = "\u{f25b}" + case handPointDown = "\u{f0a7}" + case handPointLeft = "\u{f0a5}" + case handPointRight = "\u{f0a4}" + case handPointUp = "\u{f0a6}" + case handPointer = "\u{f25a}" + case handRock = "\u{f255}" + case handScissors = "\u{f257}" + case handSpock = "\u{f259}" + case handshake = "\u{f2b5}" + case hdd = "\u{f0a0}" + case heart = "\u{f004}" + case hospital = "\u{f0f8}" + case hourglass = "\u{f254}" + case idBadge = "\u{f2c1}" + case idCard = "\u{f2c2}" + case image = "\u{f03e}" + case images = "\u{f302}" + case keyboard = "\u{f11c}" + case kiss = "\u{f596}" + case kissBeam = "\u{f597}" + case kissWinkHeart = "\u{f598}" + case laugh = "\u{f599}" + case laughBeam = "\u{f59a}" + case laughSquint = "\u{f59b}" + case laughWink = "\u{f59c}" + case lemon = "\u{f094}" + case lifeRing = "\u{f1cd}" + case lightbulb = "\u{f0eb}" + case listAlt = "\u{f022}" + case map = "\u{f279}" + case meh = "\u{f11a}" + case mehBlank = "\u{f5a4}" + case mehRollingEyes = "\u{f5a5}" + case minusSquare = "\u{f146}" + case moneyBillAlt = "\u{f3d1}" + case moon = "\u{f186}" + case newspaper = "\u{f1ea}" + case objectGroup = "\u{f247}" + case objectUngroup = "\u{f248}" + case paperPlane = "\u{f1d8}" + case pauseCircle = "\u{f28b}" + case playCircle = "\u{f144}" + case plusSquare = "\u{f0fe}" + case questionCircle = "\u{f059}" + case registered = "\u{f25d}" + case sadCry = "\u{f5b3}" + case sadTear = "\u{f5b4}" + case save = "\u{f0c7}" + case shareSquare = "\u{f14d}" + case smile = "\u{f118}" + case smileBeam = "\u{f5b8}" + case smileWink = "\u{f4da}" + case snowflake = "\u{f2dc}" + case square = "\u{f0c8}" + case star = "\u{f005}" + case starHalf = "\u{f089}" + case stickyNote = "\u{f249}" + case stopCircle = "\u{f28d}" + case sun = "\u{f185}" + case surprise = "\u{f5c2}" + case thumbsDown = "\u{f165}" + case thumbsUp = "\u{f164}" + case timesCircle = "\u{f057}" + case tired = "\u{f5c8}" + case trashAlt = "\u{f2ed}" + case user = "\u{f007}" + case userCircle = "\u{f2bd}" + case windowClose = "\u{f410}" + case windowMaximize = "\u{f2d0}" + case windowMinimize = "\u{f2d1}" + case windowRestore = "\u{f2d2}" + public static func withKey(_ label: String) -> Regular? { + return self.allCases.first { label == "\($0)" } + } + public var fontType: AwesomeFont { + return Awesome.Font.Classic.regular + } + } public enum Brand: String, Amazing { case fa500px = "\u{f26e}" case accessibleIcon = "\u{f368}" @@ -469,11 +627,13 @@ public struct Awesome { case youtubeSquare = "\u{f431}" case zhihu = "\u{f63f}" + public static func withKey(_ label: String) -> Brand? { + return self.allCases.first { label == "\($0)" } + } public var fontType: AwesomeFont { - return Awesome.Font.brand + return Awesome.Font.Classic.brand } } - public enum Solid: String, Amazing { case ad = "\u{f641}" case addressBook = "\u{f2b9}" @@ -1477,166 +1637,11 @@ public struct Awesome { case yenSign = "\u{f157}" case yinYang = "\u{f6ad}" - public var fontType: AwesomeFont { - return Awesome.Font.solid + public static func withKey(_ label: String) -> Solid? { + return self.allCases.first { label == "\($0)" } } - } - - public enum Regular: String, Amazing { - case addressBook = "\u{f2b9}" - case addressCard = "\u{f2bb}" - case angry = "\u{f556}" - case arrowAltCircleDown = "\u{f358}" - case arrowAltCircleLeft = "\u{f359}" - case arrowAltCircleRight = "\u{f35a}" - case arrowAltCircleUp = "\u{f35b}" - case bell = "\u{f0f3}" - case bellSlash = "\u{f1f6}" - case bookmark = "\u{f02e}" - case building = "\u{f1ad}" - case calendar = "\u{f133}" - case calendarAlt = "\u{f073}" - case calendarCheck = "\u{f274}" - case calendarMinus = "\u{f272}" - case calendarPlus = "\u{f271}" - case calendarTimes = "\u{f273}" - case caretSquareDown = "\u{f150}" - case caretSquareLeft = "\u{f191}" - case caretSquareRight = "\u{f152}" - case caretSquareUp = "\u{f151}" - case chartBar = "\u{f080}" - case checkCircle = "\u{f058}" - case checkSquare = "\u{f14a}" - case circle = "\u{f111}" - case clipboard = "\u{f328}" - case clock = "\u{f017}" - case clone = "\u{f24d}" - case closedCaptioning = "\u{f20a}" - case comment = "\u{f075}" - case commentAlt = "\u{f27a}" - case commentDots = "\u{f4ad}" - case comments = "\u{f086}" - case compass = "\u{f14e}" - case copy = "\u{f0c5}" - case copyright = "\u{f1f9}" - case creditCard = "\u{f09d}" - case dizzy = "\u{f567}" - case dotCircle = "\u{f192}" - case edit = "\u{f044}" - case envelope = "\u{f0e0}" - case envelopeOpen = "\u{f2b6}" - case eye = "\u{f06e}" - case eyeSlash = "\u{f070}" - case file = "\u{f15b}" - case fileAlt = "\u{f15c}" - case fileArchive = "\u{f1c6}" - case fileAudio = "\u{f1c7}" - case fileCode = "\u{f1c9}" - case fileExcel = "\u{f1c3}" - case fileImage = "\u{f1c5}" - case filePdf = "\u{f1c1}" - case filePowerpoint = "\u{f1c4}" - case fileVideo = "\u{f1c8}" - case fileWord = "\u{f1c2}" - case flag = "\u{f024}" - case flushed = "\u{f579}" - case folder = "\u{f07b}" - case folderOpen = "\u{f07c}" - case frown = "\u{f119}" - case frownOpen = "\u{f57a}" - case futbol = "\u{f1e3}" - case gem = "\u{f3a5}" - case grimace = "\u{f57f}" - case grin = "\u{f580}" - case grinAlt = "\u{f581}" - case grinBeam = "\u{f582}" - case grinBeamSweat = "\u{f583}" - case grinHearts = "\u{f584}" - case grinSquint = "\u{f585}" - case grinSquintTears = "\u{f586}" - case grinStars = "\u{f587}" - case grinTears = "\u{f588}" - case grinTongue = "\u{f589}" - case grinTongueSquint = "\u{f58a}" - case grinTongueWink = "\u{f58b}" - case grinWink = "\u{f58c}" - case handLizard = "\u{f258}" - case handPaper = "\u{f256}" - case handPeace = "\u{f25b}" - case handPointDown = "\u{f0a7}" - case handPointLeft = "\u{f0a5}" - case handPointRight = "\u{f0a4}" - case handPointUp = "\u{f0a6}" - case handPointer = "\u{f25a}" - case handRock = "\u{f255}" - case handScissors = "\u{f257}" - case handSpock = "\u{f259}" - case handshake = "\u{f2b5}" - case hdd = "\u{f0a0}" - case heart = "\u{f004}" - case hospital = "\u{f0f8}" - case hourglass = "\u{f254}" - case idBadge = "\u{f2c1}" - case idCard = "\u{f2c2}" - case image = "\u{f03e}" - case images = "\u{f302}" - case keyboard = "\u{f11c}" - case kiss = "\u{f596}" - case kissBeam = "\u{f597}" - case kissWinkHeart = "\u{f598}" - case laugh = "\u{f599}" - case laughBeam = "\u{f59a}" - case laughSquint = "\u{f59b}" - case laughWink = "\u{f59c}" - case lemon = "\u{f094}" - case lifeRing = "\u{f1cd}" - case lightbulb = "\u{f0eb}" - case listAlt = "\u{f022}" - case map = "\u{f279}" - case meh = "\u{f11a}" - case mehBlank = "\u{f5a4}" - case mehRollingEyes = "\u{f5a5}" - case minusSquare = "\u{f146}" - case moneyBillAlt = "\u{f3d1}" - case moon = "\u{f186}" - case newspaper = "\u{f1ea}" - case objectGroup = "\u{f247}" - case objectUngroup = "\u{f248}" - case paperPlane = "\u{f1d8}" - case pauseCircle = "\u{f28b}" - case playCircle = "\u{f144}" - case plusSquare = "\u{f0fe}" - case questionCircle = "\u{f059}" - case registered = "\u{f25d}" - case sadCry = "\u{f5b3}" - case sadTear = "\u{f5b4}" - case save = "\u{f0c7}" - case shareSquare = "\u{f14d}" - case smile = "\u{f118}" - case smileBeam = "\u{f5b8}" - case smileWink = "\u{f4da}" - case snowflake = "\u{f2dc}" - case square = "\u{f0c8}" - case star = "\u{f005}" - case starHalf = "\u{f089}" - case stickyNote = "\u{f249}" - case stopCircle = "\u{f28d}" - case sun = "\u{f185}" - case surprise = "\u{f5c2}" - case thumbsDown = "\u{f165}" - case thumbsUp = "\u{f164}" - case timesCircle = "\u{f057}" - case tired = "\u{f5c8}" - case trashAlt = "\u{f2ed}" - case user = "\u{f007}" - case userCircle = "\u{f2bd}" - case windowClose = "\u{f410}" - case windowMaximize = "\u{f2d0}" - case windowMinimize = "\u{f2d1}" - case windowRestore = "\u{f2d2}" - public var fontType: AwesomeFont { - return Awesome.Font.regular + return Awesome.Font.Classic.solid } } diff --git a/Classes/Enums/AwesomePro.swift b/Classes/Enums/AwesomePro.swift index f8882b7..2f9d310 100644 --- a/Classes/Enums/AwesomePro.swift +++ b/Classes/Enums/AwesomePro.swift @@ -1,17 +1,15 @@ // // AwesomePro.swift -// AwesomeEnum +// Awesome // // Originally created by Ondrej Rafaj on 13/10/2017. -// Copyright © 2017 manGoweb UK. All rights reserved. +// Copyright ©2022 manGoweb UK. All rights reserved. // -// This file has been auto-generated on 27/02/2022 16:18. +// This file has been auto-generated on 24/09/2022 19:03). import Foundation - public struct AwesomePro { - - public enum Regular: String, Amazing { + public enum Duotone: String, Amazing { case abacus = "\u{f640}" case acorn = "\u{f6ae}" case ad = "\u{f641}" @@ -1865,475 +1863,14 @@ public struct AwesomePro { case yenSign = "\u{f157}" case yinYang = "\u{f6ad}" + public static func withKey(_ label: String) -> Duotone? { + return self.allCases.first { label == "\($0)" } + } public var fontType: AwesomeFont { - return AwesomePro.Font.regular + return AwesomePro.Font.Classic.duotone } } - - public enum Brand: String, Amazing { - case fa500px = "\u{f26e}" - case accessibleIcon = "\u{f368}" - case accusoft = "\u{f369}" - case acquisitionsIncorporated = "\u{f6af}" - case adn = "\u{f170}" - case adversal = "\u{f36a}" - case affiliatetheme = "\u{f36b}" - case airbnb = "\u{f834}" - case algolia = "\u{f36c}" - case alipay = "\u{f642}" - case amazon = "\u{f270}" - case amazonPay = "\u{f42c}" - case amilia = "\u{f36d}" - case android = "\u{f17b}" - case angellist = "\u{f209}" - case angrycreative = "\u{f36e}" - case angular = "\u{f420}" - case appStore = "\u{f36f}" - case appStoreIos = "\u{f370}" - case apper = "\u{f371}" - case apple = "\u{f179}" - case applePay = "\u{f415}" - case artstation = "\u{f77a}" - case asymmetrik = "\u{f372}" - case atlassian = "\u{f77b}" - case audible = "\u{f373}" - case autoprefixer = "\u{f41c}" - case avianex = "\u{f374}" - case aviato = "\u{f421}" - case aws = "\u{f375}" - case bandcamp = "\u{f2d5}" - case battleNet = "\u{f835}" - case behance = "\u{f1b4}" - case behanceSquare = "\u{f1b5}" - case bimobject = "\u{f378}" - case bitbucket = "\u{f171}" - case bitcoin = "\u{f379}" - case bity = "\u{f37a}" - case blackTie = "\u{f27e}" - case blackberry = "\u{f37b}" - case blogger = "\u{f37c}" - case bloggerB = "\u{f37d}" - case bluetooth = "\u{f293}" - case bluetoothB = "\u{f294}" - case bootstrap = "\u{f836}" - case btc = "\u{f15a}" - case buffer = "\u{f837}" - case buromobelexperte = "\u{f37f}" - case buyNLarge = "\u{f8a6}" - case buysellads = "\u{f20d}" - case canadianMapleLeaf = "\u{f785}" - case ccAmazonPay = "\u{f42d}" - case ccAmex = "\u{f1f3}" - case ccApplePay = "\u{f416}" - case ccDinersClub = "\u{f24c}" - case ccDiscover = "\u{f1f2}" - case ccJcb = "\u{f24b}" - case ccMastercard = "\u{f1f1}" - case ccPaypal = "\u{f1f4}" - case ccStripe = "\u{f1f5}" - case ccVisa = "\u{f1f0}" - case centercode = "\u{f380}" - case centos = "\u{f789}" - case chrome = "\u{f268}" - case chromecast = "\u{f838}" - case cloudflare = "\u{e07d}" - case cloudscale = "\u{f383}" - case cloudsmith = "\u{f384}" - case cloudversify = "\u{f385}" - case codepen = "\u{f1cb}" - case codiepie = "\u{f284}" - case confluence = "\u{f78d}" - case connectdevelop = "\u{f20e}" - case contao = "\u{f26d}" - case cottonBureau = "\u{f89e}" - case cpanel = "\u{f388}" - case creativeCommons = "\u{f25e}" - case creativeCommonsBy = "\u{f4e7}" - case creativeCommonsNc = "\u{f4e8}" - case creativeCommonsNcEu = "\u{f4e9}" - case creativeCommonsNcJp = "\u{f4ea}" - case creativeCommonsNd = "\u{f4eb}" - case creativeCommonsPd = "\u{f4ec}" - case creativeCommonsPdAlt = "\u{f4ed}" - case creativeCommonsRemix = "\u{f4ee}" - case creativeCommonsSa = "\u{f4ef}" - case creativeCommonsSampling = "\u{f4f0}" - case creativeCommonsSamplingPlus = "\u{f4f1}" - case creativeCommonsShare = "\u{f4f2}" - case creativeCommonsZero = "\u{f4f3}" - case criticalRole = "\u{f6c9}" - case css3 = "\u{f13c}" - case css3Alt = "\u{f38b}" - case cuttlefish = "\u{f38c}" - case dAndD = "\u{f38d}" - case dAndDBeyond = "\u{f6ca}" - case dailymotion = "\u{e052}" - case dashcube = "\u{f210}" - case deezer = "\u{e077}" - case delicious = "\u{f1a5}" - case deploydog = "\u{f38e}" - case deskpro = "\u{f38f}" - case dev = "\u{f6cc}" - case deviantart = "\u{f1bd}" - case dhl = "\u{f790}" - case diaspora = "\u{f791}" - case digg = "\u{f1a6}" - case digitalOcean = "\u{f391}" - case discord = "\u{f392}" - case discourse = "\u{f393}" - case dochub = "\u{f394}" - case docker = "\u{f395}" - case draft2digital = "\u{f396}" - case dribbble = "\u{f17d}" - case dribbbleSquare = "\u{f397}" - case dropbox = "\u{f16b}" - case drupal = "\u{f1a9}" - case dyalog = "\u{f399}" - case earlybirds = "\u{f39a}" - case ebay = "\u{f4f4}" - case edge = "\u{f282}" - case edgeLegacy = "\u{e078}" - case elementor = "\u{f430}" - case ello = "\u{f5f1}" - case ember = "\u{f423}" - case empire = "\u{f1d1}" - case envira = "\u{f299}" - case erlang = "\u{f39d}" - case ethereum = "\u{f42e}" - case etsy = "\u{f2d7}" - case evernote = "\u{f839}" - case expeditedssl = "\u{f23e}" - case facebook = "\u{f09a}" - case facebookF = "\u{f39e}" - case facebookMessenger = "\u{f39f}" - case facebookSquare = "\u{f082}" - case fantasyFlightGames = "\u{f6dc}" - case fedex = "\u{f797}" - case fedora = "\u{f798}" - case figma = "\u{f799}" - case firefox = "\u{f269}" - case firefoxBrowser = "\u{e007}" - case firstOrder = "\u{f2b0}" - case firstOrderAlt = "\u{f50a}" - case firstdraft = "\u{f3a1}" - case flickr = "\u{f16e}" - case flipboard = "\u{f44d}" - case fly = "\u{f417}" - case fontAwesome = "\u{f2b4}" - case fontAwesomeAlt = "\u{f35c}" - case fontAwesomeFlag = "\u{f425}" - case fonticons = "\u{f280}" - case fonticonsFi = "\u{f3a2}" - case fortAwesome = "\u{f286}" - case fortAwesomeAlt = "\u{f3a3}" - case forumbee = "\u{f211}" - case foursquare = "\u{f180}" - case freeCodeCamp = "\u{f2c5}" - case freebsd = "\u{f3a4}" - case fulcrum = "\u{f50b}" - case galacticRepublic = "\u{f50c}" - case galacticSenate = "\u{f50d}" - case getPocket = "\u{f265}" - case gg = "\u{f260}" - case ggCircle = "\u{f261}" - case git = "\u{f1d3}" - case gitAlt = "\u{f841}" - case gitSquare = "\u{f1d2}" - case github = "\u{f09b}" - case githubAlt = "\u{f113}" - case githubSquare = "\u{f092}" - case gitkraken = "\u{f3a6}" - case gitlab = "\u{f296}" - case gitter = "\u{f426}" - case glide = "\u{f2a5}" - case glideG = "\u{f2a6}" - case gofore = "\u{f3a7}" - case goodreads = "\u{f3a8}" - case goodreadsG = "\u{f3a9}" - case google = "\u{f1a0}" - case googleDrive = "\u{f3aa}" - case googlePay = "\u{e079}" - case googlePlay = "\u{f3ab}" - case googlePlus = "\u{f2b3}" - case googlePlusG = "\u{f0d5}" - case googlePlusSquare = "\u{f0d4}" - case googleWallet = "\u{f1ee}" - case gratipay = "\u{f184}" - case grav = "\u{f2d6}" - case gripfire = "\u{f3ac}" - case grunt = "\u{f3ad}" - case guilded = "\u{e07e}" - case gulp = "\u{f3ae}" - case hackerNews = "\u{f1d4}" - case hackerNewsSquare = "\u{f3af}" - case hackerrank = "\u{f5f7}" - case hips = "\u{f452}" - case hireAHelper = "\u{f3b0}" - case hive = "\u{e07f}" - case hooli = "\u{f427}" - case hornbill = "\u{f592}" - case hotjar = "\u{f3b1}" - case houzz = "\u{f27c}" - case html5 = "\u{f13b}" - case hubspot = "\u{f3b2}" - case ideal = "\u{e013}" - case imdb = "\u{f2d8}" - case innosoft = "\u{e080}" - case instagram = "\u{f16d}" - case instagramSquare = "\u{e055}" - case instalod = "\u{e081}" - case intercom = "\u{f7af}" - case internetExplorer = "\u{f26b}" - case invision = "\u{f7b0}" - case ioxhost = "\u{f208}" - case itchIo = "\u{f83a}" - case itunes = "\u{f3b4}" - case itunesNote = "\u{f3b5}" - case java = "\u{f4e4}" - case jediOrder = "\u{f50e}" - case jenkins = "\u{f3b6}" - case jira = "\u{f7b1}" - case joget = "\u{f3b7}" - case joomla = "\u{f1aa}" - case js = "\u{f3b8}" - case jsSquare = "\u{f3b9}" - case jsfiddle = "\u{f1cc}" - case kaggle = "\u{f5fa}" - case keybase = "\u{f4f5}" - case keycdn = "\u{f3ba}" - case kickstarter = "\u{f3bb}" - case kickstarterK = "\u{f3bc}" - case korvue = "\u{f42f}" - case laravel = "\u{f3bd}" - case lastfm = "\u{f202}" - case lastfmSquare = "\u{f203}" - case leanpub = "\u{f212}" - case less = "\u{f41d}" - case line = "\u{f3c0}" - case linkedin = "\u{f08c}" - case linkedinIn = "\u{f0e1}" - case linode = "\u{f2b8}" - case linux = "\u{f17c}" - case lyft = "\u{f3c3}" - case magento = "\u{f3c4}" - case mailchimp = "\u{f59e}" - case mandalorian = "\u{f50f}" - case markdown = "\u{f60f}" - case mastodon = "\u{f4f6}" - case maxcdn = "\u{f136}" - case mdb = "\u{f8ca}" - case medapps = "\u{f3c6}" - case medium = "\u{f23a}" - case mediumM = "\u{f3c7}" - case medrt = "\u{f3c8}" - case meetup = "\u{f2e0}" - case megaport = "\u{f5a3}" - case mendeley = "\u{f7b3}" - case microblog = "\u{e01a}" - case microsoft = "\u{f3ca}" - case mix = "\u{f3cb}" - case mixcloud = "\u{f289}" - case mixer = "\u{e056}" - case mizuni = "\u{f3cc}" - case modx = "\u{f285}" - case monero = "\u{f3d0}" - case napster = "\u{f3d2}" - case neos = "\u{f612}" - case nimblr = "\u{f5a8}" - case node = "\u{f419}" - case nodeJs = "\u{f3d3}" - case npm = "\u{f3d4}" - case ns8 = "\u{f3d5}" - case nutritionix = "\u{f3d6}" - case octopusDeploy = "\u{e082}" - case odnoklassniki = "\u{f263}" - case odnoklassnikiSquare = "\u{f264}" - case oldRepublic = "\u{f510}" - case opencart = "\u{f23d}" - case openid = "\u{f19b}" - case opera = "\u{f26a}" - case optinMonster = "\u{f23c}" - case orcid = "\u{f8d2}" - case osi = "\u{f41a}" - case page4 = "\u{f3d7}" - case pagelines = "\u{f18c}" - case palfed = "\u{f3d8}" - case patreon = "\u{f3d9}" - case paypal = "\u{f1ed}" - case pennyArcade = "\u{f704}" - case perbyte = "\u{e083}" - case periscope = "\u{f3da}" - case phabricator = "\u{f3db}" - case phoenixFramework = "\u{f3dc}" - case phoenixSquadron = "\u{f511}" - case php = "\u{f457}" - case piedPiper = "\u{f2ae}" - case piedPiperAlt = "\u{f1a8}" - case piedPiperHat = "\u{f4e5}" - case piedPiperPp = "\u{f1a7}" - case piedPiperSquare = "\u{e01e}" - case pinterest = "\u{f0d2}" - case pinterestP = "\u{f231}" - case pinterestSquare = "\u{f0d3}" - case playstation = "\u{f3df}" - case productHunt = "\u{f288}" - case pushed = "\u{f3e1}" - case python = "\u{f3e2}" - case qq = "\u{f1d6}" - case quinscape = "\u{f459}" - case quora = "\u{f2c4}" - case rProject = "\u{f4f7}" - case raspberryPi = "\u{f7bb}" - case ravelry = "\u{f2d9}" - case react = "\u{f41b}" - case reacteurope = "\u{f75d}" - case readme = "\u{f4d5}" - case rebel = "\u{f1d0}" - case redRiver = "\u{f3e3}" - case reddit = "\u{f1a1}" - case redditAlien = "\u{f281}" - case redditSquare = "\u{f1a2}" - case redhat = "\u{f7bc}" - case renren = "\u{f18b}" - case replyd = "\u{f3e6}" - case researchgate = "\u{f4f8}" - case resolving = "\u{f3e7}" - case rev = "\u{f5b2}" - case rocketchat = "\u{f3e8}" - case rockrms = "\u{f3e9}" - case rust = "\u{e07a}" - case safari = "\u{f267}" - case salesforce = "\u{f83b}" - case sass = "\u{f41e}" - case schlix = "\u{f3ea}" - case scribd = "\u{f28a}" - case searchengin = "\u{f3eb}" - case sellcast = "\u{f2da}" - case sellsy = "\u{f213}" - case servicestack = "\u{f3ec}" - case shirtsinbulk = "\u{f214}" - case shopify = "\u{e057}" - case shopware = "\u{f5b5}" - case simplybuilt = "\u{f215}" - case sistrix = "\u{f3ee}" - case sith = "\u{f512}" - case sketch = "\u{f7c6}" - case skyatlas = "\u{f216}" - case skype = "\u{f17e}" - case slack = "\u{f198}" - case slackHash = "\u{f3ef}" - case slideshare = "\u{f1e7}" - case snapchat = "\u{f2ab}" - case snapchatGhost = "\u{f2ac}" - case snapchatSquare = "\u{f2ad}" - case soundcloud = "\u{f1be}" - case sourcetree = "\u{f7d3}" - case speakap = "\u{f3f3}" - case speakerDeck = "\u{f83c}" - case spotify = "\u{f1bc}" - case squarespace = "\u{f5be}" - case stackExchange = "\u{f18d}" - case stackOverflow = "\u{f16c}" - case stackpath = "\u{f842}" - case staylinked = "\u{f3f5}" - case steam = "\u{f1b6}" - case steamSquare = "\u{f1b7}" - case steamSymbol = "\u{f3f6}" - case stickerMule = "\u{f3f7}" - case strava = "\u{f428}" - case stripe = "\u{f429}" - case stripeS = "\u{f42a}" - case studiovinari = "\u{f3f8}" - case stumbleupon = "\u{f1a4}" - case stumbleuponCircle = "\u{f1a3}" - case superpowers = "\u{f2dd}" - case supple = "\u{f3f9}" - case suse = "\u{f7d6}" - case swift = "\u{f8e1}" - case symfony = "\u{f83d}" - case teamspeak = "\u{f4f9}" - case telegram = "\u{f2c6}" - case telegramPlane = "\u{f3fe}" - case tencentWeibo = "\u{f1d5}" - case theRedYeti = "\u{f69d}" - case themeco = "\u{f5c6}" - case themeisle = "\u{f2b2}" - case thinkPeaks = "\u{f731}" - case tiktok = "\u{e07b}" - case tradeFederation = "\u{f513}" - case trello = "\u{f181}" - case tumblr = "\u{f173}" - case tumblrSquare = "\u{f174}" - case twitch = "\u{f1e8}" - case twitter = "\u{f099}" - case twitterSquare = "\u{f081}" - case typo3 = "\u{f42b}" - case uber = "\u{f402}" - case ubuntu = "\u{f7df}" - case uikit = "\u{f403}" - case umbraco = "\u{f8e8}" - case uncharted = "\u{e084}" - case uniregistry = "\u{f404}" - case unity = "\u{e049}" - case unsplash = "\u{e07c}" - case untappd = "\u{f405}" - case ups = "\u{f7e0}" - case usb = "\u{f287}" - case usps = "\u{f7e1}" - case ussunnah = "\u{f407}" - case vaadin = "\u{f408}" - case viacoin = "\u{f237}" - case viadeo = "\u{f2a9}" - case viadeoSquare = "\u{f2aa}" - case viber = "\u{f409}" - case vimeo = "\u{f40a}" - case vimeoSquare = "\u{f194}" - case vimeoV = "\u{f27d}" - case vine = "\u{f1ca}" - case vk = "\u{f189}" - case vnv = "\u{f40b}" - case vuejs = "\u{f41f}" - case watchmanMonitoring = "\u{e087}" - case waze = "\u{f83f}" - case weebly = "\u{f5cc}" - case weibo = "\u{f18a}" - case weixin = "\u{f1d7}" - case whatsapp = "\u{f232}" - case whatsappSquare = "\u{f40c}" - case whmcs = "\u{f40d}" - case wikipediaW = "\u{f266}" - case windows = "\u{f17a}" - case wix = "\u{f5cf}" - case wizardsOfTheCoast = "\u{f730}" - case wodu = "\u{e088}" - case wolfPackBattalion = "\u{f514}" - case wordpress = "\u{f19a}" - case wordpressSimple = "\u{f411}" - case wpbeginner = "\u{f297}" - case wpexplorer = "\u{f2de}" - case wpforms = "\u{f298}" - case wpressr = "\u{f3e4}" - case xbox = "\u{f412}" - case xing = "\u{f168}" - case xingSquare = "\u{f169}" - case yCombinator = "\u{f23b}" - case yahoo = "\u{f19e}" - case yammer = "\u{f840}" - case yandex = "\u{f413}" - case yandexInternational = "\u{f414}" - case yarn = "\u{f7e3}" - case yelp = "\u{f1e9}" - case yoast = "\u{f2b1}" - case youtube = "\u{f167}" - case youtubeSquare = "\u{f431}" - case zhihu = "\u{f63f}" - - public var fontType: AwesomeFont { - return AwesomePro.Font.brand - } - } - - public enum Solid: String, Amazing { + public enum Light: String, Amazing { case abacus = "\u{f640}" case acorn = "\u{f6ae}" case ad = "\u{f641}" @@ -4187,12 +3724,14 @@ public struct AwesomePro { case yenSign = "\u{f157}" case yinYang = "\u{f6ad}" + public static func withKey(_ label: String) -> Light? { + return self.allCases.first { label == "\($0)" } + } public var fontType: AwesomeFont { - return AwesomePro.Font.solid + return AwesomePro.Font.Classic.light } } - - public enum Light: String, Amazing { + public enum Regular: String, Amazing { case abacus = "\u{f640}" case acorn = "\u{f6ae}" case ad = "\u{f641}" @@ -6046,12 +5585,14 @@ public struct AwesomePro { case yenSign = "\u{f157}" case yinYang = "\u{f6ad}" + public static func withKey(_ label: String) -> Regular? { + return self.allCases.first { label == "\($0)" } + } public var fontType: AwesomeFont { - return AwesomePro.Font.light + return AwesomePro.Font.Classic.regular } } - - public enum Duotone: String, Amazing { + public enum Solid: String, Amazing { case abacus = "\u{f640}" case acorn = "\u{f6ae}" case ad = "\u{f641}" @@ -7905,8 +7446,476 @@ public struct AwesomePro { case yenSign = "\u{f157}" case yinYang = "\u{f6ad}" + public static func withKey(_ label: String) -> Solid? { + return self.allCases.first { label == "\($0)" } + } + public var fontType: AwesomeFont { + return AwesomePro.Font.Classic.solid + } + } + public enum Brand: String, Amazing { + case fa500px = "\u{f26e}" + case accessibleIcon = "\u{f368}" + case accusoft = "\u{f369}" + case acquisitionsIncorporated = "\u{f6af}" + case adn = "\u{f170}" + case adversal = "\u{f36a}" + case affiliatetheme = "\u{f36b}" + case airbnb = "\u{f834}" + case algolia = "\u{f36c}" + case alipay = "\u{f642}" + case amazon = "\u{f270}" + case amazonPay = "\u{f42c}" + case amilia = "\u{f36d}" + case android = "\u{f17b}" + case angellist = "\u{f209}" + case angrycreative = "\u{f36e}" + case angular = "\u{f420}" + case appStore = "\u{f36f}" + case appStoreIos = "\u{f370}" + case apper = "\u{f371}" + case apple = "\u{f179}" + case applePay = "\u{f415}" + case artstation = "\u{f77a}" + case asymmetrik = "\u{f372}" + case atlassian = "\u{f77b}" + case audible = "\u{f373}" + case autoprefixer = "\u{f41c}" + case avianex = "\u{f374}" + case aviato = "\u{f421}" + case aws = "\u{f375}" + case bandcamp = "\u{f2d5}" + case battleNet = "\u{f835}" + case behance = "\u{f1b4}" + case behanceSquare = "\u{f1b5}" + case bimobject = "\u{f378}" + case bitbucket = "\u{f171}" + case bitcoin = "\u{f379}" + case bity = "\u{f37a}" + case blackTie = "\u{f27e}" + case blackberry = "\u{f37b}" + case blogger = "\u{f37c}" + case bloggerB = "\u{f37d}" + case bluetooth = "\u{f293}" + case bluetoothB = "\u{f294}" + case bootstrap = "\u{f836}" + case btc = "\u{f15a}" + case buffer = "\u{f837}" + case buromobelexperte = "\u{f37f}" + case buyNLarge = "\u{f8a6}" + case buysellads = "\u{f20d}" + case canadianMapleLeaf = "\u{f785}" + case ccAmazonPay = "\u{f42d}" + case ccAmex = "\u{f1f3}" + case ccApplePay = "\u{f416}" + case ccDinersClub = "\u{f24c}" + case ccDiscover = "\u{f1f2}" + case ccJcb = "\u{f24b}" + case ccMastercard = "\u{f1f1}" + case ccPaypal = "\u{f1f4}" + case ccStripe = "\u{f1f5}" + case ccVisa = "\u{f1f0}" + case centercode = "\u{f380}" + case centos = "\u{f789}" + case chrome = "\u{f268}" + case chromecast = "\u{f838}" + case cloudflare = "\u{e07d}" + case cloudscale = "\u{f383}" + case cloudsmith = "\u{f384}" + case cloudversify = "\u{f385}" + case codepen = "\u{f1cb}" + case codiepie = "\u{f284}" + case confluence = "\u{f78d}" + case connectdevelop = "\u{f20e}" + case contao = "\u{f26d}" + case cottonBureau = "\u{f89e}" + case cpanel = "\u{f388}" + case creativeCommons = "\u{f25e}" + case creativeCommonsBy = "\u{f4e7}" + case creativeCommonsNc = "\u{f4e8}" + case creativeCommonsNcEu = "\u{f4e9}" + case creativeCommonsNcJp = "\u{f4ea}" + case creativeCommonsNd = "\u{f4eb}" + case creativeCommonsPd = "\u{f4ec}" + case creativeCommonsPdAlt = "\u{f4ed}" + case creativeCommonsRemix = "\u{f4ee}" + case creativeCommonsSa = "\u{f4ef}" + case creativeCommonsSampling = "\u{f4f0}" + case creativeCommonsSamplingPlus = "\u{f4f1}" + case creativeCommonsShare = "\u{f4f2}" + case creativeCommonsZero = "\u{f4f3}" + case criticalRole = "\u{f6c9}" + case css3 = "\u{f13c}" + case css3Alt = "\u{f38b}" + case cuttlefish = "\u{f38c}" + case dAndD = "\u{f38d}" + case dAndDBeyond = "\u{f6ca}" + case dailymotion = "\u{e052}" + case dashcube = "\u{f210}" + case deezer = "\u{e077}" + case delicious = "\u{f1a5}" + case deploydog = "\u{f38e}" + case deskpro = "\u{f38f}" + case dev = "\u{f6cc}" + case deviantart = "\u{f1bd}" + case dhl = "\u{f790}" + case diaspora = "\u{f791}" + case digg = "\u{f1a6}" + case digitalOcean = "\u{f391}" + case discord = "\u{f392}" + case discourse = "\u{f393}" + case dochub = "\u{f394}" + case docker = "\u{f395}" + case draft2digital = "\u{f396}" + case dribbble = "\u{f17d}" + case dribbbleSquare = "\u{f397}" + case dropbox = "\u{f16b}" + case drupal = "\u{f1a9}" + case dyalog = "\u{f399}" + case earlybirds = "\u{f39a}" + case ebay = "\u{f4f4}" + case edge = "\u{f282}" + case edgeLegacy = "\u{e078}" + case elementor = "\u{f430}" + case ello = "\u{f5f1}" + case ember = "\u{f423}" + case empire = "\u{f1d1}" + case envira = "\u{f299}" + case erlang = "\u{f39d}" + case ethereum = "\u{f42e}" + case etsy = "\u{f2d7}" + case evernote = "\u{f839}" + case expeditedssl = "\u{f23e}" + case facebook = "\u{f09a}" + case facebookF = "\u{f39e}" + case facebookMessenger = "\u{f39f}" + case facebookSquare = "\u{f082}" + case fantasyFlightGames = "\u{f6dc}" + case fedex = "\u{f797}" + case fedora = "\u{f798}" + case figma = "\u{f799}" + case firefox = "\u{f269}" + case firefoxBrowser = "\u{e007}" + case firstOrder = "\u{f2b0}" + case firstOrderAlt = "\u{f50a}" + case firstdraft = "\u{f3a1}" + case flickr = "\u{f16e}" + case flipboard = "\u{f44d}" + case fly = "\u{f417}" + case fontAwesome = "\u{f2b4}" + case fontAwesomeAlt = "\u{f35c}" + case fontAwesomeFlag = "\u{f425}" + case fonticons = "\u{f280}" + case fonticonsFi = "\u{f3a2}" + case fortAwesome = "\u{f286}" + case fortAwesomeAlt = "\u{f3a3}" + case forumbee = "\u{f211}" + case foursquare = "\u{f180}" + case freeCodeCamp = "\u{f2c5}" + case freebsd = "\u{f3a4}" + case fulcrum = "\u{f50b}" + case galacticRepublic = "\u{f50c}" + case galacticSenate = "\u{f50d}" + case getPocket = "\u{f265}" + case gg = "\u{f260}" + case ggCircle = "\u{f261}" + case git = "\u{f1d3}" + case gitAlt = "\u{f841}" + case gitSquare = "\u{f1d2}" + case github = "\u{f09b}" + case githubAlt = "\u{f113}" + case githubSquare = "\u{f092}" + case gitkraken = "\u{f3a6}" + case gitlab = "\u{f296}" + case gitter = "\u{f426}" + case glide = "\u{f2a5}" + case glideG = "\u{f2a6}" + case gofore = "\u{f3a7}" + case goodreads = "\u{f3a8}" + case goodreadsG = "\u{f3a9}" + case google = "\u{f1a0}" + case googleDrive = "\u{f3aa}" + case googlePay = "\u{e079}" + case googlePlay = "\u{f3ab}" + case googlePlus = "\u{f2b3}" + case googlePlusG = "\u{f0d5}" + case googlePlusSquare = "\u{f0d4}" + case googleWallet = "\u{f1ee}" + case gratipay = "\u{f184}" + case grav = "\u{f2d6}" + case gripfire = "\u{f3ac}" + case grunt = "\u{f3ad}" + case guilded = "\u{e07e}" + case gulp = "\u{f3ae}" + case hackerNews = "\u{f1d4}" + case hackerNewsSquare = "\u{f3af}" + case hackerrank = "\u{f5f7}" + case hips = "\u{f452}" + case hireAHelper = "\u{f3b0}" + case hive = "\u{e07f}" + case hooli = "\u{f427}" + case hornbill = "\u{f592}" + case hotjar = "\u{f3b1}" + case houzz = "\u{f27c}" + case html5 = "\u{f13b}" + case hubspot = "\u{f3b2}" + case ideal = "\u{e013}" + case imdb = "\u{f2d8}" + case innosoft = "\u{e080}" + case instagram = "\u{f16d}" + case instagramSquare = "\u{e055}" + case instalod = "\u{e081}" + case intercom = "\u{f7af}" + case internetExplorer = "\u{f26b}" + case invision = "\u{f7b0}" + case ioxhost = "\u{f208}" + case itchIo = "\u{f83a}" + case itunes = "\u{f3b4}" + case itunesNote = "\u{f3b5}" + case java = "\u{f4e4}" + case jediOrder = "\u{f50e}" + case jenkins = "\u{f3b6}" + case jira = "\u{f7b1}" + case joget = "\u{f3b7}" + case joomla = "\u{f1aa}" + case js = "\u{f3b8}" + case jsSquare = "\u{f3b9}" + case jsfiddle = "\u{f1cc}" + case kaggle = "\u{f5fa}" + case keybase = "\u{f4f5}" + case keycdn = "\u{f3ba}" + case kickstarter = "\u{f3bb}" + case kickstarterK = "\u{f3bc}" + case korvue = "\u{f42f}" + case laravel = "\u{f3bd}" + case lastfm = "\u{f202}" + case lastfmSquare = "\u{f203}" + case leanpub = "\u{f212}" + case less = "\u{f41d}" + case line = "\u{f3c0}" + case linkedin = "\u{f08c}" + case linkedinIn = "\u{f0e1}" + case linode = "\u{f2b8}" + case linux = "\u{f17c}" + case lyft = "\u{f3c3}" + case magento = "\u{f3c4}" + case mailchimp = "\u{f59e}" + case mandalorian = "\u{f50f}" + case markdown = "\u{f60f}" + case mastodon = "\u{f4f6}" + case maxcdn = "\u{f136}" + case mdb = "\u{f8ca}" + case medapps = "\u{f3c6}" + case medium = "\u{f23a}" + case mediumM = "\u{f3c7}" + case medrt = "\u{f3c8}" + case meetup = "\u{f2e0}" + case megaport = "\u{f5a3}" + case mendeley = "\u{f7b3}" + case microblog = "\u{e01a}" + case microsoft = "\u{f3ca}" + case mix = "\u{f3cb}" + case mixcloud = "\u{f289}" + case mixer = "\u{e056}" + case mizuni = "\u{f3cc}" + case modx = "\u{f285}" + case monero = "\u{f3d0}" + case napster = "\u{f3d2}" + case neos = "\u{f612}" + case nimblr = "\u{f5a8}" + case node = "\u{f419}" + case nodeJs = "\u{f3d3}" + case npm = "\u{f3d4}" + case ns8 = "\u{f3d5}" + case nutritionix = "\u{f3d6}" + case octopusDeploy = "\u{e082}" + case odnoklassniki = "\u{f263}" + case odnoklassnikiSquare = "\u{f264}" + case oldRepublic = "\u{f510}" + case opencart = "\u{f23d}" + case openid = "\u{f19b}" + case opera = "\u{f26a}" + case optinMonster = "\u{f23c}" + case orcid = "\u{f8d2}" + case osi = "\u{f41a}" + case page4 = "\u{f3d7}" + case pagelines = "\u{f18c}" + case palfed = "\u{f3d8}" + case patreon = "\u{f3d9}" + case paypal = "\u{f1ed}" + case pennyArcade = "\u{f704}" + case perbyte = "\u{e083}" + case periscope = "\u{f3da}" + case phabricator = "\u{f3db}" + case phoenixFramework = "\u{f3dc}" + case phoenixSquadron = "\u{f511}" + case php = "\u{f457}" + case piedPiper = "\u{f2ae}" + case piedPiperAlt = "\u{f1a8}" + case piedPiperHat = "\u{f4e5}" + case piedPiperPp = "\u{f1a7}" + case piedPiperSquare = "\u{e01e}" + case pinterest = "\u{f0d2}" + case pinterestP = "\u{f231}" + case pinterestSquare = "\u{f0d3}" + case playstation = "\u{f3df}" + case productHunt = "\u{f288}" + case pushed = "\u{f3e1}" + case python = "\u{f3e2}" + case qq = "\u{f1d6}" + case quinscape = "\u{f459}" + case quora = "\u{f2c4}" + case rProject = "\u{f4f7}" + case raspberryPi = "\u{f7bb}" + case ravelry = "\u{f2d9}" + case react = "\u{f41b}" + case reacteurope = "\u{f75d}" + case readme = "\u{f4d5}" + case rebel = "\u{f1d0}" + case redRiver = "\u{f3e3}" + case reddit = "\u{f1a1}" + case redditAlien = "\u{f281}" + case redditSquare = "\u{f1a2}" + case redhat = "\u{f7bc}" + case renren = "\u{f18b}" + case replyd = "\u{f3e6}" + case researchgate = "\u{f4f8}" + case resolving = "\u{f3e7}" + case rev = "\u{f5b2}" + case rocketchat = "\u{f3e8}" + case rockrms = "\u{f3e9}" + case rust = "\u{e07a}" + case safari = "\u{f267}" + case salesforce = "\u{f83b}" + case sass = "\u{f41e}" + case schlix = "\u{f3ea}" + case scribd = "\u{f28a}" + case searchengin = "\u{f3eb}" + case sellcast = "\u{f2da}" + case sellsy = "\u{f213}" + case servicestack = "\u{f3ec}" + case shirtsinbulk = "\u{f214}" + case shopify = "\u{e057}" + case shopware = "\u{f5b5}" + case simplybuilt = "\u{f215}" + case sistrix = "\u{f3ee}" + case sith = "\u{f512}" + case sketch = "\u{f7c6}" + case skyatlas = "\u{f216}" + case skype = "\u{f17e}" + case slack = "\u{f198}" + case slackHash = "\u{f3ef}" + case slideshare = "\u{f1e7}" + case snapchat = "\u{f2ab}" + case snapchatGhost = "\u{f2ac}" + case snapchatSquare = "\u{f2ad}" + case soundcloud = "\u{f1be}" + case sourcetree = "\u{f7d3}" + case speakap = "\u{f3f3}" + case speakerDeck = "\u{f83c}" + case spotify = "\u{f1bc}" + case squarespace = "\u{f5be}" + case stackExchange = "\u{f18d}" + case stackOverflow = "\u{f16c}" + case stackpath = "\u{f842}" + case staylinked = "\u{f3f5}" + case steam = "\u{f1b6}" + case steamSquare = "\u{f1b7}" + case steamSymbol = "\u{f3f6}" + case stickerMule = "\u{f3f7}" + case strava = "\u{f428}" + case stripe = "\u{f429}" + case stripeS = "\u{f42a}" + case studiovinari = "\u{f3f8}" + case stumbleupon = "\u{f1a4}" + case stumbleuponCircle = "\u{f1a3}" + case superpowers = "\u{f2dd}" + case supple = "\u{f3f9}" + case suse = "\u{f7d6}" + case swift = "\u{f8e1}" + case symfony = "\u{f83d}" + case teamspeak = "\u{f4f9}" + case telegram = "\u{f2c6}" + case telegramPlane = "\u{f3fe}" + case tencentWeibo = "\u{f1d5}" + case theRedYeti = "\u{f69d}" + case themeco = "\u{f5c6}" + case themeisle = "\u{f2b2}" + case thinkPeaks = "\u{f731}" + case tiktok = "\u{e07b}" + case tradeFederation = "\u{f513}" + case trello = "\u{f181}" + case tumblr = "\u{f173}" + case tumblrSquare = "\u{f174}" + case twitch = "\u{f1e8}" + case twitter = "\u{f099}" + case twitterSquare = "\u{f081}" + case typo3 = "\u{f42b}" + case uber = "\u{f402}" + case ubuntu = "\u{f7df}" + case uikit = "\u{f403}" + case umbraco = "\u{f8e8}" + case uncharted = "\u{e084}" + case uniregistry = "\u{f404}" + case unity = "\u{e049}" + case unsplash = "\u{e07c}" + case untappd = "\u{f405}" + case ups = "\u{f7e0}" + case usb = "\u{f287}" + case usps = "\u{f7e1}" + case ussunnah = "\u{f407}" + case vaadin = "\u{f408}" + case viacoin = "\u{f237}" + case viadeo = "\u{f2a9}" + case viadeoSquare = "\u{f2aa}" + case viber = "\u{f409}" + case vimeo = "\u{f40a}" + case vimeoSquare = "\u{f194}" + case vimeoV = "\u{f27d}" + case vine = "\u{f1ca}" + case vk = "\u{f189}" + case vnv = "\u{f40b}" + case vuejs = "\u{f41f}" + case watchmanMonitoring = "\u{e087}" + case waze = "\u{f83f}" + case weebly = "\u{f5cc}" + case weibo = "\u{f18a}" + case weixin = "\u{f1d7}" + case whatsapp = "\u{f232}" + case whatsappSquare = "\u{f40c}" + case whmcs = "\u{f40d}" + case wikipediaW = "\u{f266}" + case windows = "\u{f17a}" + case wix = "\u{f5cf}" + case wizardsOfTheCoast = "\u{f730}" + case wodu = "\u{e088}" + case wolfPackBattalion = "\u{f514}" + case wordpress = "\u{f19a}" + case wordpressSimple = "\u{f411}" + case wpbeginner = "\u{f297}" + case wpexplorer = "\u{f2de}" + case wpforms = "\u{f298}" + case wpressr = "\u{f3e4}" + case xbox = "\u{f412}" + case xing = "\u{f168}" + case xingSquare = "\u{f169}" + case yCombinator = "\u{f23b}" + case yahoo = "\u{f19e}" + case yammer = "\u{f840}" + case yandex = "\u{f413}" + case yandexInternational = "\u{f414}" + case yarn = "\u{f7e3}" + case yelp = "\u{f1e9}" + case yoast = "\u{f2b1}" + case youtube = "\u{f167}" + case youtubeSquare = "\u{f431}" + case zhihu = "\u{f63f}" + + public static func withKey(_ label: String) -> Brand? { + return self.allCases.first { label == "\($0)" } + } public var fontType: AwesomeFont { - return AwesomePro.Font.duotone + return AwesomePro.Font.Classic.brand } } diff --git a/Classes/Extensions/Amazing+Tools.swift b/Classes/Extensions/Amazing+Tools.swift index aadf008..ef81664 100755 --- a/Classes/Extensions/Amazing+Tools.swift +++ b/Classes/Extensions/Amazing+Tools.swift @@ -132,105 +132,3 @@ extension Amazing { } } - -extension Awesome { - @available(*, unavailable, renamed: "Brand") - public typealias brand = Awesome.Brand - - @available(*, unavailable, renamed: "Regular") - public typealias regular = Awesome.Regular - - @available(*, unavailable, renamed: "Solid") - public typealias solid = Awesome.Solid -} - -extension AwesomePro { - @available(*, unavailable, renamed: "Brand") - public typealias brand = AwesomePro.Brand - - @available(*, unavailable, renamed: "Regular") - public typealias regular = AwesomePro.Regular - - @available(*, unavailable, renamed: "Solid") - public typealias solid = AwesomePro.Solid - - @available(*, unavailable, renamed: "Light") - public typealias light = AwesomePro.Light -} - -extension Awesome.Brand { - - @available(*, unavailable, renamed: "allCases") - public static var all: [Awesome.Brand] { - get { - fatalError() - } - } - -} - -extension Awesome.Regular { - - @available(*, unavailable, renamed: "allCases") - public static var all: [Awesome.Regular] { - get { - fatalError() - } - } - -} - -extension Awesome.Solid { - - @available(*, unavailable, renamed: "allCases") - public static var all: [Awesome.Solid] { - get { - fatalError() - } - } - -} - -extension AwesomePro.Brand { - - @available(*, unavailable, renamed: "allCases") - public static var all: [AwesomePro.Brand] { - get { - fatalError() - } - } - -} - -extension AwesomePro.Regular { - - @available(*, unavailable, renamed: "allCases") - public static var all: [AwesomePro.Regular] { - get { - fatalError() - } - } - -} - -extension AwesomePro.Solid { - - @available(*, unavailable, renamed: "allCases") - public static var all: [AwesomePro.Solid] { - get { - fatalError() - } - } - -} - -extension AwesomePro.Light { - - @available(*, unavailable, renamed: "allCases") - public static var all: [AwesomePro.Light] { - get { - fatalError() - } - } - -} diff --git a/Classes/Libs/Fonts.swift b/Classes/Libs/Fonts.swift index 93a5ca4..6ebc259 100644 --- a/Classes/Libs/Fonts.swift +++ b/Classes/Libs/Fonts.swift @@ -17,94 +17,6 @@ public extension AwesomeFont { fatalError() } } - -} - -public extension Awesome { - - enum Font: String, AwesomeFont { - - case brand = "fa-brands-400" - case regular = "fa-regular-400" - case solid = "fa-solid-900" - - public var file: String { - return rawValue - } - - public var description: String { - switch self { - case .brand: - return "Font Awesome 6 Brands" - case .regular, .solid: - return "Font Awesome 6 Free" - } - } - - public var memberName: String { - switch self { - case .brand: - return "FontAwesome6Brands-Regular" - case .regular: - return "FontAwesome6Free-Regular" - case .solid: - return "FontAwesome6Free-Solid" - } - } - } - -} - -public extension AwesomePro { - - enum Font: String, AwesomeFont { - case brand = "fa-brands-400" - case regular = "fa-regular-400" - case solid = "fa-solid-900" - case light = "fa-light-300" - case duotone = "fa-duotone-900" - - public var file: String { - return rawValue - } - - public var description: String { - switch self { - case .brand: - return "Font Awesome 6 Brands" - case .regular, .solid, .light, .duotone: - return "Font Awesome 6 Pro" - } - } - - public var memberName: String { - switch self { - case .brand: - return "FontAwesome6Brands-Regular" - case .regular: - return "FontAwesome6Pro-Regular" - case .solid: - return "FontAwesome6Pro-Solid" - case .light: - return "FontAwesome6Pro-Light" - case .duotone: - return "FontAwesome6Duotone-Solid" - } - } - } - - static func loadFonts(from bundle: Bundle, only: [Font] = []) { - var fonts: [Font] = [.brand, .regular, .solid, .light, .duotone] - - if only.count > 0 { - fonts = fonts.filter { element in only.contains(element) } - } - - for font in fonts { - Fonts.load(type: font, from: bundle) - } - } - } class Fonts {