Server Side Swift Vapor: HelloWorld Web Page Using Leaf

In this article, we will see how to create a simple web page that displays “Hello World” using Server Side Swift framework called Vapor. 1. Working Environment Xcode : 10.2.1 Swift : 5.0.1 Vapor Toolbox : 3.1.0 Platform : macOS Mojave ( 10.14.5 ) 2. Create new project In this step we will create a […]

Server Side Swift Vapor : Fix the error in creating new project

In this article, we will see how to resolve an error that occurs while creating a server side Swift project using the Vapor framework. Working Environment Xcode : 10.2.1 Swift : 5.0.1 Vapor Toolbox : 3.1.0 Platform : macOS Mojave ( 10.14.5 ) Error On executing the command vapor xcode, an error message is displayed […]

Apple's Swift Programming Language

Swift Script : Syntax Highlighting and Indentation for Vim Text Editor

It will be nice to see, if the code in a Swift script is colored, highlighted and intended according to the language constructs. In Apple’s Swift repository ( https://github.com/apple/swift/tree/master/utils/vim ), there exists a vim plugin, which will help us to display language constructs in more easily readable format by applying syntax highlighting, if the script […]

Apple's Swift Programming Language

Executing Swift Code from Files in Ubuntu Linux as Script

In our previous article, we have seen how to setup Swift programming language in Ubuntu Linux and how to invoke Swift’s interactive shell to play with Swift language. In this article, we will see how to run a Swift program saved in a file from Ubuntu Linux terminal as a script. 1. Open a text […]

Apple's Swift Programming Language

Starting up Swift Programming in Ubuntu 14.04

In this article, we will see how to start up Apple’s Swift programming in Ubuntu 14.04 ( code named Trusty). 1. Install the library ‘clang’ In Ubuntu, open a terminal and enter the command given below : 2. Download the latest version of Swift for Ubuntu 14.04 from the given below link : 3. Extract […]