Category: Develop

  • Test Driven Development in Swift

    Here is a beginner tutorial on TDD in Swift by writing a program that checks for a prime number. Let us start by creating a new project, selecting template as Single View Application. Though we won’t be adding anything to the storyboard as we will focus only on the business logic. After creating the project,…

  • Enum in Swift

    Enum group of related values to a single data type. Swift enum has lot of new features compared to its predecessor Objective-C. Let us see this with an example enum type for all Months in a year. enum Months { case January, February, March, April, May, June, July, August, September, October, November, December }  …

  • Remove Apple Mach-O Linker directory not found

    Listed below are the steps to remove Apple Mach-O linker warning directory not found warning message. 1. Navigate to Project Navigator, select the Project then navigate to Build Settings. 2. Under Build Settings, scroll down to Search Paths and double click on Library Search Paths. 3. Select the missing folder paths and remove them using…

  • Integrating Stripe in Swift for iOS development

    Stripe is payment gateway that can be integrated with any website and mobile apps. In this tutorial we will see a quick and simple integration of Stripe in Swift for iOS development using Stripe documentation for iOS. This hands on tutorial will help you to familiarise yourself in Validating and creating token using Stripe IOS…

  • Quotes app – Simple page based application in Swift

    This is a very basic tutorial on how to create a simple page based app in Swift. We are going to use Page Based Application project template for displaying quotes in different pages.   Create Page-Based Application in Swift Click Xcode File menu, navigate to New and select Project from sub menu list. Select Page-Based…

  • UIGestureRecognizer in Swift

    In this short tutorial, we will see the steps required for implementing UIGestureRecognizer in Swift programming language. Let us take the previous Stop Watch demo code and implement tap, double tap and swipe gestures. You can download source code for Stop Watch from here. The following features will be implemented using the UIGestureRecognizer. Tap –…

  • Simple StopWatch app in Swift

    In this tutorial, we will see the steps for creating simple StopWatch app in Swift Programming language as shown in the below screenshot. Click File menu -> New -> select Project from menu list. Choose the template as Single View Application and click Next button. Enter name of the Product, Language as Swift then click…

  • No such module Cocoa

    No such module Cocoa error message is displayed when the type of playground file selected is iOS instead of OS X. Make sure to select Playground under OS X if you want to use Cocoa framework and go for UIKit incase of iOS Another alternate way is to change the template using the Playground Settings.…