foundrysraka.blogg.se

Iswift peek
Iswift peek








iswift peek

Because the component itself is modally presented, its traitCollection claims not to be force touch enabled, so I look at the raitCollection of the application's key window: if UIApplication.sharedApplication().keyWindow?.traitCollection.forceTouchCapability = UIForceTouchCapability.Available I don't want to lose the long press functionality for non 3D Touch devices, so during initialisation, I look at the traitCollection o either register the photo browser for peek previewing or implement a long press gesture recogniser. A deeper pop selects an image and returns control to the host application. With a long press, the user can toggle the favourite status of an item via a UIAlertController.įor 3D Touch devices, the user can click on an image to pop up a peek preview and then toggle the favourite status via a UIPreviewAction. Interaction Designįor non 3D Touch devices, my photo browser's interaction design is pretty simple, the top segmented control allows the user to navigate between their collections and touching an image selects it and returns control back the the host application. Although Nodality is an iPad application, the component is universal and is the perfect candidate for my first foray into Peek and Pop.

#Iswift peek update

This is a project I started back in January and I wanted to update to Swift 2 to include in the next version of Nodality. It so happens that over the last week or so, I've been updating my PHImageManager based photo browser.

iswift peek

Both give a atisfying haptic click and peeking can also display a set of context sensitive preview actions. Peek and Pop relies on pressure sensitivity to offer the user a transient preview pop up with a press (peek) or allows them to navigate that item with a deeper press (pop).

iswift peek

One of my favorite features on the iPhone 6s is the new 3D Touch Peek and Pop.










Iswift peek