Why I am getting build error from Xcode 12.4 (simulator ios 14.x) for the following code?
if #available(iOS 15.0, *) {
myTableView.sectionHeaderTopPadding = 0.0 // error here
}
The error was,
Value of type 'UITableView' has no member 'sectionHeaderTopPadding'
If ios 15 is not available Xcode is supposed to skip compiling this code. Isnt it?
You can make a condition for compilation