In Swift, classes are reference types and structures are value types. Value types are copied when passed and assigned, whereas reference types use only one...
This article mainly talks about the method of class and structure, reducing the underlying source structure of the method, introducing the distribution of functions and...
We all know that classes and structs can define methods, but there is one difference: value type attributes cannot be modified by their own instance...
In this two-part tutorial, you'll learn about common design patterns for building iOS applications and how to apply them in your own applications. IOS Design...
1. Mutation method in SWIFT; 2, method scheduling, respectively through sil file, source code and Mach_O file analysis and verification method scheduling; 3. Keywords that...
This article analyzes the Swift code compilation process and the underlying source structure of Swift class, and prints the corresponding Matadata data by restoring the...
As an iOS developer (now addicted to Swift 😍). I built and maintained applications from scratch and worked on many teams. Throughout my career, I've...
Class is the core of object-oriented programming. In object-oriented programming, everything is an object, and class is a way to describe the object. In Object-C,...
Swift uses ARC to manage and track memory usage in applications. Automatic Reference Counting is the full name of ARC. In most cases, developers don't...
We talked earlier about cross-references between two class instances. If you have a class whose attributes are closures, you can also have cross-references between classes...
Swift class and Structure (part 1) understand the difference between class and structure, and analyze the structure of Swift class. Let's take a peek at...
I was involved in [4] nuggets creators camp (https://juejin.cn/post/7064192649523101726 click to understand the details of activities, learning together! In iOS development, 'OC' and 'Swift' are...
Memory management Swift language continues the same idea of memory management as Objective-C language, which uses reference counting to manage the memory of instances.
This article uses the Cocoa with Love author's firsthand experience to show you how to migrate your library's dependency trees from Git subtrees to Swift...
In this article, we'll delve into some advanced techniques for creating SwiftUI animation. I'll talk extensively about the Animatable protocol, its reliable companion animatableData, the...
Codable is a new feature introduced in Swift4.0 that is intended to replace the NSCoding protocol. Codable can serialize internal application data structures into exchangeable...