Swift


/ 4 min read

Create a Library using Swift Package Manager - Stepwise Tutorial

The Swift Package Manager (SPM) is a tool for managing the distribution of source code, aimed at making it easy to share your code and reuse others code. Swift Package Manager provides a convention-based system for building libraries and executables, and sharing code across different packages.


/ 4 min read

How to use SwiftLint with Xcode to enforce Swift style and conventions?

SwiftLint is a tool to enforce Swift style and conventions. Keeping a codebase consistent and maintainable in a project with a team of developers sometimes may be very hard, different conventions and styles, plus different levels of experience with the language across developers may result


/ 5 min read

What's new in Xcode 10?

Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. The Xcode development environment bundles the Instruments analysis tool, Simulator, and the OS frameworks in the form of tvOS SDKs, watchOS SDKs, iOS SDKs, and macOS


/ 2 min read

Extensions by Example - Swift Programming Language

1. Introduction Extensions add new functionality to an existing class, structure, enumeration, or protocol type. This includes the ability to extend types for which you do not have access to the original source code. Declare extensions with the extension keyword Format of Extension extension SomeType


/ 5 min read

Initializers and Deinitializers - Swift Programming Language

1.Initializers Initialization is the process of preparing an instance of a class, structure, or enumeration for use. This process involves setting an initial value for each stored property on that instance and performing any other setup or initialization that is required before the new


/ 3 min read

What will be new in Swift 5?

Apple Swift 5 will be release in late 2018. The primary focus of Swift 5 will be ABI (Application Binary Interface) stability for the Swift Standard Library. Here the goals for Swift 5 - 1. ABI Stability 1.1 What is ABI Stability? At runtime


/ 9 min read

Control Flow by Example - Swift Programming Language

In Swift, there are three kinds of statements: simple statements, compiler control statements, and control flow statements. Simple statements are the most common and consist of either an expression or a declaration. Compiler control statements allow the program to change aspects of the compiler’s


/ 9 min read

Tips to become a better Swift (iOS) Developer

Swift is friendly to new programmers. It's an industrial-quality programming language that's as expressive and enjoyable as a scripting language. Here the some tips to become a better Swift Developer. You can copy and paste the code snippets into Playground, to make it easier for


/ 3 min read

Methods by Example - Swift Programming Language

Methods are functions that are associated with a particular type. Classes, structures, and enumerations can all define instance methods, which encapsulate specific tasks and functionality for working with an instance of a given type. Classes, structures, and enumerations can also define type methods, which are


/ 6 min read

Properties by Example - Swift Programming Language

Properties associate values with a particular class, structure, or enumeration. Suppose if we need to change or access an iVar in your class using an object of your class, then there should be getter and setter methods assigned to the iVar. A property is used


/ 4 min read

Classes and Structures by Example - Swift Programming Language

1. Introduction Classes and structures are general-purpose, flexible constructs that become the building blocks of your program’s code. You define properties and methods to add functionality to your classes and structures by using exactly the same syntax as for constants, variables, and functions. In


/ 3 min read

Access Control by Example - Swift Programming Language

Access control restricts access to parts of your code from code in other source files and modules. This feature enables you to hide the implementation details of your code, and to specify a preferred interface through which that code can be accessed and used. You



/ 4 min read

Optionals Chainings by Example - Swift Programming Language

1. Introduction An optional in Swift is a type that can hold either a value or no value. Optionals are written by appending a ? to any type: var optionalName: String? = "Developer Insider" print(optionalName) //prints "Optional("Developer Insider")" Optionals

Load More