Skip to content

Commit

Permalink
Uses Bundle utility
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetkgunay committed Sep 23, 2024
1 parent 82762ce commit c48b1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/UberCore/Colors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public extension UIColor {

static let uberButtonHighlightedDarkBackground: UIColor = UIColor(
named: "UberButtonHighlightedDarkBackground",
in: .module,
in: .resource(for: UberButton.self),
compatibleWith: nil
) ?? UIColor.darkText

static let uberButtonHighlightedLightBackground: UIColor = UIColor(
named: "UberButtonHighlightedLightBackground",
in: .module,
in: .resource(for: UberButton.self),
compatibleWith: nil
) ?? UIColor.darkText

Expand Down
2 changes: 1 addition & 1 deletion Sources/UberRides/RideRequestButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public class RideRequestButton: UberButton {
}

private func image(name: String) -> UIImage? {
UIImage(named: name, in: Bundle.module, compatibleWith: nil)
UIImage(named: name, in: .resource(for: RideRequestButton.self), compatibleWith: nil)
}
}

Expand Down

0 comments on commit c48b1c7

Please sign in to comment.