Created
January 9, 2015 13:37
-
-
Save cemolcay/ffd1ad513ed01eeef8c5 to your computer and use it in GitHub Desktop.
filters the dataSource with searchText
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let filtered = filter (dataSource) { $0.rangeOfString(searchText) != nil } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment