try()
Attempts to acquire the receiver and immediately returns a Boolean value that indicates whether the attempt was successful.
Declaration
func `try`() -> BoolReturn Value
true if the attempt to acquire the receiver was successful, otherwise false.
Discussion
Raises NSGenericException if a file-system error occurs.