Swift 4 – A Step Ahead to The Most Advanced Programming Language – iOS Development

Hey, welcome back!!! Let’s move one step ahead with the open source development language from Swift 3 to Swift 4. We, at 9series, have filtered out points of our next strides in developing mobile apps using Swift 4.

Swift 4

Swift 4 is the latest major release for iOS App Developer that is intended to be completed in the fall of 2017. Its main focus is to provide source compatibility with Swift 3 code while implementing essential feature work that needs to achieve binary stability in the language. It will contain valuable enhancements to the core language and Standard Library, particularly in the generics system and an overhaul of the String type.

Source Compatibility Modes

The Swift 4 compiler will provide two language modes: Swift version 3 and Swift version 4. Swift 3 established the language for source-level stability and now Swift 4 releases source compatibility as a feature moving ahead.

    • Swift 3 mode is default for existing code and will build source code that works with the Swift 3 compiler
    • Swift 4 mode allows you to use new features and performance optimizations of Swift 4, some of which may require migration
    • Mixed mode allows you to take advantage of interoperability between binaries built with the same compiler. The proposed design is that a project containing various Swift modules, such as a Xcode project with multiple Swift targets, will be able to ratify into the specific Swift language mode on per module (target) level and that they can smoothly interact within the same compiled binary.

New Features in Swift 4

    • Swift 4 presents another codable protocol that gives a chance to serialize and deserialize custom data types without composing any special code – and without worrying about losing your value types
    • Quicker and simpler to use strings that retain Unicode correctness and add support for using, creating and managing substrings
    • Smart key paths for type-safe, effective and extensible key value coding for Swift types
    • Enhancements to create and manipulate Dictionary and Set types

Swift has many other features to make your code more expressive:

Multi-Line String Literals

To start a string literal, you need to write three double quotation marks: “”” then press return. After pressing return key, start writing strings with any variables, line breaks and double quotes. To end multi line string literal again write ””” in new line. Ex:-


Strings are Collections

Just like in earlier version of Swift, Strings can be handled as a collection. No need to writestring.characters.something to perform string manipulation.


Dictionary Functionality has Improved

Swift 4 combines some additional functionality to dictionaries to make them more strong, and also to make them work more like you would expect. Let’s start with a simple example: Modifying dictionaries in Swift 3 does not return a new dictionary. Instead, it returns an array of tuples with key/value labels.


After that code runs you can’t read distinction[“Maths”] because it is no longer a dictionary. Instead, you need to use distinction[0].value, which is not good for us because we apply filter on dictionary and we got an array.

As of Swift 4, this acts more like you would expect: you get back a latest dictionary. Obviously this will break any existing code that relies on the array return type.

Similarly, the map() method on dictionaries got a key-value tuple passed in, and could return a single value to be added to an array.


That has not changed in Swift 4, but there is a new method called mapValues(). It allows you to modify the values and place them back into a dictionary using the original keys.

Here we try to form different buckets where each bucket will contain values having same first character in their name. For Example:-.


It’s now likely to obtain a dictionary key and provide a default value to use if the key is missing. In following statement if there is no value for key “Bio” found then it will print default value.


Built in Encoding and Decoding

Swift 4 appears with built-in encoders and decoders for JSON. JSON to Model conversion comes in built in.


One Sided Range

Swift 4 introduces Python-like one-sided collection slicing, where the missing side is automatically assumed to be the start or end of the collection.



Like with other Swift releases, 4.0 was announced at WWDC ’17 and released in beta form for developers alongside Xcode 9. This release of Swift added quite a few refinements and features to the programming language. First release of Swift 4.0 will bring overall stability to the source and binary interface, or ABI.


Apple Pay vs Android Pay: Which is Better?

Apple Pay vs Android Pay

Google Wallet is an alternative of Apple Pay Let’s find out which is the better, Android Pay or Apple Pay?

Android Pay and Apple Pay are wireless payment systems for Android and iOS respectively. Apple Pay was one of the beginners of the card-free payment system. It was announced in September 2014 along with the iPhone 6 while the Google has just been discussed it at Google I/O 2015. This is after Google Wallet (originally) being mentioned back in March 2015.

Are Android Pay and Apple pay similar?

The technological answer is yes. Both use Near Field Communication (NFC) based technology in real-world scenarios and both offer one-touch online payments. Basically, the only real difference is a platform, it is running on – if the user has an iOS device, will use Apple Pay and if a user has an Android device will have to use Android Pay.

Apple Pay has the edge over Android is, it works on Apple Watch, whereas Android Pay so far only seems to work on Android device and not in Android Wear.

Android Pay vs Apple Pay: Which is more secure?

Both services seem secure as of: neither system transmits user’s actual card details to the retailer, but instead creates “virtual” card that is used purely for that transaction. In effect, it means two different transactions are taking place: one between Google/Apple and the retailer, where the retailer receives payment for the sale, and one between Google/Apple and user, where Google/Apple gets reimbursed by users.

In a way, It’s a better approach, because if recall any of the major retail card breaches of the last few years – Target, TJ Maxx and so on – it was the retailer systems which got hacked, not the banks. If user use Android Pay or Apple Pay and the retailer that user used gets hacked, any details they get about the user will be completely unusable.

Over 700,000 retailers in U.S. who accepts contactless payments, will also accept Android Pay too. The services will be accessible for in-app purchases from Uber, Lyft, Hotel Tonight and many more. Android phone owners with their fingerprint readers will be able to authorize purchases, similar to Apple Pay.

As both systems use similar security, the same basic technology and also have the similar aims. They are simply the wireless payment systems for their respective OSs. Justifying this, old phones will be able to use Android Pay but in Apple, only the latest iPhones can make use of Apple Pay. There many iPhone application development company india who can help in developing such a facility for your business.

At the end it’s a user who is going to get maximum benefits out of it. Intense competition between Apple Pay and Android Pay will encourage both to create the best product experience. There is many mobile app solutions and services provider company in India. At 9series we create a state of art experience to integrate both of them; if you have requirement then let’s talk.

iWatch Application Development: A New opportunity for Developers


Apple jumps into wearable tech by announcing iWatch recently in 2015. Apple’s new Smartwatch was launched along with the iPhone 6 and iPhone 6 Plus. The Apple Watch is actually an innovation and is not an ordinary smart watch enabling you to keep a track on the activities on your smartphone. It acts as your fitness guide and allows you to flaunt a new watch face every day. iWatch is available in three unique collections such as the Apple Watch Edition, Apple Watch Sports collection and Steel Apple Watch. Recently in development, the features seek to intensify Apple Watch security, connectivity with other Apple devices, fitness features and health, Wi-Fi capabilities, and unification with third-party apps. Apple is also preparing for updates for the Apple TV in hardware as well as software departments, also includes Apple Watch integration. Know more about what the watch will be able to provide- give you directions, monitor your heartbeat, send emoji’s to friends, can use Apple Pay and many more.

In Apple Watch, instead of the traditional home screen filled with super-ellipse icons which are found on iPhone or iPad, the iWatch runs a carousel of round icons that change in scale and position. It uses a digital crown to handle scrolling and zooming, rather than gestures for navigation and a force press to bring up secondary actions. There is a button beneath the crown which start a friend interface or can be double-clicked for Apple Pay. iWatch app Developers can create apps for the Apple Watch by using WatchKit. Currently, WatchKit supports looks (notifications), WatchKit apps (remote views), and glances (widgets), with native apps coming later this year. One of the major highlights of this watch is that you can change the watch face every day, can choose from different faces like Mickey Mouse, Solar, Modular, Motion, Utility, Astronomy, TimeLapse and others. Thus, give a new watch daily. iWatch delivers seamless possibilities for developing interactive, creative and fascinating application for iWatch app developers. This is the best opportunity for iWatch apps Development.

Special Feature

You can also activate the SIRI program by pushing the Crown and interact with the watch to know the time, assemble information regarding the weather and find anything you are looking for. The Morse Code feature in the Maps app comes in handy helps to find any route. It doesn’t ask you to look at the screen or listen to commands; instead it guides you by giving appropriate sensations on your wrist.

Hence, The iWatch is Apple’s newest, most personal computer. It’s all you want. 9series is a software service provider company. Our expert developer team deliver Android/iPhone Application and also facilitates to Hire Dedicated Mobile Apps Developer. We develop and deliver complete IT solution.

Apple Pay – Promising Payment Technology

mobile app solutions and services provider company in india

Apple Pay is Apple’s new mobile payment service, through which user can make payment using iPhone or mobile phone. Apple Pay is hope for giving a best mobile wallet solution.  Apple Pay allow users to make one-tap purchases within apps that have integrated the Apple Pay API. To manage transactions security, Apple uses a method known as “tokenization,” limiting actual credit card numbers from being sent over the air. The aim is to replace the wallet with Apple Pay, and the one-step process prevents from carrying a purse or wallet having credit cards. As NFC technology is existing in it, Apple Pay will work anywhere NFC-based contactless payments are accepted. Here are few thing on how things go with Apple Pay.

How It Works?

Once a credit or debit card has been added to Passbook, Apple Pay is ready to use. In a store, when approaching a point-of-sale system compatible with Apple Pay, the screen of the iPhone 6 or 6 Plus will arrive and automatically opens Passbook, where a user can tap on a credit card to use or pay with the default card. While, in some stores, users will be asked for a PIN code or to sign for a purchase, but in other locations, Apple Pay check-out seems to be an easy one-step process. Apple Pay may not be as convenient as swiping a card, still it’s very important to recognize that Apple Pay is more secure than a traditional card transaction. Whereas in Apple Pay, a cashier is not able to see a name, credit card number, an address or any other personal information.

Here, stores also don’t receive a credit card number (as credit card numbers are replaced with unique Device Account Numbers) so that store security breaches that leak credit card numbers will not affect Apple Pay users.

Apple Pay Settings

After installing iOS 8.1, the Passbook app can be setup in Apple Pay. On tapping the “+” icon in Passbook will allow you to add a credit or debit card to Apple Pay, either selecting a card that is already on file with iTunes or scanning one within the camera. Passbook is a key component of Apple Pay.

In just a few seconds, the credit cards are verified but some cards require an app download, a phone call, or an email to verify a card before added to Apple Pay. Once the card is verified, it is instantly available for purchases both in stores and within apps. At a time, eight cards can be registered with Apple Pay. Apple Pay can be managed in the Settings menu, found in the new “Passbook and Apple Pay” category. Each and every credit card added to Passbook is listed here, along with information like email, billing address and phone number. Just tapping on a card, offers specific information like last digits of the card number, last digits of the Device Account Number which replaces the card number in transactions, and also gives contact information for the bank who has issued the card. Apple Pay is only available in apps which have adopted the Apple Pay API and to make a payment in a retail store, the shop will need to support Apple Pay directly or allow NFC payments.

Appropriate Device

Currently in stores Apple Pay is limited to the iPhone 6 and the iPhone 6 Plus, both of them contain near-field communication (NFC) chips which have not been incorporated into previous-generation iPhones. Apple Pay purchases app only with the iPhone 6, 6 Plus, the iPad Air 2, and the iPad mini 3, all of which have Touch ID.

Apple Pay will also work for Apple Watch, the company’s wrist-worn wearable device that is now available. The Apple Watch, which doesn’t function without an iPhone, will allow owners of older iPhones, including the iPhone 5, 5c, and 5s, to use Apple Pay.


Apple assured to their iPhone owners that their payment information is safe by putting heavy emphasis on security when advertising Apple Pay, in fact, it is much safer on an iPhone than inside a wallet.

The iPhone has a special dedicated chip called Secure Element which contains all of a user’s payment information, credit card numbers and data are never uploaded to iCloud or Apple’s servers. When a transaction is done, the Device Account Number is sent via NFC, with a one-time dynamic security code unique to each transaction, both are used to verify a successful payment. The dynamic code of security is a one-time use cryptogram which replaces the credit card’s CCV and is used to ensure that a transaction that is conducted from the device contains the Device Account Number.

Further, if your iPhone is lost, the owner can utilize “Find My iPhone” to suspend all payments from the device, without doing credit card cancelation process.

Let us know if you want to integrate Apple Pay in your application, we are happy to help you. For more info, visit – http://www.9spl.com/blog/

Source Link – http://www.9spl.com/blog/apple-pay-promising-payment-technology/