Category: Swift

Swift CAReplicatorLayer Sample Code

Created By: Debasis Das (29-May-2017) In this post we will see how CAReplicatorLayer works and create a couple of sample code to play around with CAReplicatorLayer CAReplicatorLayer is essentially a layer that creates a specified number of copies of its

Posted in Swift, Swift 3.1 Tagged with: , ,

Swift Mac OS Animation using Animator Proxy – Part 2

In continuation to the Swift Mac OS Animation Part 1 we will work with Animator Proxy to achieve animation in Mac OS Applications. Animator Proxy Some simple Mac OSX Animation can be achieved through the usage of Animator Proxy. Animator

Posted in Swift, Swift 3.1 Tagged with: , ,

Swift Mac OS Animation using Core Animation- Part 1

Created By: Debasis Das (27-May-2017) Swift Mac OS Animation Animation in Mac OSX has a long history and there are more than one option for achieving an animated behavior in a Mac Application. We can achieve animation in a Mac

Posted in Swift, Swift 3.1 Tagged with: , , , , ,

Swift 3.1 URLSession, URLSessionDataTask Sample Code

In this tutorial we will create a simple application that demonstrates the use of URLSession and URLSessionDataTask in Swift 3.1 Note: As this article focusses primarily on the above stated aspects we will leave some UI functionality like showing a

Posted in Swift, Swift 3.1 Tagged with: , ,

Swift 3.1 CAShapeLayer

Created By: Debasis Das (23-May-2017) In this post we will explore the CAShapeLayer and create different sample CAShapeLayer and in some case animate a few of the properties In our ViewController class we will add a rootLayer which is a

Posted in Swift, Swift 3.1 Tagged with: , , , , , ,

Swift 3.1 Concurrency, Operation Queue, Grand Central Dispatch

Created By: Debasis Das (23-May-2017) In this article we will cover the following topics in Cocoa with examples and sample code in Swift depicting the usage of each. What is Concurrency? Grand Central Dispatch What is NSOperationQueue? Introduction to Operation

Posted in Swift, Swift 3.1 Tagged with: , , , ,

Swift 3.1 Arrays

Created By: Debasis Das (15-May-2017) In this post we will dive into Swift collection type array and see how it works and then we will apply map, reduce and filter on different arrays and check the corresponding output and behavior

Posted in Swift, Swift 3.1 Tagged with: , , , , ,

Swift 3.1 Closures

Created By: Debasis Das (14-May-2017) Closures are self contained blocks of functionality that can be used in our code and pass around as function parameters Closures in Swift are similar to blocks in Objective C In the below sample we

Posted in Swift, Swift 3.1 Tagged with: , ,

Swift 3.1 Algorithms – Part 1

Created by: Debasis Das (13-May-2017) In this post we will implement the following algorithms in Swift Implementing a stack in Swift Implementing a queue in Swift Prime Numbers – Check if a number is prime List of Prime numbers less

Posted in algorithms, Swift, Swift 3.1 Tagged with: , , ,

Swift MapKit Annotation

Swift MapKit Annotation Created By : Debasis Das (31-July-2016) We will be working in a series of Sample Code and Proof of concepts to play around MapKit.framework. This article is the first in the series to demonstrate swift mapkit annotation

Posted in MapKit, Swift Tagged with: , , , ,

Hit Counter provided by technology news