// // NSString+Validation.m // libindy-demo // // Created by Anastasia Tarasova on 19.06.17. // Copyright © 2017 Kirill Neznamov. All rights reserved. // #import "NSString+Validation.h" #import @implementation NSString (Validation) - (BOOL)isValid { if (self == nil || [self isEqualToString:@""]) { return false; } return true; } @end