This post contains updated information on WebRTC built on top of previous article since its migration from subversion to git. No more awkwardness with subversion. WebRTC repo is finally migrated to git.
This post is about two types in Swift, struct and class. I won’t be covering any obvious points about them. You can refer to excellent swift doc here.
In this post, I will try to expound upon the things that really tripped me up last night while I was working on my iOS project. In the app, I had to implement custom profile modal view with scrolling, more or less like Facebook profile page on mobile.
This is a sequel to the ARC In Swift. Capture list is used in closure declaration to capture references to the variables outside of closure context in order to execute in the future even when such context becomes out of scope.
Swift uses Automatic Reference Counting(ARC) like Objective-C to perform garbage collection. Automatic Reference Counting is basically Swift keeping track of the number of pointers that reference a certain memory address, and when that number of references count down to zero, program automatically garbage collect the memory in that memory address, whether it be a tiny scalar value or couple of gigabytes video source.