Skip to content

Commit

Permalink
Merge pull request #322 from ahmetkgunay/use-bundle-utility
Browse files Browse the repository at this point in the history
Uses Bundle utility
  • Loading branch information
mohssenfathi authored Sep 23, 2024
2 parents 82762ce + c48b1c7 commit 577b706
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 577b706

Please sign in to comment.