From ce74816c186dfc2cde40fd93026c88c542f7c9a8 Mon Sep 17 00:00:00 2001 From: Timur Shafigullin Date: Tue, 5 Sep 2023 21:23:16 +0900 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B4=D0=B5=D0=BC=D0=BE=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B5=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Demo/FigmaGenDemo/Generated/Images.swift | 252 +++++++++++------------ 1 file changed, 126 insertions(+), 126 deletions(-) diff --git a/Demo/FigmaGenDemo/Generated/Images.swift b/Demo/FigmaGenDemo/Generated/Images.swift index 6341d5b..07cf973 100644 --- a/Demo/FigmaGenDemo/Generated/Images.swift +++ b/Demo/FigmaGenDemo/Generated/Images.swift @@ -25,20 +25,20 @@ public enum Images { } } - public enum InterfaceEssentialInstagram { + public enum InterfaceEssentialBehance { /// Style=Filled /// - /// Asset: InterfaceEssentialInstagramStyleFilled + /// Asset: InterfaceEssentialBehanceStyleFilled public static var styleFilled: UIImage { - return UIImage(named: "InterfaceEssentialInstagramStyleFilled")! + return UIImage(named: "InterfaceEssentialBehanceStyleFilled")! } /// Style=Outlined /// - /// Asset: InterfaceEssentialInstagramStyleOutlined + /// Asset: InterfaceEssentialBehanceStyleOutlined public static var styleOutlined: UIImage { - return UIImage(named: "InterfaceEssentialInstagramStyleOutlined")! + return UIImage(named: "InterfaceEssentialBehanceStyleOutlined")! } } @@ -59,145 +59,110 @@ public enum Images { } } - public enum InterfaceEssentialBehance { + public enum InterfaceEssentialFacebook { /// Style=Filled /// - /// Asset: InterfaceEssentialBehanceStyleFilled + /// Asset: InterfaceEssentialFacebookStyleFilled public static var styleFilled: UIImage { - return UIImage(named: "InterfaceEssentialBehanceStyleFilled")! + return UIImage(named: "InterfaceEssentialFacebookStyleFilled")! } - /// Style=Outlined + /// Outlined /// - /// Asset: InterfaceEssentialBehanceStyleOutlined - public static var styleOutlined: UIImage { - return UIImage(named: "InterfaceEssentialBehanceStyleOutlined")! + /// Asset: InterfaceEssentialFacebookOutlined + public static var outlined: UIImage { + return UIImage(named: "InterfaceEssentialFacebookOutlined")! } } - public enum InterfaceEssentialLinkedin { + public enum InterfaceEssentialFigma { /// Style=Filled /// - /// Asset: InterfaceEssentialLinkedinStyleFilled + /// Asset: InterfaceEssentialFigmaStyleFilled public static var styleFilled: UIImage { - return UIImage(named: "InterfaceEssentialLinkedinStyleFilled")! + return UIImage(named: "InterfaceEssentialFigmaStyleFilled")! } /// Style=Outlined /// - /// Asset: InterfaceEssentialLinkedinStyleOutlined + /// Asset: InterfaceEssentialFigmaStyleOutlined public static var styleOutlined: UIImage { - return UIImage(named: "InterfaceEssentialLinkedinStyleOutlined")! + return UIImage(named: "InterfaceEssentialFigmaStyleOutlined")! } } - public enum InterfaceEssentialTwitter { + public enum InterfaceEssentialGoogle { /// Style=Filled /// - /// Asset: InterfaceEssentialTwitterStyleFilled + /// Asset: InterfaceEssentialGoogleStyleFilled public static var styleFilled: UIImage { - return UIImage(named: "InterfaceEssentialTwitterStyleFilled")! + return UIImage(named: "InterfaceEssentialGoogleStyleFilled")! } /// Style=Outlined /// - /// Asset: InterfaceEssentialTwitterStyleOutlined + /// Asset: InterfaceEssentialGoogleStyleOutlined public static var styleOutlined: UIImage { - return UIImage(named: "InterfaceEssentialTwitterStyleOutlined")! + return UIImage(named: "InterfaceEssentialGoogleStyleOutlined")! } } - public enum InterfaceEssentialFacebook { + public enum InterfaceEssentialInstagram { /// Style=Filled /// - /// Asset: InterfaceEssentialFacebookStyleFilled + /// Asset: InterfaceEssentialInstagramStyleFilled public static var styleFilled: UIImage { - return UIImage(named: "InterfaceEssentialFacebookStyleFilled")! + return UIImage(named: "InterfaceEssentialInstagramStyleFilled")! } - /// Outlined + /// Style=Outlined /// - /// Asset: InterfaceEssentialFacebookOutlined - public static var outlined: UIImage { - return UIImage(named: "InterfaceEssentialFacebookOutlined")! + /// Asset: InterfaceEssentialInstagramStyleOutlined + public static var styleOutlined: UIImage { + return UIImage(named: "InterfaceEssentialInstagramStyleOutlined")! } } - public enum InterfaceEssentialGoogle { + public enum InterfaceEssentialLinkedin { /// Style=Filled /// - /// Asset: InterfaceEssentialGoogleStyleFilled + /// Asset: InterfaceEssentialLinkedinStyleFilled public static var styleFilled: UIImage { - return UIImage(named: "InterfaceEssentialGoogleStyleFilled")! + return UIImage(named: "InterfaceEssentialLinkedinStyleFilled")! } /// Style=Outlined /// - /// Asset: InterfaceEssentialGoogleStyleOutlined + /// Asset: InterfaceEssentialLinkedinStyleOutlined public static var styleOutlined: UIImage { - return UIImage(named: "InterfaceEssentialGoogleStyleOutlined")! + return UIImage(named: "InterfaceEssentialLinkedinStyleOutlined")! } } - public enum InterfaceEssentialFigma { + public enum InterfaceEssentialTwitter { /// Style=Filled /// - /// Asset: InterfaceEssentialFigmaStyleFilled + /// Asset: InterfaceEssentialTwitterStyleFilled public static var styleFilled: UIImage { - return UIImage(named: "InterfaceEssentialFigmaStyleFilled")! + return UIImage(named: "InterfaceEssentialTwitterStyleFilled")! } /// Style=Outlined /// - /// Asset: InterfaceEssentialFigmaStyleOutlined + /// Asset: InterfaceEssentialTwitterStyleOutlined public static var styleOutlined: UIImage { - return UIImage(named: "InterfaceEssentialFigmaStyleOutlined")! + return UIImage(named: "InterfaceEssentialTwitterStyleOutlined")! } } // MARK: - Type Properties - /// WeChat - /// - /// Asset: WeChat - public static var weChat: UIImage { - return UIImage(named: "WeChat")! - } - - /// Snapchat - /// - /// Asset: Snapchat - public static var snapchat: UIImage { - return UIImage(named: "Snapchat")! - } - - /// Viber - /// - /// Asset: Viber - public static var viber: UIImage { - return UIImage(named: "Viber")! - } - - /// WhatsApp - /// - /// Asset: WhatsApp - public static var whatsApp: UIImage { - return UIImage(named: "WhatsApp")! - } - - /// Telegram - /// - /// Asset: Telegram - public static var telegram: UIImage { - return UIImage(named: "Telegram")! - } - /// Cloud /// /// Asset: Cloud @@ -205,6 +170,13 @@ public enum Images { return UIImage(named: "Cloud")! } + /// Geo + /// + /// Asset: Geo + public static var geo: UIImage { + return UIImage(named: "Geo")! + } + /// Phone /// /// Asset: Phone @@ -219,6 +191,13 @@ public enum Images { return UIImage(named: "Share")! } + /// Snapchat + /// + /// Asset: Snapchat + public static var snapchat: UIImage { + return UIImage(named: "Snapchat")! + } + /// Star /// /// Asset: Star @@ -226,78 +205,91 @@ public enum Images { return UIImage(named: "Star")! } - /// Geo + /// Telegram /// - /// Asset: Geo - public static var geo: UIImage { - return UIImage(named: "Geo")! + /// Asset: Telegram + public static var telegram: UIImage { + return UIImage(named: "Telegram")! } - // MARK: - Type Methods + /// Viber + /// + /// Asset: Viber + public static var viber: UIImage { + return UIImage(named: "Viber")! + } - public static func validate() throws { - guard UIImage(named: "WeChat") != nil else { - throw ValidationError.assetNotFound(name: "WeChat") - } + /// WeChat + /// + /// Asset: WeChat + public static var weChat: UIImage { + return UIImage(named: "WeChat")! + } - guard UIImage(named: "Snapchat") != nil else { - throw ValidationError.assetNotFound(name: "Snapchat") - } + /// WhatsApp + /// + /// Asset: WhatsApp + public static var whatsApp: UIImage { + return UIImage(named: "WhatsApp")! + } - guard UIImage(named: "Viber") != nil else { - throw ValidationError.assetNotFound(name: "Viber") + // MARK: - Type Methods + + public static func validate() throws { + guard UIImage(named: "Cloud") != nil else { + throw ValidationError.assetNotFound(name: "Cloud") } - guard UIImage(named: "WhatsApp") != nil else { - throw ValidationError.assetNotFound(name: "WhatsApp") + guard UIImage(named: "Geo") != nil else { + throw ValidationError.assetNotFound(name: "Geo") } - guard UIImage(named: "Telegram") != nil else { - throw ValidationError.assetNotFound(name: "Telegram") + guard UIImage(named: "InterfaceEssentialBehanceStyleFilled") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialBehanceStyleFilled") } - guard UIImage(named: "Cloud") != nil else { - throw ValidationError.assetNotFound(name: "Cloud") + guard UIImage(named: "InterfaceEssentialBehanceStyleOutlined") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialBehanceStyleOutlined") } - guard UIImage(named: "Phone") != nil else { - throw ValidationError.assetNotFound(name: "Phone") + guard UIImage(named: "InterfaceEssentialDribbbleStyleFilled") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialDribbbleStyleFilled") } - guard UIImage(named: "Share") != nil else { - throw ValidationError.assetNotFound(name: "Share") + guard UIImage(named: "InterfaceEssentialDribbbleStyleOutlined") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialDribbbleStyleOutlined") } - guard UIImage(named: "Star") != nil else { - throw ValidationError.assetNotFound(name: "Star") + guard UIImage(named: "InterfaceEssentialFacebookStyleFilled") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialFacebookStyleFilled") } - guard UIImage(named: "Geo") != nil else { - throw ValidationError.assetNotFound(name: "Geo") + guard UIImage(named: "InterfaceEssentialFacebookOutlined") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialFacebookOutlined") } - guard UIImage(named: "InterfaceEssentialInstagramStyleFilled") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialInstagramStyleFilled") + guard UIImage(named: "InterfaceEssentialFigmaStyleFilled") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialFigmaStyleFilled") } - guard UIImage(named: "InterfaceEssentialInstagramStyleOutlined") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialInstagramStyleOutlined") + guard UIImage(named: "InterfaceEssentialFigmaStyleOutlined") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialFigmaStyleOutlined") } - guard UIImage(named: "InterfaceEssentialDribbbleStyleFilled") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialDribbbleStyleFilled") + guard UIImage(named: "InterfaceEssentialGoogleStyleFilled") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialGoogleStyleFilled") } - guard UIImage(named: "InterfaceEssentialDribbbleStyleOutlined") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialDribbbleStyleOutlined") + guard UIImage(named: "InterfaceEssentialGoogleStyleOutlined") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialGoogleStyleOutlined") } - guard UIImage(named: "InterfaceEssentialBehanceStyleFilled") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialBehanceStyleFilled") + guard UIImage(named: "InterfaceEssentialInstagramStyleFilled") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialInstagramStyleFilled") } - guard UIImage(named: "InterfaceEssentialBehanceStyleOutlined") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialBehanceStyleOutlined") + guard UIImage(named: "InterfaceEssentialInstagramStyleOutlined") != nil else { + throw ValidationError.assetNotFound(name: "InterfaceEssentialInstagramStyleOutlined") } guard UIImage(named: "InterfaceEssentialLinkedinStyleFilled") != nil else { @@ -316,28 +308,36 @@ public enum Images { throw ValidationError.assetNotFound(name: "InterfaceEssentialTwitterStyleOutlined") } - guard UIImage(named: "InterfaceEssentialFacebookStyleFilled") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialFacebookStyleFilled") + guard UIImage(named: "Phone") != nil else { + throw ValidationError.assetNotFound(name: "Phone") } - guard UIImage(named: "InterfaceEssentialFacebookOutlined") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialFacebookOutlined") + guard UIImage(named: "Share") != nil else { + throw ValidationError.assetNotFound(name: "Share") } - guard UIImage(named: "InterfaceEssentialGoogleStyleFilled") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialGoogleStyleFilled") + guard UIImage(named: "Snapchat") != nil else { + throw ValidationError.assetNotFound(name: "Snapchat") } - guard UIImage(named: "InterfaceEssentialGoogleStyleOutlined") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialGoogleStyleOutlined") + guard UIImage(named: "Star") != nil else { + throw ValidationError.assetNotFound(name: "Star") } - guard UIImage(named: "InterfaceEssentialFigmaStyleFilled") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialFigmaStyleFilled") + guard UIImage(named: "Telegram") != nil else { + throw ValidationError.assetNotFound(name: "Telegram") } - guard UIImage(named: "InterfaceEssentialFigmaStyleOutlined") != nil else { - throw ValidationError.assetNotFound(name: "InterfaceEssentialFigmaStyleOutlined") + guard UIImage(named: "Viber") != nil else { + throw ValidationError.assetNotFound(name: "Viber") + } + + guard UIImage(named: "WeChat") != nil else { + throw ValidationError.assetNotFound(name: "WeChat") + } + + guard UIImage(named: "WhatsApp") != nil else { + throw ValidationError.assetNotFound(name: "WhatsApp") } print("All images are valid")