How to change UIColor according to UserInterfaceStyle(Dark Mode/Light Mode) in UIView extension in swift [5+]? – Ios swift
I was creating the method in UIView extension and I needed to change UIColor according to UIUserInterfaceStyle i.e. separate UIColor for both Dark & Light mode Interface. Usually, in UIViewController class traitCollectionDidChange method is triggered whenever UIUserInterfaceStyle is changed and…