[[[UIApplication sharedApplication] delegate] performSelector:@selector(showMainView)];
I am using an API having the code above in a iOS swift project, and couldn't find how to write it into a proper swift code. It seems swift doesn't have function named performSelector, so what can I do to make it work in swift?