Did you know you can use one method or another depending on the OS? 😲

#if and #else are compiler directives. In this example, filter() will be compiled only if the OS is iOS 📲

Otherwise, it will be ignored and the else case will compile removeAll() only!💡

@swiftandtips this is cool! i didn't know about this