I have tried to use such check to apply some code that should works only on previous versions of iOS before iOS 13 and it doesn't work correctly i.e. it is executed on iOS 13
if #available(*, iOS 12) { } I make a workaround like this
if #available(iOS 13, *) { /// Do nothing here } else { } But i have additional curly braces block