Skip to content

Standwerth/SwiftUI-weak-self

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SwiftUI-weak-self

SwiftUI project demonstrating how weak self works

Inspired by Swiftful Thinking's video on the topic: https://www.youtube.com/watch?v=TPHp9kR0Go8

Before diving into what weak self is, I would recommend reading up on what ARC (Automatic Reference Counting) is: https://docs.swift.org/swift-book/LanguageGuide/AutomaticReferenceCounting.html

Weak self is used in order to more effectively allocate memory when you run into asynchronous tasks, such as downloading data from a server. Usually Swift is able to take care of allocating and deallocting memory for us using ARC (Automatic Reference Counting). But occasionally you

About

SwiftUI project demonstrating how weak self works

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages