SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift😎…
In Swift, with help of ~= operator we can check a range in a single condition:
~=