Refactor SwiftUI extension generation and generation SwiftUI extension for images
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
2022-11-03 15:00:27 +01:00
parent 4f7d7e18b1
commit 085f1ffc33
25 changed files with 219 additions and 264 deletions

View File

@ -17,7 +17,7 @@ final class FontNameTests: XCTestCase {
let fontName: FontName = "CircularStdBold"
// When
let property = fontName.staticProperty
let property = fontName.getProperty(isStatic: true, isSwiftUI: false)
// Expect
let expect = """
@ -34,7 +34,7 @@ final class FontNameTests: XCTestCase {
let fontName: FontName = "[Circular_Std+Bold-Underline]"
// When
let property = fontName.staticProperty
let property = fontName.getProperty(isStatic: true, isSwiftUI: false)
// Expect
let expect = """
@ -51,7 +51,7 @@ final class FontNameTests: XCTestCase {
let fontName: FontName = "CircularStdBold"
// When
let property = fontName.method
let property = fontName.getProperty(isStatic: false, isSwiftUI: false)
// Expect
let expect = """
@ -68,7 +68,7 @@ final class FontNameTests: XCTestCase {
let fontName: FontName = "[Circular_Std+Bold-Underline]"
// When
let property = fontName.method
let property = fontName.getProperty(isStatic: false, isSwiftUI: false)
// Expect
let expect = """