Skip to content

Commit

Permalink
Update icons
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed May 30, 2023
1 parent ee2ea15 commit 873a1d9
Show file tree
Hide file tree
Showing 105 changed files with 304 additions and 298 deletions.
File renamed without changes.
27 changes: 10 additions & 17 deletions Sources/OversizeUI/Generated/GeneratedIcons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import SwiftUI
// MARK: - Asset Catalogs

// swiftlint:disable identifier_name line_length nesting type_body_length type_name
public enum Icon {
public enum Icons {
public enum Base {
public static let activity = IconSymbol(path: "Base/Activity")
public static let addUser = IconSymbol(path: "Base/Add User")
Expand Down Expand Up @@ -113,48 +113,41 @@ public enum Icon {
}
}


public struct IconSymbol {

public let path: String

public init(path: String) {
self.path = path
}

public var outline: SwiftUI.Image {
SwiftUI.Image(path, bundle: Bundle.module)
return SwiftUI.Image(path, bundle: Bundle.module)
}

public var solid: SwiftUI.Image {
SwiftUI.Image("Solid/" + path, bundle: Bundle.module)
return SwiftUI.Image("Solid/" + path, bundle: Bundle.module)
}

public var bulk: SwiftUI.Image {
SwiftUI.Image("Bulk/" + path, bundle: Bundle.module)
return SwiftUI.Image("Bulk/" + path, bundle: Bundle.module)
}

public var twoTone: SwiftUI.Image {
SwiftUI.Image("TwoTone/" + path, bundle: Bundle.module)
return SwiftUI.Image("TwoTone/" + path, bundle: Bundle.module)
}

public var categoryName: String? {
path.components(separatedBy: "/").first
return path.components(separatedBy: "/").first
}

public var name: String {
path.components(separatedBy: "/").last ?? ""
return path.components(separatedBy: "/").last ?? ""
}
}

public struct IconView: View {

public struct Icon: View {
@Environment(\.iconStyle) var iconStyle
private let icon: IconSymbol

public init(_ icon: IconSymbol) {
self.icon = icon
}

public var body: some View {
switch iconStyle {
case .line: icon.outline
Expand Down
116 changes: 58 additions & 58 deletions Sources/OversizeUI/Generated/GeneratedImages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,80 +3,80 @@

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,
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] = [
"",
"Avatar",
"",
"Dark",
"Light",
"System",
]
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"
}
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
}()
static let bundle: Bundle = {
#if SWIFT_PACKAGE
return Bundle.module
#else
return Bundle(for: BundleToken.self)
#endif
}()
}

// swiftlint:enable convenience_type
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 873a1d9

Please sign in to comment.