Home

Awesome

iOS-9-Sampler

Platform Language License Twitter

Code examples for the new features of iOS 9.

How to build

JUST BUILD with Xcode 7.

Contents

Map Customizations

Flyover can be selected with new map types, and Traffic, Scale and Compass can be shown.

<!--<img src="ResourcesForREADME/map2.jpg" width="405">-->

Text Detector

Text detection using new detector type "CIDetectorTypeText".

<img src="ResourcesForREADME/textdetector.jpg" width="200">

New Image Filters

New filters of CIFilter which can be used for Still Images.

<img src="ResourcesForREADME/imagefilters.gif">

NOTE: 29 filters are supported in this example, however "CISpotLight" don't work correctly with current code. I would much appreciated your pull request!

Audio Unit Component Manager

Retrieve audio unit components using AudioUnitComponentManager and apply them to a sound using some new methods. If there are some Audio Unit Extensions, they will be also shown in the components list.

<img src="ResourcesForREADME/aucomponents.jpg" width="200">

Speech Voices

Example for new properties which are added to AVSpeechSynthesisVoice such as language, name, quality...

<img src="ResourcesForREADME/speech.jpg" width="200">

CASpringAnimation

Animation example using CASpringAnimation.

UIStackView

Auto Layout example using UIStackView.

Selfies & Screenshots

Fetch photos filtered with new subtypes PHAssetCollectionSubtype.SmartAlbumSelfPortraits and PHAssetMediaSubtype.PhotoScreenshot which are added to Photos framework.

<img src="ResourcesForREADME/screenshots.jpg" width="200">

String Transform

String transliteration examples using new APIs of Foundation framework.

<img src="ResourcesForREADME/stringtransform.jpg" width="200">

Core Image Transitions

New transition effects which are added to CITransitionCategory.

Search APIs

Example for Search APIs using NSUserActivity and Core Spotlight.

<img src="ResourcesForREADME/searchapis.jpg" width="200">

Content Blockers

Example for Content Blocker Extensions.

<img src="ResourcesForREADME/blocker.jpg" width="200">

SFSafariViewController

Open web pages with SFSafariViewController.

<img src="ResourcesForREADME/safari.jpg" width="200">

Attributes of New Filters

Extract new filters of CIFilter using kCIAttributeFilterAvailable_iOS. There are 41 new filters.

<img src="ResourcesForREADME/filterattributes.jpg" width="405">

Low Power Mode

Detect changes of "Low Power Mode" setting.

New Fonts

Gallery of 31 new fonts.

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

Contacts (Created by manhattan918)

Contacts framework sample.

<img src="ResourcesForREADME/contacts.jpg" width="200">

ReplayKit (Created by manhattan918)

ReplayKit framework sample.

<img src="ResourcesForREADME/replaykit.jpg" width="200">

Quick Actions (3D Touch)

Press the Icon on Home screen deeply, so you can access to the shortcut menu.

<img src="ResourcesForREADME/shortcut.jpg" width="200">

Please see UIApplicationShortcutItems key in Info.plist and application:performActionForShortcutItem:completionHandler: method in AppDelegate to know how it's implemented.

NOTE: Your device have to support 3D Touch.

Force Touch (3D Touch)

Visualize the forces of touches using new properties of UITouch force and maximumPossibleForce.

NOTE: Your device have to support 3D Touch.

Live Photos

Show a Live Photo using PHLivePhoto and PHLivePhotoView which are added in iOS 9.1.

watchOS-2-Sampler

You can check the examples for watchOS 2 features on watchOS-2-Sampler!!

<a href="https://github.com/shu223/watchOS-2-Sampler"><img src="ResourcesForREADME/watchos2sampler.jpg" width="200"></a>

<img src="https://raw.githubusercontent.com/shu223/watchOS-2-Sampler/master/ResourcesForREADME/animation.gif" align="left" hspace="1"> <img src="https://raw.githubusercontent.com/shu223/watchOS-2-Sampler/master/ResourcesForREADME/tableanim.gif" align="left" hspace="1"> <img src="https://raw.githubusercontent.com/shu223/watchOS-2-Sampler/master/ResourcesForREADME/crownanim.gif" align="left" hspace="1"> <br clear="both">

Author

Shuichi Tsutsumi

iOS freelancer in Japan. Welcome works from abroad!

<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