3 ms·iirc it works like that in swift: if let file = os.Open(file) { do sth } else { handle error }by scns 8y agoiirc it works like that in swift: if let file = os.Open(file) { do sth } else { handle error }