At the WWDC 2014 Apple presented greenhorn programming dialect called Quick,. It’s a dialect that has been made by Apple from the ground up to be both exceptionally proficient and exceptionally lovely.

Quick employments the same API’s as C but in my supposition is simpler to memorize and get a get a handle on on the off chance that you come from a web advancement foundation like me.

In the event that you’re fair as left approximately this dialect as I am, at that point usually the article for you.


Declaring factors in Quick, in case you come from a Javascript foundation, ought to be exceptionally recognizable; you pronounce a variable by utilizing the var keyword:

var myNumber = 40

You’ll be, able of course, moreover set constants; to characterize a steady you would like to utilize the let keyword:

let name = "Developer Drive"

In case you’ve got utilized Objective-C, or in this case indeed Javascript, one thing you’ll take note from the test code I just wrote is that I didn’t include any semi colons. That’s since Quick doesn’t require them (in spite of the fact that you’ll incorporate them in the event that you favor).


This is another portion of the dialect where you ought to feel at domestic in the event that you work with Javascript. Concatenating strings is done as you’d see in any of your Javascript records, you fair have to be utilize the “+” sign:

var firstName = "Developer"
var lastName = " Drive"
var name = firstName + lastName

By the way, in case you need to print this to the screen all you would like to do is call println:


Embeddings factors into a string is additionally really basic; you would like to utilize “” and after that put the variable interior a few enclosure:

var number = 20
var timeLeft = "You have \(number) minutes left."

As you’ll see, everything is composed in a basic and organized way.


One thing each dialect must handle is clusters. We continuously require them, and it’s a gigantic offer assistance in the event that they are basic to set up.

They are straightforward in Quick, and once more, will be commonplace to anybody who has used Javascript:

var names = ["Leslie","April","Tom","Andy","Ann","Ben"]

As you can see this is a really simple and clean method.If you want to count the elements use the count property:

var numberNames = names.count

Adding components to your cluster is additionally reasonably straight forward:

// Adding a single element
names += "Jerry"

// Adding several elements
names += ["Donna", "Chris"]


The other collection sort we have in Quick is word references. In this sort of collection each esteem we have within the cluster is related with a special key, like so:

var socialNetworks = ["FB" : "Facebook", "TW" : "Twitter", "G+" : "Google+"]

And as you’d anticipate, you’ll emphasize through them employing a for loop:

for (abbr, name) in socialNetworks {
    println("\(abbr) = \(name)")

You’ll be able too call out a esteem exceptionally effortlessly by indicating the key for it, and on the off chance that you need to alter that esteem fair relegate it with a “=” sign:

socialNetworks["FB"] = "Vine"


The following step is to see how we are able make basic work in quick and we do that by utilizing the func keyword:

func helloRuby() -> String {
    return "Hello Ruby"

As you’ll see, the language structure for characterizing a work is truly straightforward and awesome to see at, indeed when it comes to calling the work all you would like to do is type in the title of the work and on the off chance that you don’t have any parameters, fair open and near enclosure.

Of course, able to too have parameters on the off chance that we require them. We fair pronounce them interior the bracket, after the title of the work:

func hello(name: String) -> String {
    return "Hello \(name)."
hello("Ruby", "Tuesday")”


Classes, not at all like in Objective-C, are all made within the same .swift record, and there’s no have to be partitioned execution and outside interface.

A course is made by utilizing the watchword “class” taken after by the title of the course:

class Show {
    var numberOfEpisodes = 20
    func number() -> String {
        return "The Show has \(numberOfSides) episodes."

You’ll make a modern occasion of the course by basically including an opening and closing bracket after the name:

var show = Show()

You’ll be able moreover alter the properties truly effortlessly by utilizing speck notation:

show.numberOfEpisodes = 35


We’ve as of now taken a see at how to utilize the for circle with an cluster but there are more explanations and circles I need to appear you.

The primary explanation we more often than not learn in any dialect is the on the off chance that explanation, and making these in Quick is as straightforward as you’d trust:

var name1 = "Tom"
var name2 = "Tom"
if name1 == name2 {

As you’ll be able see bracket in Quick aren’t fundamental for the on the off chance that explanation to work.

Switch articulations are another thing we conclusion up using very a parcel when coding, and are composed like:

switch babyNames {
 case "Ben":
 case "Jerry":
 println("No Really")
 println("What about we go with Tom ?")