Home

Awesome

iOS-10-Sampler

Platform Language License Twitter

Code examples for new APIs of iOS 10.

How to build

Just build with Xcode 8.

It can NOT run on Simulator. (Because it uses Metal.)

Contents

Speech Recognition

Speech Recognition demo using Speech Framework. All available languages can be selected.

<img src="README_resources/speechrecognition.jpg" width="405">

Looper

Loop playback demo using AVPlayerLooper.

<img src="README_resources/loop_normal.gif" align="left"> <img src="README_resources/loop_short.gif"> <br clear="all">

Live Photo Capturing

Live Photo Capturing example using AVCapturePhotoOutput.

<img src="README_resources/livephoto.jpg" width="200">

Audio Fade-in/out

Audio fade-in/out demo using setVolume:fadeDuration method which is added to AVAudioPlayer.

Metal CNN Basic: Digit Detection

Hand-writing digit detection using CNN (Convolutional Neural Network) by Metal Performance Shaders.

<img src="README_resources/digit.gif">

Metal CNN Advanced: Image Recognition

Real-time image recognition using CNN (Convolutional Neural Network) by Metal Performance Shaders.

<img src="README_resources/imagerecog.gif">

PropertyAnimator: Position

Animating UIView's center & backgroundColor using UIViewPropertyAnimator.

<img src="README_resources/animator1.gif">

PropertyAnimator: Blur

Animating blur effect using fractionComplete property of UIViewPropertyAnimator.

<img src="README_resources/animator2.gif">

Preview Interaction

Peek & Pop interactions with 3D touch using UIPreviewInteraction.

<img src="README_resources/peekpop.gif">

Notification with Image

Local notification with an image using UserNotifications framework.

<img src="README_resources/notif1.jpg" width="200" alighn="left"> <img src="README_resources/notif2.jpg" width="200"> <br clear="all">

Sticker Pack

Example of Sticker Pack for iMessage.

<img src="README_resources/stickers.jpg" width="200">

Core Data Stack (Created by nolili)

Simple Core Data stack using NSPersistentContainer.

<img src="README_resources/coredata.jpg" width="200">

TabBar Customization

Customization sample for UITabBar's badge using text attributes.

<img src="README_resources/tab.jpg" width="200">

New filters

New filters of CIFilter in Core Image.

<img src="README_resources/filter1.jpg" width="200" alighn="left"> <img src="README_resources/filter2.jpg" width="200"> <br clear="all">

New Fonts

New Fonts gallery

<img src="README_resources/fonts.jpg" width="200">

Proactive: Location Suggestions

This sample demonstrates how to use new mapItem property of NSUserActivity to integrate with location suggestions.

<img src="README_resources/proactive1.jpg" width="200" alighn="left"> <img src="README_resources/proactive2.jpg" width="200"> <br clear="all">

Attributed Speech

Attributed Speech demo with AVSpeechSynthesisIPANotationAttribute for AVSpeechUtterance.

Haptic Feedback

Haptic Feedbacks using UIFeedbackGenerator.

<img src="README_resources/haptic.jpg" width="200">

Author

Shuichi Tsutsumi

Freelance iOS programmer in Japan.

<a href="https://paypal.me/shu223"> <img alt="Support via PayPal" src="https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg"/> </a>

Special Thanks

The icon is designed by Okazu