Keep Learning

objc.io review note

I’m subscribing objc.io online contents on monthly plan. It is an platform which provides In-depth guides on iOS and macOS development. This post is for keeping track of the Swift coding concepts that I encountered through objc.io.


Delegates & Callbacks

✳︎ Swift Talk #24 Delegates & Callbacks

↳ NOTE


Sharing State between VCs

✳︎ Swift Talk #86, #87

↳ NOTE


Collection protocol

✳︎ Swift Talk #32 Array, ArraySlice & Collection

↳ NOTE

extension Collection {
    func split(batchSize: IndexDistance) -> [SubSequence] {
        var remainderIndex = startIndex
        var result: [SubSequence] = []
        while remainderIndex < endIndex {
            let batchEndIndex = index(remainderIndex, offsetBy: batchSize, limitedBy: endIndex) ?? endIndex
            result.append(self[remainderIndex..<batchEndIndex])
            remainderIndex = batchEndIndex
        }
        return result
    }
}


Auto Layout with Key Paths

✳︎ Swift Talk #75 Auto Layout with Key Paths


=== : ==


Reference


Polymorphic features