From c48b1c75c391f03c8526c0b3d284225445429516 Mon Sep 17 00:00:00 2001 From: Ahmet Gunay Date: Mon, 23 Sep 2024 12:14:33 +0400 Subject: [PATCH] Uses Bundle utility --- Sources/UberCore/Colors.swift | 4 ++-- Sources/UberRides/RideRequestButton.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/UberCore/Colors.swift b/Sources/UberCore/Colors.swift index d07882b..2b1c526 100644 --- a/Sources/UberCore/Colors.swift +++ b/Sources/UberCore/Colors.swift @@ -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 diff --git a/Sources/UberRides/RideRequestButton.swift b/Sources/UberRides/RideRequestButton.swift index 97728b2..cc6c945 100644 --- a/Sources/UberRides/RideRequestButton.swift +++ b/Sources/UberRides/RideRequestButton.swift @@ -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) } }