I use two different Github accounts — one is for my work, and the other for my personal projects. However, as a real novice in this field, whenever I switch the account from one to another, I had this problem with private remote repositories:
fatal: remote origin already exists.
In fact, not even once I have read about this topic…
I have been trying to embed Youtube videos in my App, and I have wanted to avoid working with external Frameworks using Cocoapod. Additionally, at the moment Google only provides Objective-C codes for Youtube API, I had no choice but to use URL only to embed videos.
However, this method…
How are structures and classes different in Swift?
They both have: properties, methods, subscript syntax, initialization, can be extended(using extension syntax), protocols to follow
But only classes have: inheritance, typecasting, deinitialization, and reference counting
So, it seems that classes have much more complex structures and functionalities, and…
Swift Review — Closures(2)
We have discussed how Swift distinguishes closures(function, nested function, and closure expression). In effect, they are different in that nested functions and closure expressions CAPTURE constants and variables from the surrounding contexts.
What exactly does it mean by CAPTURING values? Swift basically…
We usually think of it as an inline code that succinctly expresses a function. However, according to what the official document of Swift says, closure is a block of codes that executes a certain functionality — which is called a function in other languages.
We try to summarize briefly aboutswitch and guard clauses
A module is a “single unit of code distribution”: framework, application. In Xcode, each build target is considered as a single separate module.
In contrast, a source file is a “single Swift source code within a module”.
2. Access Levels
In Summary, Swift Access Levels…
Creating, Accessing, Modifying Arrays in Swift
Creating, Accessing, Modifying Dictionaries in Swift
Strings are Value Types, Iterables, + operation is appliable
2. Other Features
Extended Grapheme Cluster, Index, Substring, Comparison