Skip to content

Commit

Permalink
Merge pull request #24 from oversizedev/develop
Browse files Browse the repository at this point in the history
Add status images
  • Loading branch information
aromanov91 committed Apr 13, 2023
2 parents a18b679 + 2b09df8 commit 40d894d
Show file tree
Hide file tree
Showing 10 changed files with 2,678 additions and 2,455 deletions.
4,909 changes: 2,454 additions & 2,455 deletions Sources/OversizeUI/Generated/GeneratedIcons.swift

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions Sources/OversizeUI/Generated/GeneratedImages.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Error.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Success.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Warning.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions swiftgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ xcassets:
enumName: Icons
publicAccess: 1
forceProvidesNamespaces: true
- inputs:
- Sources/OversizeUI/Resources/Images.xcassets
outputs:
- templatePath: Templates/AssetsSwiftUI.stencil
output: Sources/OversizeUI/Generated/GeneratedImages.swift
params:
enumName: Images
publicAccess: 1
forceProvidesNamespaces: true

0 comments on commit 40d894d

Please sign in to comment.