Baidu Hi iOS 技术周报-2015.10.05

视频:

Controlling Complexity in Swift

文章:

An Observable Pattern Implementation in Swift: Swift的观察者模式实现

When to Use Swift Structs and Classes: Swift中何时使用Structs和Classes

Optional Computed Properties in Swift Protocols: 声明Optional Computed properties

Protocol Oriented Programming in the Real World: Swift Protocol Oriented Programming的使用例子。

Swift Functors, Applicatives, and Monads in Pictures:
学了点haskell,在swift中新加的很多语言特性都是从haskell那里“抄”来的,比如强大的枚举、switch等等。functorapplicativemonads历来是haskell学习中相对比较难理解的概念,这篇文章用swift简明易懂的做了解释。

开源代码:

Blurable: Apply a Gaussian Blur to any UIView with Swift Protocol Extensions

Neon:A powerful Swift programmatic UI layout framework.Build dynamic and beautiful user interfaces like a boss, with Swift.

Async: Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch

问题

iOS 9 的 KVO 性能好像下降的很厉害