The Swift Programming Language (Swift 4) 中文文档 The powerful programming language that is also easy to learn 官方网站 Swift swift.org Swift Standard Library The Swift Programming Language (Swift 4) 以下译自 Swift 4.0 Language Guide 根据自己理解翻译了swift 4.0 文档,如有错误请发送至邮箱2115162434@qq.com 目录 Basic Operators-基本运算符 StringAndCharacters-字符串和字符 CollectionTypes-集合 ControlFlow-控制流 Functions-函数 Closures-闭包 Enumerations-枚举 Classes and Structures-类和结构体 Properties-属性 Methods-方法 Subscripts-下标 Inheritance-继承 未完待续 Initialization Deinitialization Automatic Reference Counting Optional Chaining Error Handling Type Casting Nested Types Extensions Protocols Generics Access Control Advanced Operators