diff --git a/SampleFiles/Colors/Generated/ColorYolo+GenAllScript.swift b/SampleFiles/Colors/Generated/ColorYolo+GenAllScript.swift new file mode 100644 index 0000000..adf6ece --- /dev/null +++ b/SampleFiles/Colors/Generated/ColorYolo+GenAllScript.swift @@ -0,0 +1,21 @@ +// Generated by ResgenSwift.Color 1.0 + +import SwiftUI + +extension ColorYolo { + + /// Color red is #FF0000 (light) or #FF0000 (dark)" + var red: Color { + Color("red") + } + + /// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)" + var green_alpha_50: Color { + Color("green_alpha_50") + } + + /// Color blue_light_dark is #0000FF (light) or #0000AA (dark)" + var blue_light_dark: Color { + Color("blue_light_dark") + } +} \ No newline at end of file diff --git a/SampleFiles/Colors/Generated/UIColor+Color.swift b/SampleFiles/Colors/Generated/UIColor+Color.swift deleted file mode 100644 index 76d0ed0..0000000 --- a/SampleFiles/Colors/Generated/UIColor+Color.swift +++ /dev/null @@ -1,21 +0,0 @@ -// Generated from ColorToolCore at 2021-12-20 15:16:18 +0000 - -import UIKit - -extension UIColor { - - /// Color red is #FF0000 (light) or #FF0000 (dark)" - static var red: UIColor { - UIColor(named: "red")! - } - - /// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)" - static var green_alpha_50: UIColor { - UIColor(named: "green_alpha_50")! - } - - /// Color blue_light_dark is #0000FF (light) or #0000AA (dark)" - static var blue_light_dark: UIColor { - UIColor(named: "blue_light_dark")! - } -} \ No newline at end of file diff --git a/SampleFiles/Colors/Generated/UIColor+ColorGenAllScript.swift b/SampleFiles/Colors/Generated/UIColor+ColorGenAllScript.swift deleted file mode 100644 index 23713af..0000000 --- a/SampleFiles/Colors/Generated/UIColor+ColorGenAllScript.swift +++ /dev/null @@ -1,21 +0,0 @@ -// Generated from ColorToolCore at 2022-02-14 09:30:19 +0000 - -import UIKit - -extension UIColor { - - /// Color red is #FF0000 (light) or #FF0000 (dark)" - static var red: UIColor { - UIColor(named: "red")! - } - - /// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)" - static var green_alpha_50: UIColor { - UIColor(named: "green_alpha_50")! - } - - /// Color blue_light_dark is #0000FF (light) or #0000AA (dark)" - static var blue_light_dark: UIColor { - UIColor(named: "blue_light_dark")! - } -} \ No newline at end of file diff --git a/SampleFiles/Colors/Generated/UIColor+ColorSampleApp.swift b/SampleFiles/Colors/Generated/UIColor+ColorSampleApp.swift deleted file mode 100644 index 473f1c9..0000000 --- a/SampleFiles/Colors/Generated/UIColor+ColorSampleApp.swift +++ /dev/null @@ -1,21 +0,0 @@ -// Generated from ColorToolCore at 2021-12-20 15:17:10 +0000 - -import UIKit - -extension UIColor { - - /// Color red is #FF0000 (light) or #FF0000 (dark)" - static var red: UIColor { - UIColor(named: "red")! - } - - /// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)" - static var green_alpha_50: UIColor { - UIColor(named: "green_alpha_50")! - } - - /// Color blue_light_dark is #0000FF (light) or #0000AA (dark)" - static var blue_light_dark: UIColor { - UIColor(named: "blue_light_dark")! - } -} \ No newline at end of file diff --git a/SampleFiles/Colors/Generated/UIColor+GenAllScript.swift b/SampleFiles/Colors/Generated/UIColor+GenAllScript.swift deleted file mode 100644 index b86c911..0000000 --- a/SampleFiles/Colors/Generated/UIColor+GenAllScript.swift +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by ResgenSwift.ColorTool 1.0.0 - -import UIKit - -extension UIColor { - - /// Color red is #FF0000 (light) or #FF0000 (dark)" - static var red: UIColor { - UIColor(named: "red")! - } - - /// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)" - static var green_alpha_50: UIColor { - UIColor(named: "green_alpha_50")! - } - - /// Color blue_light_dark is #0000FF (light) or #0000AA (dark)" - static var blue_light_dark: UIColor { - UIColor(named: "blue_light_dark")! - } -} \ No newline at end of file diff --git a/SampleFiles/Colors/Generated/R2Color+Color.swift b/SampleFiles/Colors/Generated/UIColorYolo+GenAllScript.swift similarity index 72% rename from SampleFiles/Colors/Generated/R2Color+Color.swift rename to SampleFiles/Colors/Generated/UIColorYolo+GenAllScript.swift index 1d10e7b..5fedca1 100644 --- a/SampleFiles/Colors/Generated/R2Color+Color.swift +++ b/SampleFiles/Colors/Generated/UIColorYolo+GenAllScript.swift @@ -1,8 +1,8 @@ -// Generated from ColorToolCore at 2021-12-20 15:34:55 +0000 +// Generated by ResgenSwift.Color 1.0 import UIKit -extension R2Color { +extension UIColorYolo { /// Color red is #FF0000 (light) or #FF0000 (dark)" @objc var red: UIColor { @@ -14,7 +14,7 @@ extension R2Color { UIColor(named: "green_alpha_50")! } - /// Color blue_light_dark is #0000FF (light) or #0000FF (dark)" + /// Color blue_light_dark is #0000FF (light) or #0000AA (dark)" @objc var blue_light_dark: UIColor { UIColor(named: "blue_light_dark")! } diff --git a/SampleFiles/Fonts/Generated/FontYolo+GenAllScript.swift b/SampleFiles/Fonts/Generated/FontYolo+GenAllScript.swift new file mode 100644 index 0000000..de0aa9c --- /dev/null +++ b/SampleFiles/Fonts/Generated/FontYolo+GenAllScript.swift @@ -0,0 +1,61 @@ +// Generated by ResgenSwift.Fonts 1.0 + +import SwiftUI + +extension FontYolo { + + enum FontName: String { + case LatoItalic = "Lato-Italic" + case LatoLightItalic = "Lato-LightItalic" + case LatoHairline = "Lato-Hairline" + case LatoBold = "Lato-Bold" + case LatoBlack = "Lato-Black" + case LatoRegular = "Lato-Regular" + case LatoBlackItalic = "Lato-BlackItalic" + case LatoBoldItalic = "Lato-BoldItalic" + case LatoLight = "Lato-Light" + case LatoHairlineItalic = "Lato-HairlineItalic" + } + + // MARK: - Getter + + func LatoItalic(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoItalic.rawValue, size: size) + } + + func LatoLightItalic(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoLightItalic.rawValue, size: size) + } + + func LatoHairline(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoHairline.rawValue, size: size) + } + + func LatoBold(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoBold.rawValue, size: size) + } + + func LatoBlack(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoBlack.rawValue, size: size) + } + + func LatoRegular(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoRegular.rawValue, size: size) + } + + func LatoBlackItalic(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoBlackItalic.rawValue, size: size) + } + + func LatoBoldItalic(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoBoldItalic.rawValue, size: size) + } + + func LatoLight(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoLight.rawValue, size: size) + } + + func LatoHairlineItalic(withSize size: CGFloat) -> Font { + Font.custom(FontName.LatoHairlineItalic.rawValue, size: size) + } +} \ No newline at end of file diff --git a/SampleFiles/Fonts/Generated/R2Font+Font.swift b/SampleFiles/Fonts/Generated/R2Font+Font.swift deleted file mode 100644 index 59b1101..0000000 --- a/SampleFiles/Fonts/Generated/R2Font+Font.swift +++ /dev/null @@ -1,62 +0,0 @@ -// Generated from FontToolCore - -import UIKit - -extension R2Font { - - enum FontName: String { - case LatoItalic = "Lato-Italic" - case LatoLightItalic = "Lato-LightItalic" - case LatoHairline = "Lato-Hairline" - case LatoBold = "Lato-Bold" - case LatoBlack = "Lato-Black" - case LatoRegular = "Lato-Regular" - case LatoBlackItalic = "Lato-BlackItalic" - case LatoBoldItalic = "Lato-BoldItalic" - case LatoLight = "Lato-Light" - case LatoHairlineItalic = "Lato-HairlineItalic" - } - - // MARK: - Getter - - func LatoItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoItalic.rawValue, size: size)! - } - - func LatoLightItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoLightItalic.rawValue, size: size)! - } - - func LatoHairline(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoHairline.rawValue, size: size)! - } - - func LatoBold(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBold.rawValue, size: size)! - } - - func LatoBlack(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBlack.rawValue, size: size)! - } - - func LatoRegular(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoRegular.rawValue, size: size)! - } - - func LatoBlackItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)! - } - - func LatoBoldItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)! - } - - func LatoLight(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoLight.rawValue, size: size)! - } - - func LatoHairlineItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)! - } - -} \ No newline at end of file diff --git a/SampleFiles/Fonts/Generated/R2Font+FontGenAllScript.swift b/SampleFiles/Fonts/Generated/R2Font+FontGenAllScript.swift deleted file mode 100644 index 59b1101..0000000 --- a/SampleFiles/Fonts/Generated/R2Font+FontGenAllScript.swift +++ /dev/null @@ -1,62 +0,0 @@ -// Generated from FontToolCore - -import UIKit - -extension R2Font { - - enum FontName: String { - case LatoItalic = "Lato-Italic" - case LatoLightItalic = "Lato-LightItalic" - case LatoHairline = "Lato-Hairline" - case LatoBold = "Lato-Bold" - case LatoBlack = "Lato-Black" - case LatoRegular = "Lato-Regular" - case LatoBlackItalic = "Lato-BlackItalic" - case LatoBoldItalic = "Lato-BoldItalic" - case LatoLight = "Lato-Light" - case LatoHairlineItalic = "Lato-HairlineItalic" - } - - // MARK: - Getter - - func LatoItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoItalic.rawValue, size: size)! - } - - func LatoLightItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoLightItalic.rawValue, size: size)! - } - - func LatoHairline(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoHairline.rawValue, size: size)! - } - - func LatoBold(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBold.rawValue, size: size)! - } - - func LatoBlack(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBlack.rawValue, size: size)! - } - - func LatoRegular(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoRegular.rawValue, size: size)! - } - - func LatoBlackItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)! - } - - func LatoBoldItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)! - } - - func LatoLight(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoLight.rawValue, size: size)! - } - - func LatoHairlineItalic(withSize size: CGFloat) -> UIFont { - UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)! - } - -} \ No newline at end of file diff --git a/SampleFiles/Fonts/Generated/UIFont+Font.swift b/SampleFiles/Fonts/Generated/UIFont+Font.swift deleted file mode 100644 index 627da99..0000000 --- a/SampleFiles/Fonts/Generated/UIFont+Font.swift +++ /dev/null @@ -1,63 +0,0 @@ -// Lato/Lato-Italic.ttf Lato/Lato-LightItalic.ttf Lato/Lato-Thin.ttf Lato/Lato-Bold.ttf Lato/Lato-Black.ttf Lato/Lato-Regular.ttf Lato/Lato-BlackItalic.ttf Lato/Lato-BoldItalic.ttf Lato/Lato-Light.ttf Lato/Lato-ThinItalic.ttf -// Generated from FontToolCore - -import UIKit - -extension UIFont { - - enum FontName: String { - case LatoItalic = "Lato-Italic" - case LatoLightItalic = "Lato-LightItalic" - case LatoHairline = "Lato-Hairline" - case LatoBold = "Lato-Bold" - case LatoBlack = "Lato-Black" - case LatoRegular = "Lato-Regular" - case LatoBlackItalic = "Lato-BlackItalic" - case LatoBoldItalic = "Lato-BoldItalic" - case LatoLight = "Lato-Light" - case LatoHairlineItalic = "Lato-HairlineItalic" - } - - // MARK: - Getter - - static let LatoItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoItalic.rawValue, size: size)! - } - - static let LatoLightItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLightItalic.rawValue, size: size)! - } - - static let LatoHairline: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairline.rawValue, size: size)! - } - - static let LatoBold: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBold.rawValue, size: size)! - } - - static let LatoBlack: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlack.rawValue, size: size)! - } - - static let LatoRegular: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoRegular.rawValue, size: size)! - } - - static let LatoBlackItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)! - } - - static let LatoBoldItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)! - } - - static let LatoLight: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLight.rawValue, size: size)! - } - - static let LatoHairlineItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)! - } - -} \ No newline at end of file diff --git a/SampleFiles/Fonts/Generated/UIFont+FontGenAllScript.swift b/SampleFiles/Fonts/Generated/UIFont+FontGenAllScript.swift deleted file mode 100644 index 398823b..0000000 --- a/SampleFiles/Fonts/Generated/UIFont+FontGenAllScript.swift +++ /dev/null @@ -1,62 +0,0 @@ -// Generated from FontToolCore - -import UIKit - -extension UIFont { - - enum FontName: String { - case LatoItalic = "Lato-Italic" - case LatoLightItalic = "Lato-LightItalic" - case LatoHairline = "Lato-Hairline" - case LatoBold = "Lato-Bold" - case LatoBlack = "Lato-Black" - case LatoRegular = "Lato-Regular" - case LatoBlackItalic = "Lato-BlackItalic" - case LatoBoldItalic = "Lato-BoldItalic" - case LatoLight = "Lato-Light" - case LatoHairlineItalic = "Lato-HairlineItalic" - } - - // MARK: - Getter - - static let LatoItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoItalic.rawValue, size: size)! - } - - static let LatoLightItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLightItalic.rawValue, size: size)! - } - - static let LatoHairline: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairline.rawValue, size: size)! - } - - static let LatoBold: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBold.rawValue, size: size)! - } - - static let LatoBlack: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlack.rawValue, size: size)! - } - - static let LatoRegular: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoRegular.rawValue, size: size)! - } - - static let LatoBlackItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)! - } - - static let LatoBoldItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)! - } - - static let LatoLight: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLight.rawValue, size: size)! - } - - static let LatoHairlineItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)! - } - -} \ No newline at end of file diff --git a/SampleFiles/Fonts/Generated/UIFont+GenAllScript.swift b/SampleFiles/Fonts/Generated/UIFont+GenAllScript.swift deleted file mode 100644 index 8ea97fa..0000000 --- a/SampleFiles/Fonts/Generated/UIFont+GenAllScript.swift +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by ResgenSwift.FontTool 1.0.0 - -import UIKit - -extension UIFont { - - enum FontName: String { - case LatoItalic = "Lato-Italic" - case LatoLightItalic = "Lato-LightItalic" - case LatoHairline = "Lato-Hairline" - case LatoBold = "Lato-Bold" - case LatoBlack = "Lato-Black" - case LatoRegular = "Lato-Regular" - case LatoBlackItalic = "Lato-BlackItalic" - case LatoBoldItalic = "Lato-BoldItalic" - case LatoLight = "Lato-Light" - case LatoHairlineItalic = "Lato-HairlineItalic" - } - - // MARK: - Getter - - static let LatoItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoItalic.rawValue, size: size)! - } - - static let LatoLightItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLightItalic.rawValue, size: size)! - } - - static let LatoHairline: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairline.rawValue, size: size)! - } - - static let LatoBold: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBold.rawValue, size: size)! - } - - static let LatoBlack: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlack.rawValue, size: size)! - } - - static let LatoRegular: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoRegular.rawValue, size: size)! - } - - static let LatoBlackItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)! - } - - static let LatoBoldItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)! - } - - static let LatoLight: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLight.rawValue, size: size)! - } - - static let LatoHairlineItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)! - } -} \ No newline at end of file diff --git a/SampleFiles/Fonts/Generated/UIFontYolo+GenAllScript.swift b/SampleFiles/Fonts/Generated/UIFontYolo+GenAllScript.swift new file mode 100644 index 0000000..5ba0759 --- /dev/null +++ b/SampleFiles/Fonts/Generated/UIFontYolo+GenAllScript.swift @@ -0,0 +1,61 @@ +// Generated by ResgenSwift.Fonts 1.0 + +import UIKit + +extension UIFontYolo { + + enum FontName: String { + case LatoItalic = "Lato-Italic" + case LatoLightItalic = "Lato-LightItalic" + case LatoHairline = "Lato-Hairline" + case LatoBold = "Lato-Bold" + case LatoBlack = "Lato-Black" + case LatoRegular = "Lato-Regular" + case LatoBlackItalic = "Lato-BlackItalic" + case LatoBoldItalic = "Lato-BoldItalic" + case LatoLight = "Lato-Light" + case LatoHairlineItalic = "Lato-HairlineItalic" + } + + // MARK: - Getter + + func LatoItalic(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoItalic.rawValue, size: size)! + } + + func LatoLightItalic(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoLightItalic.rawValue, size: size)! + } + + func LatoHairline(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoHairline.rawValue, size: size)! + } + + func LatoBold(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoBold.rawValue, size: size)! + } + + func LatoBlack(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoBlack.rawValue, size: size)! + } + + func LatoRegular(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoRegular.rawValue, size: size)! + } + + func LatoBlackItalic(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)! + } + + func LatoBoldItalic(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)! + } + + func LatoLight(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoLight.rawValue, size: size)! + } + + func LatoHairlineItalic(withSize size: CGFloat) -> UIFont { + UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)! + } +} \ No newline at end of file diff --git a/SampleFiles/Fonts/Generated/UIFontoptions.+FontGenAllScript.swift b/SampleFiles/Fonts/Generated/UIFontoptions.+FontGenAllScript.swift deleted file mode 100644 index 398823b..0000000 --- a/SampleFiles/Fonts/Generated/UIFontoptions.+FontGenAllScript.swift +++ /dev/null @@ -1,62 +0,0 @@ -// Generated from FontToolCore - -import UIKit - -extension UIFont { - - enum FontName: String { - case LatoItalic = "Lato-Italic" - case LatoLightItalic = "Lato-LightItalic" - case LatoHairline = "Lato-Hairline" - case LatoBold = "Lato-Bold" - case LatoBlack = "Lato-Black" - case LatoRegular = "Lato-Regular" - case LatoBlackItalic = "Lato-BlackItalic" - case LatoBoldItalic = "Lato-BoldItalic" - case LatoLight = "Lato-Light" - case LatoHairlineItalic = "Lato-HairlineItalic" - } - - // MARK: - Getter - - static let LatoItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoItalic.rawValue, size: size)! - } - - static let LatoLightItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLightItalic.rawValue, size: size)! - } - - static let LatoHairline: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairline.rawValue, size: size)! - } - - static let LatoBold: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBold.rawValue, size: size)! - } - - static let LatoBlack: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlack.rawValue, size: size)! - } - - static let LatoRegular: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoRegular.rawValue, size: size)! - } - - static let LatoBlackItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)! - } - - static let LatoBoldItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)! - } - - static let LatoLight: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoLight.rawValue, size: size)! - } - - static let LatoHairlineItalic: ((_ size: CGFloat) -> UIFont) = { size in - UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)! - } - -} \ No newline at end of file diff --git a/SampleFiles/Images/Generated/UIImage+GenAllScript.swift b/SampleFiles/Images/Generated/UIImage+GenAllScript.swift index 0d1bf02..20dc6ea 100644 --- a/SampleFiles/Images/Generated/UIImage+GenAllScript.swift +++ b/SampleFiles/Images/Generated/UIImage+GenAllScript.swift @@ -1,32 +1,31 @@ -// Generated by ResgenSwift.Imagium 1.0.0 +// Generated by ResgenSwift.Images 1.0 // Images from sampleImages import UIKit extension UIImage { - static var article_notification_pull_detail: UIImage { + var article_notification_pull_detail: UIImage { UIImage(named: "article_notification_pull_detail")! } - - static var article_notification_pull: UIImage { + + var article_notification_pull: UIImage { UIImage(named: "article_notification_pull")! } - - static var new_article: UIImage { + + var new_article: UIImage { UIImage(named: "new_article")! } - - static var welcome_background: UIImage { + + var welcome_background: UIImage { UIImage(named: "welcome_background")! } - - static var article_trash: UIImage { + + var article_trash: UIImage { UIImage(named: "article_trash")! } - - static var ic_close_article: UIImage { + + var ic_close_article: UIImage { UIImage(named: "ic_close_article")! } - } \ No newline at end of file diff --git a/SampleFiles/Images/Generated/UIImage+ImageGenAllScript.swift b/SampleFiles/Images/Generated/UIImage+ImageGenAllScript.swift deleted file mode 100644 index ca3752e..0000000 --- a/SampleFiles/Images/Generated/UIImage+ImageGenAllScript.swift +++ /dev/null @@ -1,32 +0,0 @@ -// Generated from Imagium at 2022-02-14 09:30:23 +0000 -// Images from sampleImages - -import UIKit - -extension UIImage { - - static var article_notification_pull_detail: UIImage { - UIImage(named: "article_notification_pull_detail")! - } - - static var article_notification_pull: UIImage { - UIImage(named: "article_notification_pull")! - } - - static var new_article: UIImage { - UIImage(named: "new_article")! - } - - static var welcome_background: UIImage { - UIImage(named: "welcome_background")! - } - - static var article_trash: UIImage { - UIImage(named: "article_trash")! - } - - static var ic_close_article: UIImage { - UIImage(named: "ic_close_article")! - } - -} \ No newline at end of file diff --git a/SampleFiles/Strings/Generated/MyString+TargetSuffix.swift b/SampleFiles/Strings/Generated/MyString+TargetSuffix.swift deleted file mode 100644 index 38795d5..0000000 --- a/SampleFiles/Strings/Generated/MyString+TargetSuffix.swift +++ /dev/null @@ -1,37 +0,0 @@ -// Generated from StringToolCore at 2022-01-10 08:27:11 +0000 - -import UIKit - -fileprivate let kStringsFileName = "sampleStrings" - -extension MyString { - - // MARK: - Webservice - - /// Translation in en : - /// en - var param_lang: String { - NSLocalizedString("param_lang", tableName: kStringsFileName, bundle: Bundle.main, value: "en", comment: "") - } - - // MARK: - Generic - - /// Translation in en : - /// Back - var generic_back: String { - NSLocalizedString("generic_back", tableName: kStringsFileName, bundle: Bundle.main, value: "Back", comment: "") - } - - /// Translation in en : - /// Loading data... - var generic_loading_data: String { - NSLocalizedString("generic_loading_data", tableName: kStringsFileName, bundle: Bundle.main, value: "Loading data...", comment: "") - } - - /// Translation in en : - /// Welcome %@ ! - var generic_welcome_firstname_format: String { - NSLocalizedString("generic_welcome_firstname_format", tableName: kStringsFileName, bundle: Bundle.main, value: "Welcome %@ !", comment: "") - } - -} \ No newline at end of file diff --git a/SampleFiles/Strings/Generated/String+GenAllScript.swift b/SampleFiles/Strings/Generated/String+GenAllScript.swift index 98cb8ef..c5decf4 100644 --- a/SampleFiles/Strings/Generated/String+GenAllScript.swift +++ b/SampleFiles/Strings/Generated/String+GenAllScript.swift @@ -1,4 +1,4 @@ -// Generated by ResgenSwift.Strings.Stringium 1.0.0 +// Generated by ResgenSwift.Strings.Stringium 1.0 import UIKit @@ -6,60 +6,59 @@ fileprivate let kStringsFileName = "sampleStrings" extension String { - // MARK: - Webservice + // MARK: - Webservice /// Translation in en : /// en - static var param_lang: String { + var param_lang: String { NSLocalizedString("param_lang", tableName: kStringsFileName, bundle: Bundle.main, value: "en", comment: "") } - // MARK: - Generic + // MARK: - Generic /// Translation in en : /// Back - static var generic_back: String { + var generic_back: String { NSLocalizedString("generic_back", tableName: kStringsFileName, bundle: Bundle.main, value: "Back", comment: "") } /// Translation in en : /// Loading data... - static var generic_loading_data: String { + var generic_loading_data: String { NSLocalizedString("generic_loading_data", tableName: kStringsFileName, bundle: Bundle.main, value: "Loading data...", comment: "") } /// Translation in en : /// Welcome \"%@\" ! - static var generic_welcome_firstname_format: String { + var generic_welcome_firstname_format: String { NSLocalizedString("generic_welcome_firstname_format", tableName: kStringsFileName, bundle: Bundle.main, value: "Welcome \"%@\" !", comment: "") } /// Translation in en : /// Welcome \"%@\" ! - static func generic_welcome_firstname_format(arg0: String) -> String { - String(format: Self.generic_welcome_firstname_format, arg0) + func generic_welcome_firstname_format(arg0: String) -> String { + String(format: self.generic_welcome_firstname_format, arg0) } - // MARK: - EqualSymbol + // MARK: - EqualSymbol /// Translation in en : /// 1€ = 1 point ! - static var test_equal_symbol: String { + var test_equal_symbol: String { NSLocalizedString("test_equal_symbol", tableName: kStringsFileName, bundle: Bundle.main, value: "1€ = 1 point !", comment: "") } - // MARK: - Placeholders + // MARK: - Placeholders /// Translation in en : /// You %%: %2$@ %1$@ Age: %3$d - static var placeholders_test_one: String { + var placeholders_test_one: String { NSLocalizedString("placeholders_test_one", tableName: kStringsFileName, bundle: Bundle.main, value: "You %%: %2$@ %1$@ Age: %3$d", comment: "") } /// Translation in en : /// You %%: %2$@ %1$@ Age: %3$d - static func placeholders_test_one(arg0: String, arg1: String, arg2: Int) -> String { - String(format: Self.placeholders_test_one, arg0, arg1, arg2) + func placeholders_test_one(arg0: String, arg1: String, arg2: Int) -> String { + String(format: self.placeholders_test_one, arg0, arg1, arg2) } - } \ No newline at end of file diff --git a/SampleFiles/Strings/Generated/String+Placeholders.swift b/SampleFiles/Strings/Generated/String+Placeholders.swift deleted file mode 100644 index 31c8470..0000000 --- a/SampleFiles/Strings/Generated/String+Placeholders.swift +++ /dev/null @@ -1,57 +0,0 @@ -// Generated from Strings-Stringium at 2022-03-07 11:02:15 +0000 - -import UIKit - -fileprivate let kStringsFileName = "sampleStrings" - -extension String { - - // MARK: - Webservice - - /// Translation in en : - /// en - static var param_lang: String { - NSLocalizedString("param_lang", tableName: kStringsFileName, bundle: Bundle.main, value: "en", comment: "") - } - - // MARK: - Generic - - /// Translation in en : - /// Back - static var generic_back: String { - NSLocalizedString("generic_back", tableName: kStringsFileName, bundle: Bundle.main, value: "Back", comment: "") - } - - /// Translation in en : - /// Loading data... - static var generic_loading_data: String { - NSLocalizedString("generic_loading_data", tableName: kStringsFileName, bundle: Bundle.main, value: "Loading data...", comment: "") - } - - /// Translation in en : - /// Welcome \"%@\" ! - static var generic_welcome_firstname_format: String { - NSLocalizedString("generic_welcome_firstname_format", tableName: kStringsFileName, bundle: Bundle.main, value: "Welcome \"%@\" !", comment: "") - } - - /// Translation in en : - /// Welcome \"%@\" ! - static func generic_welcome_firstname_format(arg0: String) -> String { - String(format: Self.generic_welcome_firstname_format, arg0) - } - - // MARK: - Placeholders - - /// Translation in en : - /// You %%: %2$@ %1$@ Age: %3$d - static var placeholders_test_one: String { - NSLocalizedString("placeholders_test_one", tableName: kStringsFileName, bundle: Bundle.main, value: "You %%: %2$@ %1$@ Age: %3$d", comment: "") - } - - /// Translation in en : - /// You %%: %2$@ %1$@ Age: %3$d - static func placeholders_test_one(arg0: String, arg1: String, arg2: Int) -> String { - String(format: Self.placeholders_test_one, arg0, arg1, arg2) - } - -} \ No newline at end of file diff --git a/SampleFiles/Strings/Generated/String+TargetSuffix.swift b/SampleFiles/Strings/Generated/String+TargetSuffix.swift deleted file mode 100644 index fcf6786..0000000 --- a/SampleFiles/Strings/Generated/String+TargetSuffix.swift +++ /dev/null @@ -1,37 +0,0 @@ -// Generated from StringToolCore at 2022-01-10 08:39:52 +0000 - -import UIKit - -fileprivate let kStringsFileName = "sampleStrings" - -extension String { - - // MARK: - Webservice - - /// Translation in en : - /// en - static var param_lang: String { - NSLocalizedString("param_lang", tableName: kStringsFileName, bundle: Bundle.main, value: "en", comment: "") - } - - // MARK: - Generic - - /// Translation in en : - /// Back - static var generic_back: String { - NSLocalizedString("generic_back", tableName: kStringsFileName, bundle: Bundle.main, value: "Back", comment: "") - } - - /// Translation in en : - /// Loading data... - static var generic_loading_data: String { - NSLocalizedString("generic_loading_data", tableName: kStringsFileName, bundle: Bundle.main, value: "Loading data...", comment: "") - } - - /// Translation in en : - /// Welcome \"%@\" ! - static var generic_welcome_firstname_format: String { - NSLocalizedString("generic_welcome_firstname_format", tableName: kStringsFileName, bundle: Bundle.main, value: "Welcome \"%@\" !", comment: "") - } - -} \ No newline at end of file diff --git a/SampleFiles/Strings/Generated/StringTest+Placeholders.swift b/SampleFiles/Strings/Generated/StringTest+Placeholders.swift deleted file mode 100644 index 327d76d..0000000 --- a/SampleFiles/Strings/Generated/StringTest+Placeholders.swift +++ /dev/null @@ -1,57 +0,0 @@ -// Generated from Strings-Stringium at 2022-03-07 11:00:52 +0000 - -import UIKit - -fileprivate let kStringsFileName = "sampleStrings" - -extension StringTest { - - // MARK: - Webservice - - /// Translation in en : - /// en - var param_lang: String { - NSLocalizedString("param_lang", tableName: kStringsFileName, bundle: Bundle.main, value: "en", comment: "") - } - - // MARK: - Generic - - /// Translation in en : - /// Back - var generic_back: String { - NSLocalizedString("generic_back", tableName: kStringsFileName, bundle: Bundle.main, value: "Back", comment: "") - } - - /// Translation in en : - /// Loading data... - var generic_loading_data: String { - NSLocalizedString("generic_loading_data", tableName: kStringsFileName, bundle: Bundle.main, value: "Loading data...", comment: "") - } - - /// Translation in en : - /// Welcome \"%@\" ! - var generic_welcome_firstname_format: String { - NSLocalizedString("generic_welcome_firstname_format", tableName: kStringsFileName, bundle: Bundle.main, value: "Welcome \"%@\" !", comment: "") - } - - /// Translation in en : - /// Welcome \"%@\" ! - func generic_welcome_firstname_format(arg0: String) -> String { - String(format: self.generic_welcome_firstname_format, arg0) - } - - // MARK: - Placeholders - - /// Translation in en : - /// You %%: %2$@ %1$@ Age: %3$d - var placeholders_test_one: String { - NSLocalizedString("placeholders_test_one", tableName: kStringsFileName, bundle: Bundle.main, value: "You %%: %2$@ %1$@ Age: %3$d", comment: "") - } - - /// Translation in en : - /// You %%: %2$@ %1$@ Age: %3$d - func placeholders_test_one(arg0: String, arg1: String, arg2: Int) -> String { - String(format: self.placeholders_test_one, arg0, arg1, arg2) - } - -} \ No newline at end of file diff --git a/SampleFiles/Strings/Generated/en-us.lproj/sampleStrings.strings b/SampleFiles/Strings/Generated/en-us.lproj/sampleStrings.strings index be59eba..2f6f597 100644 --- a/SampleFiles/Strings/Generated/en-us.lproj/sampleStrings.strings +++ b/SampleFiles/Strings/Generated/en-us.lproj/sampleStrings.strings @@ -1,6 +1,6 @@ /** * Apple Strings File - * Generated by ResgenSwift 1.0.0 + * Generated by ResgenSwift 1.0 * Language: en-us */ diff --git a/SampleFiles/Strings/Generated/en.lproj/sampleStrings.strings b/SampleFiles/Strings/Generated/en.lproj/sampleStrings.strings index a0e6800..f92618a 100644 --- a/SampleFiles/Strings/Generated/en.lproj/sampleStrings.strings +++ b/SampleFiles/Strings/Generated/en.lproj/sampleStrings.strings @@ -1,6 +1,6 @@ /** * Apple Strings File - * Generated by ResgenSwift 1.0.0 + * Generated by ResgenSwift 1.0 * Language: en */ diff --git a/SampleFiles/Strings/Generated/fr.lproj/sampleStrings.strings b/SampleFiles/Strings/Generated/fr.lproj/sampleStrings.strings index 06df8fb..cfc520a 100644 --- a/SampleFiles/Strings/Generated/fr.lproj/sampleStrings.strings +++ b/SampleFiles/Strings/Generated/fr.lproj/sampleStrings.strings @@ -1,6 +1,6 @@ /** * Apple Strings File - * Generated by ResgenSwift 1.0.0 + * Generated by ResgenSwift 1.0 * Language: fr */ diff --git a/SampleFiles/Tags/Generated/Tags+GenAllScript.swift b/SampleFiles/Tags/Generated/Tags+GenAllScript.swift index 01fc191..f53f115 100644 --- a/SampleFiles/Tags/Generated/Tags+GenAllScript.swift +++ b/SampleFiles/Tags/Generated/Tags+GenAllScript.swift @@ -1,23 +1,20 @@ -// Generated by ResgenSwift.Strings.Tags 1.0.0 - -// typelias Tags = String +// Generated by ResgenSwift.Strings.Tags 1.0 import UIKit extension Tags { - // MARK: - ScreenTag + // MARK: - ScreenTag /// Translation in ium : /// Ecran un - static var screen_one: String { + var screen_one: String { "Ecran un" } /// Translation in ium : /// Ecran deux - static var screen_two: String { + var screen_two: String { "Ecran deux" } - } \ No newline at end of file diff --git a/SampleFiles/Tags/Generated/Tags+TagGenAllScript.swift b/SampleFiles/Tags/Generated/Tags+TagGenAllScript.swift deleted file mode 100644 index 0881d01..0000000 --- a/SampleFiles/Tags/Generated/Tags+TagGenAllScript.swift +++ /dev/null @@ -1,23 +0,0 @@ -// Generated from Strings-Tags at 2022-02-14 09:30:20 +0000 - -// typelias Tags = String - -import UIKit - -extension Tags { - - // MARK: - ScreenTag - - /// Translation in ium : - /// Ecran un - static var screen_one: String { - "Ecran un" - } - - /// Translation in ium : - /// Ecran deux - static var screen_two: String { - "Ecran deux" - } - -} \ No newline at end of file diff --git a/SampleFiles/genAllRessources.sh b/SampleFiles/genAllRessources.sh index 2c94a16..64d1add 100755 --- a/SampleFiles/genAllRessources.sh +++ b/SampleFiles/genAllRessources.sh @@ -3,25 +3,28 @@ FORCE_FLAG="$1" # Font -swift run -c release FontTool $FORCE_FLAG "./Fonts/sampleFontsAll.txt" \ +swift run -c release ResgenSwift fonts $FORCE_FLAG "./Fonts/sampleFontsAll.txt" \ --extension-output-path "./Fonts/Generated" \ - --extension-name "UIFont" \ - --extension-suffix "GenAllScript" + --extension-name "UIFontYolo" \ + --extension-name-swift-ui "FontYolo" \ + --extension-suffix "GenAllScript" \ + #--infoPlistPaths "./Fonts/Generated/test.plist ./Fonts/Generated/test2.plist" echo "\n-------------------------\n" # Color -swift run -c release ColorTool $FORCE_FLAG "./Colors/sampleColors1.txt" \ +swift run -c release ResgenSwift colors $FORCE_FLAG "./Colors/sampleColors1.txt" \ --style all \ --xcassets-path "./Colors/colors.xcassets" \ --extension-output-path "./Colors/Generated/" \ - --extension-name "UIColor" \ + --extension-name "UIColorYolo" \ + --extension-name-swift-ui "ColorYolo" \ --extension-suffix "GenAllScript" echo "\n-------------------------\n" # Twine -swift run -c release Strings twine $FORCE_FLAG "./Twine/sampleStrings.txt" \ +swift run -c release ResgenSwift strings twine $FORCE_FLAG "./Twine/sampleStrings.txt" \ --output-path "./Twine/Generated" \ --langs "fr en en-us" \ --default-lang "en" \ @@ -30,7 +33,7 @@ swift run -c release Strings twine $FORCE_FLAG "./Twine/sampleStrings.txt" \ echo "\n-------------------------\n" # Strings -swift run -c release Strings stringium $FORCE_FLAG "./Strings/sampleStrings.txt" \ +swift run -c release ResgenSwift strings stringium $FORCE_FLAG "./Strings/sampleStrings.txt" \ --output-path "./Strings/Generated" \ --langs "fr en en-us" \ --default-lang "en" \ @@ -41,7 +44,7 @@ swift run -c release Strings stringium $FORCE_FLAG "./Strings/sampleStrings.txt" echo "\n-------------------------\n" # Tags -swift run -c release Strings tags $FORCE_FLAG "./Tags/sampleTags.txt" \ +swift run -c release ResgenSwift strings tags $FORCE_FLAG "./Tags/sampleTags.txt" \ --lang "ium" \ --extension-output-path "./Tags/Generated" \ --extension-name "Tags" \ @@ -50,7 +53,7 @@ swift run -c release Strings tags $FORCE_FLAG "./Tags/sampleTags.txt" \ echo "\n-------------------------\n" # Images -swift run -c release Imagium $FORCE_FLAG "./Images/sampleImages.txt" \ +swift run -c release ResgenSwift images $FORCE_FLAG "./Images/sampleImages.txt" \ --xcassets-path "./Images/imagium.xcassets" \ --extension-output-path "./Images/Generated" \ --extension-name "UIImage" \