When is it RISKY to use [unowned self] inside a closure? 🤨

  Рет қаралды 1,941

Vincent Pradeilles

Vincent Pradeilles

Күн бұрын

Пікірлер: 9
@v_pradeilles
@v_pradeilles 2 жыл бұрын
Did you find this explanation useful? What are your thoughts on using [unowned self]? Let me know in the comments 🚀
@muncho404
@muncho404 2 жыл бұрын
Explanation ability on point✅
@jeremymagnier
@jeremymagnier 2 жыл бұрын
Hi, thanks for the video I think unowned can be useful for better comprehension of the code. For example, i will put unowned self on updateUI in the viewDidLoad, and weak self on the closure of fetchData instead. This clearly indicates what may or may not happen for a new developper on the project
@v_pradeilles
@v_pradeilles 2 жыл бұрын
It’s indeed a good example of where using unowned shouldn’t be able to create a crash 👍
@xNiqueish
@xNiqueish 11 ай бұрын
Clear and on point. Good video!
@emrehavan7456
@emrehavan7456 2 жыл бұрын
Nice and brief explanation! Thanks for the video.
@lucasdebritoarruda7831
@lucasdebritoarruda7831 2 жыл бұрын
Excellent video. Best regards from Brazil.
@thomasjhartnett
@thomasjhartnett 2 жыл бұрын
Thanks for this video. I’m also not a fan of using unowned self for the reason you mentioned. It’s just too hard (and sometimes impossible) to know for sure it is safe.
@GBiboux
@GBiboux 2 жыл бұрын
Possible with unit test
Here are 8 official API Design Guidelines from the Swift Team ✌️
9:04
Vincent Pradeilles
Рет қаралды 2,5 М.
How to use weak self in Swift | Continued Learning #18
20:33
Swiftful Thinking
Рет қаралды 19 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
When do we REALLY need to use [weak self]? 🤔
7:30
Vincent Pradeilles
Рет қаралды 8 М.
Swift has a new keyword called `any`: here's what you need to know 👌
5:44
Weak and Unowned Self Closure Memory Leak Fixes
12:21
Lets Build That App
Рет қаралды 57 М.
Swift Tips #30 - weak & unowned
8:15
Vincent Pradeilles
Рет қаралды 4,2 М.
ChatGPT in Xcode: is it good?  🤖
1:05:02
Vincent Pradeilles
Рет қаралды 2,1 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 53 М.
Type Erasure In Swift | iOS Development
15:19
iOS Academy
Рет қаралды 8 М.
Swift Tips #14 - Property Wrappers
11:33
Vincent Pradeilles
Рет қаралды 3,4 М.
The 50 Most Popular Linux & Terminal Commands - Full Course for Beginners
5:00:17
Swift Closures Explained
14:23
Sean Allen
Рет қаралды 69 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН