fix(android): resolve color parser and resource bundle resolution issues

This commit is contained in:
Daniel Arantes Loverde
2026-05-27 09:55:00 -03:00
parent 0e6206f899
commit 68864ee21a
9 changed files with 40 additions and 7 deletions

View File

@@ -103,7 +103,9 @@ extension Color {
init(hex: String, alpha: Double = 1.0) {
let cleaned = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
var int: UInt64 = 0
Scanner(string: cleaned).scanHexInt64(&int)
if let val = UInt64(cleaned, radix: 16) {
int = val
}
let r, g, b: UInt64
switch cleaned.count {