最新发布第5页
Xcode快捷键-Stewed Noodles 资源

Xcode快捷键

按键 符号 功能描述 Command ⌘ 常用于系统快捷操作,例如复制、粘贴等。 Option ⌥ 用于组合键或输入特殊字符。 Shift ⇧ 用于大写字母或功能增强。 Control ⌃ 结合快捷键的辅助按键。 Caps L...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri5个月前
070
LiveScribe-Stewed Noodles 资源

LiveScribe

We're going to build a macOS app that lets users write Markdown and see exactly how it looks as they type. More importantly, we're going to do so using test-driven development, so ...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri5个月前
0160
Release checklist  版本清单-Stewed Noodles 资源

Release checklist 版本清单

Sure, all your tests pass, but how can you make sure your app functions properly? Most large projects have a solution called a release checklist, and here I want to share mine wit...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri5个月前
80
Swift Concurrency by Example-Stewed Noodles 资源

Swift Concurrency by Example

Async/await Sequences and streams Tasks and task groups Actors Testing Solutions
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri5个月前
110
How to use @MainActor to run code on the main queue 如何使用 @MainActor 在主队列上运行代码-Stewed Noodles 资源

How to use @MainActor to run code on the main queue 如何使用 @MainActor 在主队列上运行代码

@MainActor is a global actor that uses the main queue for executing its work. In practice, this means methods or types marked with @MainActor can (for the most part)...
How to make function parameters isolated 如何隔离函数参数-Stewed Noodles 资源

How to make function parameters isolated 如何隔离函数参数

Any properties and methods that belong to an actor are isolated to that actor, but you can make external functions isolated to an actor if you want. This allows the funct...
How to create and use an actor in Swift 如何在 Swift 中创建和使用 actor-Stewed Noodles 资源

How to create and use an actor in Swift 如何在 Swift 中创建和使用 actor

Creating and using an actor in Swift takes two steps: create the type using actor rather than class or struct, then use await when accessing its ...
What is an actor and why does Swift have them? 什么是 actor,为什么 Swift 有它们?-Stewed Noodles 资源

What is an actor and why does Swift have them? 什么是 actor,为什么 Swift 有它们?

Swift’s actors are conceptually like classes that are safe to use in concurrent environments. This safety is made possible because Swift automatically ensures no two pieces of cod...
How to write basic async tests 如何编写基本的异步测试-Stewed Noodles 资源

How to write basic async tests 如何编写基本的异步测试

Both Swift Testing and XCTest allow us to test asynchronous code built with Swift concurrency by marking tests as async. This means we can wait for concurrent code to complete...
How to download JSON from the internet and decode it into any Codable type 如何从 Internet 下载 JSON 并将其解码为任何 Codable 类型-Stewed Noodles 资源

How to download JSON from the internet and decode it into any Codable type 如何从 Internet 下载 JSON 并将其解码为任何 Codable 类型

Fetching JSON from the network and using Codable to convert it into native Swift objects is probably the most common task for any Swift developer, usually followed by dis...