From 4c9b98d626dace9abaaf758e14eb3263960898c4 Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Sun, 1 Oct 2023 11:26:33 +0300 Subject: [PATCH] Add SwiftGen plugin --- .github/workflows/build-example.yml | 14 + .gitignore | 1 + Package.swift | 10 +- Scripts/swiftgen.yml | 31 - .../OversizeUI/Controls/Avatar/Avatar.swift | 6 +- .../OversizeUI/Controls/Button/Button.swift | 4 +- .../OversizeUI/Generated/GeneratedIcons.swift | 906 ------------------ .../Generated/GeneratedImages.swift | 82 -- .../Base/Attach.imageset/Contents.json | 12 + .../Attach.imageset/tabler-icon-paperclip.svg | 6 + .../Base/Clear.imageset/Contents.json | 15 + .../Base/Clear.imageset/delete.pdf | Bin 0 -> 4620 bytes .../Base/Link.imageset/Contents.json | 12 + .../Base/Link.imageset/tabler-icon-link.svg | 8 + .../Base/NearMe.imageset/Contents.json | 15 + .../Base/NearMe.imageset/navigation.pdf | Bin 0 -> 1882 bytes .../Status/Test.imageset/Contents.json | 15 + .../Status/Test.imageset/Error.svg | 27 + swiftgen.yml | 23 +- 19 files changed, 145 insertions(+), 1042 deletions(-) delete mode 100644 Scripts/swiftgen.yml delete mode 100644 Sources/OversizeUI/Generated/GeneratedIcons.swift delete mode 100644 Sources/OversizeUI/Generated/GeneratedImages.swift create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/Contents.json create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/tabler-icon-paperclip.svg create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/Clear.imageset/Contents.json create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/Clear.imageset/delete.pdf create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/Link.imageset/Contents.json create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/Link.imageset/tabler-icon-link.svg create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/NearMe.imageset/Contents.json create mode 100644 Sources/OversizeUI/Resources/Icons.xcassets/Base/NearMe.imageset/navigation.pdf create mode 100644 Sources/OversizeUI/Resources/Images.xcassets/Status/Test.imageset/Contents.json create mode 100644 Sources/OversizeUI/Resources/Images.xcassets/Status/Test.imageset/Error.svg diff --git a/.github/workflows/build-example.yml b/.github/workflows/build-example.yml index cc56d35..09e3e37 100644 --- a/.github/workflows/build-example.yml +++ b/.github/workflows/build-example.yml @@ -16,6 +16,20 @@ env: WATCHSCHEME: Example jobs: + + build-package: + + runs-on: macOS-13 + + name: Package build + + steps: + - uses: actions/checkout@v3 + - name: Select Xcode + run: sudo xcode-select -switch /Applications/Xcode_15.0.app && /usr/bin/xcodebuild -version + + - name: Build and run tests + run: xcodebuild clean build -scheme Example -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.4' | xcpretty && exit ${PIPESTATUS[0]} example: name: Run examples diff --git a/.gitignore b/.gitignore index a39fc57..6745e57 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ xcuserdata/ DerivedData/ .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata /.idea/ +/Package.resolved diff --git a/Package.swift b/Package.swift index 023c2c0..8c32425 100644 --- a/Package.swift +++ b/Package.swift @@ -16,13 +16,17 @@ let package = Package( products: [ .library(name: "OversizeUI", targets: ["OversizeUI"]), ], - dependencies: [], + dependencies: [ + .package(url: "https://github.com/SwiftGen/SwiftGenPlugin", from: "6.6.2"), + ], targets: [ .target( name: "OversizeUI", dependencies: [], - resources: [.process("Resources")] - // swiftSettings: [.define("ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS")] + resources: [.process("Resources")], + plugins: [ + .plugin(name: "SwiftGenPlugin", package: "SwiftGenPlugin"), + ] ), .testTarget(name: "OversizeUITests", dependencies: ["OversizeUI"]), ] diff --git a/Scripts/swiftgen.yml b/Scripts/swiftgen.yml deleted file mode 100644 index f978bdd..0000000 --- a/Scripts/swiftgen.yml +++ /dev/null @@ -1,31 +0,0 @@ -#xcassets: -# - inputs: ${SRCROOT}/../Sources/OversizeUI/Resources/Images.xcassets -# outputs: -# - templateName: swift5 -# output: ${SRCROOT}/../Sources/OversizeUI/Generated/Images.swift -# params: -# enumName: AppImage -#xcassets: -# - inputs: ${SRCROOT}/../Sources/OversizeUI/Resources/Icons.xcassets -# outputs: -# - templateName: swift5 -# output: ${SRCROOT}/../Sources/OversizeUI/Generated/IconsGen.swift -# params: -# enumName: IconGen -# publicAccess: 1 -# - inputs: ${SRCROOT}/../Sources/OversizeUI/Resources/Palette.xcassets -# outputs: -# - templateName: swift5 -# output: ${SRCROOT}/../Sources/OversizeUI/Generated/PaletteColors.swift -# params: -# enumName: AppColor -# publicAccess: 1 -#strings: -# - inputs: ${SRCROOT}/../Sources/OversizeUI/Resources/en.lproj -# filter: .+\.strings$ -# outputs: -# - templateName: structured-swift5 -# output: ${SRCROOT}/../Sources/OversizeUI/Generated/Strings.swift -# params: -# publicAccess: 1 -# diff --git a/Sources/OversizeUI/Controls/Avatar/Avatar.swift b/Sources/OversizeUI/Controls/Avatar/Avatar.swift index bc36704..eeb49ae 100644 --- a/Sources/OversizeUI/Controls/Avatar/Avatar.swift +++ b/Sources/OversizeUI/Controls/Avatar/Avatar.swift @@ -161,7 +161,7 @@ public struct Avatar: View { return .subheadline case .regular: return .title3 - case .large: + case .large, .extraLarge: return .largeTitle @unknown default: return .title2 @@ -177,7 +177,7 @@ public struct Avatar: View { return 1 case .regular: return 2 - case .large: + case .large, .extraLarge: return 2 @unknown default: return 0 @@ -195,6 +195,8 @@ public struct Avatar: View { return Space.xLarge.rawValue case .large: return Space.xxxLarge.rawValue + case .extraLarge: + return 128 @unknown default: return Space.xLarge.rawValue } diff --git a/Sources/OversizeUI/Controls/Button/Button.swift b/Sources/OversizeUI/Controls/Button/Button.swift index eb75eee..ed0bed1 100644 --- a/Sources/OversizeUI/Controls/Button/Button.swift +++ b/Sources/OversizeUI/Controls/Button/Button.swift @@ -145,7 +145,7 @@ public struct OversizeButtonStyle: ButtonStyle { return .small case .regular: return .small - case .large: + case .large, .extraLarge: return .medium @unknown default: return .zero @@ -164,7 +164,7 @@ public struct OversizeButtonStyle: ButtonStyle { return .xxSmall case .regular: return .small - case .large: + case .large, .extraLarge: return .medium @unknown default: return .zero diff --git a/Sources/OversizeUI/Generated/GeneratedIcons.swift b/Sources/OversizeUI/Generated/GeneratedIcons.swift deleted file mode 100644 index b7089f3..0000000 --- a/Sources/OversizeUI/Generated/GeneratedIcons.swift +++ /dev/null @@ -1,906 +0,0 @@ -// swiftlint:disable all -// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen - -import SwiftUI - -// swiftlint:disable superfluous_disable_command file_length implicit_return - -// MARK: - Asset Catalogs - -// swiftlint:disable identifier_name line_length nesting type_body_length type_name -public extension SwiftUI.Image { - enum Base { - public enum Activity { - public static let fill = Image("Base/Activity/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Activity/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Activity/TwoTone", bundle: .module) - } - - public static let activity = Image("Base/Activity", bundle: .module) - public enum AddUser { - public static let fill = Image("Base/AddUser/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/AddUser/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/AddUser/TwoTone", bundle: .module) - } - - public static let addUser = Image("Base/AddUser", bundle: .module) - public enum ArrowDown { - public static let fill = Image("Base/ArrowDown/Fill", bundle: .module) - public static let square = Image("Base/ArrowDown/Square", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ArrowDown/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ArrowDown/TwoTone", bundle: .module) - } - - public static let arrowDown = Image("Base/ArrowDown", bundle: .module) - public enum ArrowLeft { - public static let fill = Image("Base/ArrowLeft/Fill", bundle: .module) - public static let square = Image("Base/ArrowLeft/Square", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ArrowLeft/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ArrowLeft/TwoTone", bundle: .module) - } - - public static let arrowLeft = Image("Base/ArrowLeft", bundle: .module) - public enum ArrowRight { - public static let fill = Image("Base/ArrowRight/Fill", bundle: .module) - public static let square = Image("Base/ArrowRight/Square", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ArrowRight/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ArrowRight/TwoTone", bundle: .module) - } - - public static let arrowRight = Image("Base/ArrowRight", bundle: .module) - public enum ArrowUp { - public static let fill = Image("Base/ArrowUp/Fill", bundle: .module) - public static let square = Image("Base/ArrowUp/Square", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ArrowUp/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ArrowUp/TwoTone", bundle: .module) - } - - public static let arrowUp = Image("Base/ArrowUp", bundle: .module) - public enum Bag { - public static let fill = Image("Base/Bag/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Bag/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Bag/TwoTone", bundle: .module) - } - - public static let bag = Image("Base/Bag", bundle: .module) - public enum Bag2 { - public static let fill = Image("Base/Bag2/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Bag2/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Bag2/TwoTone", bundle: .module) - } - - public static let bag2 = Image("Base/Bag2", bundle: .module) - public enum Bookmark { - public static let fill = Image("Base/Bookmark/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Bookmark/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Bookmark/TwoTone", bundle: .module) - } - - public static let bookmark = Image("Base/Bookmark", bundle: .module) - public enum Buy { - public static let fill = Image("Base/Buy/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Buy/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Buy/TwoTone", bundle: .module) - } - - public static let buy = Image("Base/Buy", bundle: .module) - public enum Calendar { - public static let fill = Image("Base/Calendar/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Calendar/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Calendar/TwoTone", bundle: .module) - } - - public static let calendar = Image("Base/Calendar", bundle: .module) - public enum CallMissed { - public static let fill = Image("Base/CallMissed/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/CallMissed/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/CallMissed/TwoTone", bundle: .module) - } - - public static let callMissed = Image("Base/CallMissed", bundle: .module) - public enum Calling { - public static let fill = Image("Base/Calling/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Calling/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Calling/TwoTone", bundle: .module) - } - - public static let calling = Image("Base/Calling", bundle: .module) - public enum Camera { - public static let fill = Image("Base/Camera/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Camera/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Camera/TwoTone", bundle: .module) - } - - public static let camera = Image("Base/Camera", bundle: .module) - public enum Category { - public static let fill = Image("Base/Category/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Category/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Category/TwoTone", bundle: .module) - } - - public static let category = Image("Base/Category", bundle: .module) - public enum Chart { - public static let fill = Image("Base/Chart/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Chart/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Chart/TwoTone", bundle: .module) - } - - public static let chart = Image("Base/Chart", bundle: .module) - public enum Chat { - public static let fill = Image("Base/Chat/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Chat/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Chat/TwoTone", bundle: .module) - } - - public static let chat = Image("Base/Chat", bundle: .module) - public enum Check { - public static let mini = Image("Base/Check/Mini", bundle: .module) - public enum Square { - public static let fill = Image("Base/Check/Square/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Check/Square/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Check/Square/TwoTone", bundle: .module) - } - - public static let square = Image("Base/Check/Square", bundle: .module) - } - - public enum ChevronDown { - public enum Circle { - public static let fill = Image("Base/ChevronDown/Circle/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ChevronDown/Circle/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ChevronDown/Circle/TwoTone", bundle: .module) - } - - public static let circle = Image("Base/ChevronDown/Circle", bundle: .module) - } - - public static let chevronDown = Image("Base/ChevronDown", bundle: .module) - public enum ChevronLeft { - public enum Circle { - public static let fill = Image("Base/ChevronLeft/Circle/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ChevronLeft/Circle/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ChevronLeft/Circle/TwoTone", bundle: .module) - } - - public static let circle = Image("Base/ChevronLeft/Circle", bundle: .module) - } - - public static let chevronLeft = Image("Base/ChevronLeft", bundle: .module) - public enum ChevronRight { - public enum Circle { - public static let fill = Image("Base/ChevronRight/Circle/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ChevronRight/Circle/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ChevronRight/Circle/TwoTone", bundle: .module) - } - - public static let circle = Image("Base/ChevronRight/Circle", bundle: .module) - } - - public static let chevronRight = Image("Base/ChevronRight", bundle: .module) - public enum ChevronUp { - public enum Circle { - public static let fill = Image("Base/ChevronUp/Circle/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ChevronUp/Circle/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ChevronUp/Circle/TwoTone", bundle: .module) - } - - public static let circle = Image("Base/ChevronUp/Circle", bundle: .module) - } - - public static let chevronUp = Image("Base/ChevronUp", bundle: .module) - public enum Clock { - public static let fill = Image("Base/Clock/Fill", bundle: .module) - public enum Square { - public static let fill = Image("Base/Clock/Square/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Clock/Square/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Clock/Square/TwoTone", bundle: .module) - } - - public static let square = Image("Base/Clock/Square", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Clock/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Clock/TwoTone", bundle: .module) - } - - public static let clock = Image("Base/Clock", bundle: .module) - public enum Close { - public static let mini = Image("Base/Close/Mini", bundle: .module) - public enum Square { - public static let fill = Image("Base/Close/Square/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Close/Square/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Close/Square/TwoTone", bundle: .module) - } - - public static let square = Image("Base/Close/Square", bundle: .module) - } - - public static let close = Image("Base/Close", bundle: .module) - public enum Delete { - public static let fill = Image("Base/Delete/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Delete/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Delete/TwoTone", bundle: .module) - } - - public static let delete = Image("Base/Delete", bundle: .module) - public enum Discovery { - public static let fill = Image("Base/Discovery/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Discovery/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Discovery/TwoTone", bundle: .module) - } - - public static let discovery = Image("Base/Discovery", bundle: .module) - public enum Document { - public static let fill = Image("Base/Document/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Document/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Document/TwoTone", bundle: .module) - } - - public static let document = Image("Base/Document", bundle: .module) - public enum Download { - public static let fill = Image("Base/Download/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Download/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Download/TwoTone", bundle: .module) - } - - public static let download = Image("Base/Download", bundle: .module) - public enum Edit { - public static let fill = Image("Base/Edit/Fill", bundle: .module) - public enum Square { - public static let fill = Image("Base/Edit/Square/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Edit/Square/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Edit/Square/TwoTone", bundle: .module) - } - - public static let square = Image("Base/Edit/Square", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Edit/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Edit/TwoTone", bundle: .module) - } - - public static let edit = Image("Base/Edit", bundle: .module) - public enum Exclamationmark { - public enum Circle { - public static let fill = Image("Base/Exclamationmark/Circle/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Exclamationmark/Circle/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Exclamationmark/Circle/TwoTone", bundle: .module) - } - - public static let circle = Image("Base/Exclamationmark/Circle", bundle: .module) - public enum Triangle { - public static let fill = Image("Base/Exclamationmark/Triangle/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Exclamationmark/Triangle/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Exclamationmark/Triangle/TwoTone", bundle: .module) - } - - public static let triangle = Image("Base/Exclamationmark/Triangle", bundle: .module) - } - - public static let exclamationmark = Image("Base/Exclamationmark", bundle: .module) - public enum Eye { - public static let fill = Image("Base/Eye/Fill", bundle: .module) - public enum Slash { - public static let fill = Image("Base/Eye/Slash/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Eye/Slash/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Eye/Slash/TwoTone", bundle: .module) - } - - public static let slash = Image("Base/Eye/Slash", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Eye/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Eye/TwoTone", bundle: .module) - } - - public static let eye = Image("Base/Eye", bundle: .module) - public enum Filter { - public static let fill = Image("Base/Filter/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Filter/TwoTone/Fill", bundle: .module) - } - } - - public static let filter = Image("Base/Filter", bundle: .module) - public enum Folder { - public static let fill = Image("Base/Folder/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Folder/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Folder/TwoTone", bundle: .module) - } - - public static let folder = Image("Base/Folder", bundle: .module) - public enum Game { - public static let fill = Image("Base/Game/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Game/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Game/TwoTone", bundle: .module) - } - - public static let game = Image("Base/Game", bundle: .module) - public enum Graph { - public static let fill = Image("Base/Graph/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Graph/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Graph/TwoTone", bundle: .module) - } - - public static let graph = Image("Base/Graph", bundle: .module) - public enum Heart { - public static let fill = Image("Base/Heart/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Heart/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Heart/TwoTone", bundle: .module) - } - - public static let heart = Image("Base/Heart", bundle: .module) - public enum Home { - public static let fill = Image("Base/Home/Fill", bundle: .module) - } - - public static let home = Image("Base/Home", bundle: .module) - public enum Info { - public enum Circle { - public static let fill = Image("Base/Info/Circle/Fill", bundle: .module) - public static let twoTone = Image("Base/Info/Circle/TwoTone", bundle: .module) - } - - public static let circle = Image("Base/Info/Circle", bundle: .module) - public enum Square { - public static let dash = Image("Base/Info/Square/Dash", bundle: .module) - public enum TwoTone { - public static let dash = Image("Base/Info/Square/TwoTone/Dash", bundle: .module) - public static let fill = Image("Base/Info/Square/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Info/Square/TwoTone", bundle: .module) - } - - public static let square = Image("Base/Info/Square", bundle: .module) - } - - public static let info = Image("Base/Info", bundle: .module) - public enum Location { - public static let fill = Image("Base/Location/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Location/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Location/TwoTone", bundle: .module) - } - - public static let location = Image("Base/Location", bundle: .module) - public enum Lock { - public static let fill = Image("Base/Lock/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Lock/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Lock/TwoTone", bundle: .module) - } - - public static let lock = Image("Base/Lock", bundle: .module) - public enum Login { - public static let fill = Image("Base/Login/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Login/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Login/TwoTone", bundle: .module) - } - - public static let login = Image("Base/Login", bundle: .module) - public enum Logout { - public static let fill = Image("Base/Logout/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Logout/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Logout/TwoTone", bundle: .module) - } - - public static let logout = Image("Base/Logout", bundle: .module) - public enum Message { - public static let fill = Image("Base/Message/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Message/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Message/TwoTone", bundle: .module) - } - - public static let message = Image("Base/Message", bundle: .module) - public enum More { - public enum Circle { - public static let fill = Image("Base/More/Circle/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/More/Circle/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/More/Circle/TwoTone", bundle: .module) - } - - public static let circle = Image("Base/More/Circle", bundle: .module) - public enum Square { - public static let fill = Image("Base/More/Square/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/More/Square/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/More/Square/TwoTone", bundle: .module) - } - - public static let square = Image("Base/More/Square", bundle: .module) - public static let vertical = Image("Base/More/Vertical", bundle: .module) - } - - public static let more = Image("Base/More", bundle: .module) - public enum Notification { - public static let fill = Image("Base/Notification/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Notification/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Notification/TwoTone", bundle: .module) - } - - public static let notification = Image("Base/Notification", bundle: .module) - public enum Paper { - public static let fill = Image("Base/Paper/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Paper/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Paper/TwoTone", bundle: .module) - } - - public static let paper = Image("Base/Paper", bundle: .module) - public enum PaperDownload { - public static let fill = Image("Base/PaperDownload/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/PaperDownload/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/PaperDownload/TwoTone", bundle: .module) - } - - public static let paperDownload = Image("Base/PaperDownload", bundle: .module) - public enum PaperFail { - public static let fill = Image("Base/PaperFail/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/PaperFail/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/PaperFail/TwoTone", bundle: .module) - } - - public static let paperFail = Image("Base/PaperFail", bundle: .module) - public enum PaperNegative { - public static let fill = Image("Base/PaperNegative/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/PaperNegative/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/PaperNegative/TwoTone", bundle: .module) - } - - public static let paperNegative = Image("Base/PaperNegative", bundle: .module) - public enum PaperPlus { - public static let fill = Image("Base/PaperPlus/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/PaperPlus/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/PaperPlus/TwoTone", bundle: .module) - } - - public static let paperPlus = Image("Base/PaperPlus", bundle: .module) - public enum PaperUpload { - public static let fill = Image("Base/PaperUpload/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/PaperUpload/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/PaperUpload/TwoTone", bundle: .module) - } - - public static let paperUpload = Image("Base/PaperUpload", bundle: .module) - public enum Password { - public static let fill = Image("Base/Password/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Password/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Password/TwoTone", bundle: .module) - } - - public static let password = Image("Base/Password", bundle: .module) - public enum Phone { - public static let fill = Image("Base/Phone/Fill", bundle: .module) - public enum Slach { - public static let fill = Image("Base/Phone/Slach/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Phone/Slach/TwoTone/Fill", bundle: .module) - } - } - - public static let slash = Image("Base/Phone/Slash", bundle: .module) - } - - public static let phone = Image("Base/Phone", bundle: .module) - public enum Picture { - public static let fill = Image("Base/Picture/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Picture/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Picture/TwoTone", bundle: .module) - } - - public static let picture = Image("Base/Picture", bundle: .module) - public enum Picture2 { - public static let fill = Image("Base/Picture2/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Picture2/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Picture2/TwoTone", bundle: .module) - } - - public static let picture2 = Image("Base/Picture2", bundle: .module) - public enum Play { - public static let fill = Image("Base/Play/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Play/TwoTone/Fill", bundle: .module) - } - } - - public static let play = Image("Base/Play", bundle: .module) - public enum Plus { - public static let fill = Image("Base/Plus/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Plus/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Plus/TwoTone", bundle: .module) - } - - public static let plus = Image("Base/Plus", bundle: .module) - public enum Profile { - public static let fill = Image("Base/Profile/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Profile/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Profile/TwoTone", bundle: .module) - } - - public static let profile = Image("Base/Profile", bundle: .module) - public enum Scan { - public static let fill = Image("Base/Scan/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Scan/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Scan/TwoTone", bundle: .module) - } - - public static let scan = Image("Base/Scan", bundle: .module) - public enum Search { - public static let fill = Image("Base/Search/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Search/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Search/TwoTone", bundle: .module) - } - - public static let search = Image("Base/Search", bundle: .module) - public enum Send { - public static let fill = Image("Base/Send/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Send/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Send/TwoTone", bundle: .module) - } - - public static let send = Image("Base/Send", bundle: .module) - public enum Setting { - public static let fill = Image("Base/Setting/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Setting/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Setting/TwoTone", bundle: .module) - } - - public static let setting = Image("Base/Setting", bundle: .module) - public enum Setting2 { - public static let fill = Image("Base/Setting2/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Setting2/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Setting2/TwoTone", bundle: .module) - } - - public static let setting2 = Image("Base/Setting2", bundle: .module) - public enum ShieldDone { - public static let fill = Image("Base/ShieldDone/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ShieldDone/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ShieldDone/TwoTone", bundle: .module) - } - - public static let shieldDone = Image("Base/ShieldDone", bundle: .module) - public enum ShieldFail { - public static let fill = Image("Base/ShieldFail/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/ShieldFail/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/ShieldFail/TwoTone", bundle: .module) - } - - public static let shieldFail = Image("Base/ShieldFail", bundle: .module) - public enum Star { - public static let fill = Image("Base/Star/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Star/TwoTone/Fill", bundle: .module) - } - } - - public static let star = Image("Base/Star", bundle: .module) - public enum Swap { - public static let fill = Image("Base/Swap/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Swap/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Swap/TwoTone", bundle: .module) - } - - public static let swap = Image("Base/Swap", bundle: .module) - public enum Ticket { - public static let fill = Image("Base/Ticket/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Ticket/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Ticket/TwoTone", bundle: .module) - } - - public static let ticket = Image("Base/Ticket", bundle: .module) - public enum TicketStar { - public static let fill = Image("Base/TicketStar/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/TicketStar/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/TicketStar/TwoTone", bundle: .module) - } - - public static let ticketStar = Image("Base/TicketStar", bundle: .module) - public enum Unlock { - public static let fill = Image("Base/Unlock/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Unlock/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Unlock/TwoTone", bundle: .module) - } - - public static let unlock = Image("Base/Unlock", bundle: .module) - public enum Upload { - public static let fill = Image("Base/Upload/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Upload/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Upload/TwoTone", bundle: .module) - } - - public static let upload = Image("Base/Upload", bundle: .module) - public enum User2 { - public static let fill = Image("Base/User2/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/User2/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/User2/TwoTone", bundle: .module) - } - - public static let user2 = Image("Base/User2", bundle: .module) - public enum User3 { - public static let fill = Image("Base/User3/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/User3/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/User3/TwoTone", bundle: .module) - } - - public static let user3 = Image("Base/User3", bundle: .module) - public enum Video { - public static let fill = Image("Base/Video/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Video/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Video/TwoTone", bundle: .module) - } - - public static let video = Image("Base/Video", bundle: .module) - public enum Voice { - public static let fill = Image("Base/Voice/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Voice/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Voice/TwoTone", bundle: .module) - } - - public static let voice = Image("Base/Voice", bundle: .module) - public enum VolumeDown { - public static let fill = Image("Base/VolumeDown/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/VolumeDown/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/VolumeDown/TwoTone", bundle: .module) - } - - public static let volumeDown = Image("Base/VolumeDown", bundle: .module) - public enum VolumeOff { - public static let fill = Image("Base/VolumeOff/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/VolumeOff/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/VolumeOff/TwoTone", bundle: .module) - } - - public static let volumeOff = Image("Base/VolumeOff", bundle: .module) - public enum VolumeUp { - public static let fill = Image("Base/VolumeUp/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/VolumeUp/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/VolumeUp/TwoTone", bundle: .module) - } - - public static let volumeUp = Image("Base/VolumeUp", bundle: .module) - public enum Wallet { - public static let fill = Image("Base/Wallet/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Wallet/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Wallet/TwoTone", bundle: .module) - } - - public static let wallet = Image("Base/Wallet", bundle: .module) - public enum Work { - public static let fill = Image("Base/Work/Fill", bundle: .module) - public enum TwoTone { - public static let fill = Image("Base/Work/TwoTone/Fill", bundle: .module) - } - - public static let twoTone = Image("Base/Work/TwoTone", bundle: .module) - } - - public static let work = Image("Base/Work", bundle: .module) - public static let check = Image("Base/check", bundle: .module) - } -} diff --git a/Sources/OversizeUI/Generated/GeneratedImages.swift b/Sources/OversizeUI/Generated/GeneratedImages.swift deleted file mode 100644 index 568a4ec..0000000 --- a/Sources/OversizeUI/Generated/GeneratedImages.swift +++ /dev/null @@ -1,82 +0,0 @@ -// swiftlint:disable all -// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen - -import SwiftUI - -// swiftlint:disable superfluous_disable_command file_length implicit_return - -// MARK: - Asset Catalogs - -// swiftlint:disable identifier_name line_length nesting type_body_length type_name -public enum Images { - public static let allImages: [Image] = [ - Appearance.dark, - Appearance.light, - Appearance.system, - avatar, - Status.error, - Status.success, - Status.warning, - ] - public static let allNames: [String] = [ - "", - "Avatar", - "", - ] - public enum Appearance { - public static let allImages: [Image] = [ - dark, - light, - system, - ] - public static let allNames: [String] = [ - "Dark", - "Light", - "System", - ] - public static let dark: Image = .init("Dark", bundle: .module) - public static let darkName: String = "Dark" - public static let light: Image = .init("Light", bundle: .module) - public static let lightName: String = "Light" - public static let system: Image = .init("System", bundle: .module) - public static let systemName: String = "System" - } - - public static let avatar: Image = .init("Avatar", bundle: .module) - public static let avatarName: String = "Avatar" - public enum Status { - public static let allImages: [Image] = [ - error, - success, - warning, - ] - public static let allNames: [String] = [ - "Error", - "Success", - "Warning", - ] - public static let error: Image = .init("Error", bundle: .module) - public static let errorName: String = "Error" - public static let success: Image = .init("Success", bundle: .module) - public static let successName: String = "Success" - public static let warning: Image = .init("Warning", bundle: .module) - public static let warningName: String = "Warning" - } -} - -// swiftlint:enable identifier_name line_length nesting type_body_length type_name - -// MARK: - Implementation Details - -// swiftlint:disable convenience_type -private final class BundleToken { - static let bundle: Bundle = { - #if SWIFT_PACKAGE - return Bundle.module - #else - return Bundle(for: BundleToken.self) - #endif - }() -} - -// swiftlint:enable convenience_type diff --git a/Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/Contents.json b/Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/Contents.json new file mode 100644 index 0000000..3080abc --- /dev/null +++ b/Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "tabler-icon-paperclip.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/tabler-icon-paperclip.svg b/Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/tabler-icon-paperclip.svg new file mode 100644 index 0000000..b41e359 --- /dev/null +++ b/Sources/OversizeUI/Resources/Icons.xcassets/Base/Attach.imageset/tabler-icon-paperclip.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Sources/OversizeUI/Resources/Icons.xcassets/Base/Clear.imageset/Contents.json b/Sources/OversizeUI/Resources/Icons.xcassets/Base/Clear.imageset/Contents.json new file mode 100644 index 0000000..fef388d --- /dev/null +++ b/Sources/OversizeUI/Resources/Icons.xcassets/Base/Clear.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "delete.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" + } +} diff --git a/Sources/OversizeUI/Resources/Icons.xcassets/Base/Clear.imageset/delete.pdf b/Sources/OversizeUI/Resources/Icons.xcassets/Base/Clear.imageset/delete.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c5329c6bbdd5910124a24be8142f92c45df380c9 GIT binary patch literal 4620 zcmdT{O>f*b5WVYH@M0i2L=q`dq=3Lc{E4Cs;(Buk5cD9+ioNNsHBeR;x8SMgIb zB!4B`helz)p%J~Kf$+1NZ9>!b2Sd{(+E3-ikG2t5d2o}Isph;aG~)!8sVsECIfKPU zE5$2Trb22d3WQ2!R4!Q)*&`>L~4RX}*GA~(?ib|NOV3s578dX*R@>~^4GngkzC}staJK{po5M=GS*F?qA-uDf( zL2FY~qGBSIl7n+5$Q01YWdR`th)z;)L)Hld+5{GWWfHwHF~v+3i(hsvas8s%)w!s%$E|Cghqp%qx_FKx(eQqpABQqpBe7 z;POTakik#_N!#7JD=>`knxEj^d%EunlN+31;ez0w*9OS{VH-d85p zKAK?!p9Df_5vJXJ9B2?>Va30u9kq68F9c;>5sF!Nos(_GKEd@0(-Zo+^QZB0HP&Nm z-=A~)Z}q+&{*1aee4I6Bp@*A~vP*^~=eof8yS=9j+P`<3hx__v)4mzpvw=W1b%+$n zbLNhZr?A18-yh{nDc8qpuh0**nHgwyHzXNId)C7z`oQKygHx7dNv;inn51`I*N+4H z?3?c?q^tU_oubL!x3}y1zqRpL7QR0}?YptpN3)HLt39_vki=hkA>!yy(=yY@>0S2dnYI|u)=Qb7yA z0CzuhfIrqbsK`qQask0@egR=av4kqvEc1nCe_^#ZOXkqo%oj>%wwI7l!Q;5A*PC{i zpuE4Ffw-@Re%roguhzG(CyBG`z6X6#KAW#>wf^3s79j30*1OTF13g5Q937p1xcCP@ C|F