Skip to content

Commit

Permalink
refactor: #647 - replace deprecated API for colors computation
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
  • Loading branch information
pylapp committed Jan 26, 2024
1 parent 13d2011 commit 132739e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased](https://github.com/Orange-OpenSource/ods-ios/compare/0.16.0...qualif)

- [DemoApp/SDK] Code cleanup ([#647](https://github.com/Orange-OpenSource/ods-ios/issues/647)])
- [SDK] Update Banners to align buttons when text is too long ([#642](https://github.com/Orange-OpenSource/ods-ios/issues/642))
- [SDK] Update Cards to align buttons when text is too long ([#630](https://github.com/Orange-OpenSource/ods-ios/issues/630))
- [Tooling] Upgrate to xcode 15 ([#638](https://github.com/Orange-OpenSource/ods-ios/issues/638))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ extension UIColor {
return nil
}

var rgbValue: UInt32 = 0
Scanner(string: cString).scanHexInt32(&rgbValue)
var rgbValue: UInt64 = 0
Scanner(string: cString).scanHexInt64(&rgbValue)

let a = CGFloat((rgbValue & 0xFF00_0000) >> 24) / 255.0
let r = CGFloat((rgbValue & 0x00FF_0000) >> 16) / 255.0
Expand Down

0 comments on commit 132739e

Please sign in to comment.