Technology

What does iOS 10 bring to application developers?

Announced at WWDC 2016, iOS 10 introduced a host of changes for developers, the most significant revamp since 2013. The SDK for iOS 10 brings new APIs and services that lead to new types of applications and features. To work on iOS 10, one would need to do the programming using Swift 3 and also download Xcode 8 to build the iOS apps. Let’s focus on the key related features developed that have been introduced in iOS 10.

Improved user notifications

iOS 10 marks the advent of the User Notification Framework (UserNotifications.framework) and the User Notification UI Framework and the end of UILocalNotification. The user notification framework helps to support and manage remote and local notifications. Developers can use the framework classes to modify local and remote notifications as they are sent to the device. The appearance of local and remote notifications can be customized with the help of the User Notification UI framework. With the help of these two frameworks, Apple has not changed the general local notifications, but has significantly improvised the functionalities.

The biggest change of the new notification system is that it incorporates an intermediary between the arrival of the message and the display of the device: a notification service provider capable of end-to-end encryption with the application that receives the encrypted message from Apple, decryption It is done on the user’s device and showing the notification in the notification center.

Improved IMessage

A large number of APIs have been introduced in iOS 10, especially improvements to the Messages app. The application extensions can interact with the Message application, and users can send multimedia files, interactive messages, and stickers. The sticker pack includes a set of stickers for the message content. The iMessage application not only helps users to search for images, but also provides a user interface within the application.

From a development perspective, custom interface for messages can be created with the help of MSMessagesAppViewController. MSSession and MSMessage could help in modifying the message, as the former has built-in support for expiring messages. To provide a custom sticker browser for the message application, the MSStickerBrowserViewController can be used.

As seen, the new and improved Messages extensions are better and more powerful.

Changes in animations

In iOS 10, better control over animations is established. The ability to control animated properties like resume, stop, or positions is detailed in iOS 10. UIViewPropertyAnimator is the important class that helps create and activate animations.

Speech recognition

A new API is added that supports continuous speed recognition. This helps developers create new applications to recognize speech and transcribe it into text. Most of the magic is done with the help of APIs in the Speech framework, especially with classes like SFSpeechRecognizer, SFSpeechURLRecognitionREquest, SFTranscription, etc.

Siri integration

Integrate Siri for most applications like messages, calls, payments, photos, etc. iOS 10 now allows users to use their voice to perform actions and this is all accomplished with the help of Sirikit. The domains in question must be registered with the answer made.

For non-graphical intentions, developers must make use of Apple Maps, while for graphical intentions also known as Intents UI extensions, developers can extend the user interface for interface design.

ReplayKit improves

iOS 10 has bought new enhancements to the ReplayKit introduced in iOS 9 That is, the introduction of live streaming of Replaykit streams, which means that a user can stream media through other sites or apps and stream the US extension. It helps the user to log into a service and set up a broadcast. . Developers should create RPBroadcastActivityViewController to allow users to select the streaming service they would love to use. The action would return RPBroadcastController which helps to start and pause live broadcasts.

There are other minor improvements and some of them are

  1. Enable the property for Safari content blockers to verify that the user has activated the content blocker.

  2. UIApplication’s openURL () method is now deprecated. The application (_: open: options 🙂 should be used instead.

  3. New set of properties enabled for UIPasterboard to handle cross-platform clipboard between iOS and macOS.

  4. The SKTileGroup class has been provided to SpriteKit for creating square, hexagonal, or isometric tile maps.

  5. For smoother scrolling, prefetchDataSource can help preload content.