I am creating a reference application. On the main screen are rows of icons, when you click on each, a card with information about the item should pop up. I could not figure out how to create a popup window in Xcode using Swift. A pop-up card should be blurring the background and closed with a down / up swipe. Ideally, it should look like an Instagram photo viewer. PS This is my first project and the knowledge of Swift leaves much to be desired, so please explain as much as possible. 
Closed due to the fact that the question is too common for the participants aleksandr barakin , Vartlok , D-side , VAndrJ , Pavel Mayorov 19 Apr '16 at 8:26 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
- what have you tried? to find a tutorial on the blue? see how to add one twist to another tried? here on the CO about the processing of svayp questions looking for? - Max Mikheyenko
2 answers
Decompose the task, first deal with the blur, then with transitions between the controllers.
Keywords for blur - UIBlurEffect, UIVisualEffect
- tutorial - raywanderlich.com
- example - blurApp
Jump keywords - UIViewControllerAnimatedTransitioning, UIViewControllerInteractiveTransitioning
Need something like that?
Create a view controller in a storyboard. Put the UIVisualEffectView on the main view, your card on it. Everything. Call as follows.
- (IBAction)pressMe:(id)sender { UIStoryboard* mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]]; rateDialogVC = [mainStoryboard instantiateViewControllerWithIdentifier:@"RateDialogVC"]; [ViewController setPresentationStyleForSelfController:self presentingController:rateDialogVC]; [self presentViewController:rateDialogVC animated:YES completion:nil]; } + (void)setPresentationStyleForSelfController:(UIViewController *)selfController presentingController:(UIViewController *)presentingController { presentingController.providesPresentationContextTransitionStyle = YES; presentingController.definesPresentationContext = YES; presentingController.modalPresentationStyle = UIModalPresentationOverCurrentContext; } This is Objective-C sorry!
