Skip to content

Instantly share code, notes, and snippets.

View sabisin's full-sized avatar
🙃

SAbi Sin sabisin

🙃
View GitHub Profile
@sabisin
sabisin / README.md
Created October 13, 2023 09:29 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

import SwiftUI
final class ViewControllerResolver: UIViewControllerRepresentable {
let onResolve: (UIViewController) -> Void
init(onResolve: @escaping (UIViewController) -> Void) {
self.onResolve = onResolve
}