Theory
According to Wikipedia - Copy on Write "is a resource-management technique used in computer programming to efficiently implement a "duplicate" or "copy" operation on modifiable resources."
As confusing as it may seem,
Sometimes structures or classes we create in code can be easily expressed by
built-in Swift types. Consider the following code:
struct Person {
let name: String
}
let ana = Person(name: "Ana")
I created simple
Here's my first compilation of the most common Swift and iOS interview
questions. There'll be more, so follow me on Twitter
[https://twitter.com/GruchalaArtur] & stay up to date.
Have fun and try
In 2015, Apple introduced a new concept - Protocol Oriented Programming
[https://developer.apple.com/videos/play/wwdc2015/408/]. I encourage you to
watch the whole 50 minutes of the WWDC video. One
Like all Objective-C APIs, Notification Center has Strings everywhere. With
iOS10 Apple introduced NSNotification.Name but, still, there is some space for
improvement.
If you use notifications without any payload, new nested type