From 29a424d195b3f6ccdc46066d029646a71f94268c Mon Sep 17 00:00:00 2001 From: Marin Todorov Date: Tue, 11 Jul 2017 13:42:02 +0200 Subject: [PATCH] adds store demo --- Example/RealmContent/StoreViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Example/RealmContent/StoreViewController.swift b/Example/RealmContent/StoreViewController.swift index f9cd421..47fa4af 100644 --- a/Example/RealmContent/StoreViewController.swift +++ b/Example/RealmContent/StoreViewController.swift @@ -91,6 +91,7 @@ extension StoreViewController: UICollectionViewDataSource, UICollectionViewDeleg let alert = UIAlertController(title: "Added to cart", message: "\(url.lastPathComponent) add to your cart", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { [weak self] _ in self?.dismiss(animated: true, completion: nil) + self?.navigationController!.popViewController(animated: true) })) present(alert, animated: true, completion: nil) }