Appearance Support Without Asset Catalog in Swift

I have created enum and UI Color Extension which returns Semantic UIColors created in Assets Catalog in iOS app.

But is there any way that I can create UIColor Programatically that supports Dark and Light Mode using RGBA etc? Ans avoid using Asset Catalog.

Appearance Support Without Asset Catalog in Swift
 
 
Q