最新发布第15页
排序
Word 隐藏所有回车换行符
Windows 系统下,按 Ctrl + Shift + 8 可以快速显示或隐藏所有格式标记,包括回车符(¶)。 macOS 系统下,视图 -> 显示段落标 中,取消勾选。
Intent
Intent 是一个基本组件,它促进了应用程序不同组件之间以及不同应用程序之间的通信。Intent 用于请求同一应用内或由其它应用执行的操作,它们用于各种目的,例如启动Activity、启动服务、广播消...
Layout
Jetpack Compose 提供了多种选项,用于在容器内对齐和排列 UI 元素,比如 Column、Row、Box。 常用的布局类型 Arrangement Arrangement 用于控制子项在主轴方向上的间距,因此在 Column 中会看...
macOS Python 多版本管理
安装 Homebrew Homebrew 的官网 https://brew.sh/ 在终端输入以下命令进行安装 /bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)' 安装完成后...
Day 16 – 面向对象编程(OOP)
面向对象编程(Object Oriented Programming, OOP),模拟事物为对象(Object),每个对象都有自己的属性(attribute)以及方法(methods)。 对象与类 在 OOP 中,有类(Class)以及对象(Obje...
phaseAnimator
一个容器,通过自动循环遍历你提供的一系列阶段来对其内容进行动画处理,每个阶段定义了动画中的一个离散步骤。 具有阶段动画的弹跳 例如,前面展示的表情符号弹跳动画具有两个阶段:向上移动和...
How to follow this guide 如何遵循本指南
This guide is called Swift Concurrency by Example because it focuses on providing as many examples as possible. My goal is to stay laser-focused on real-world problems and real-wor...
How to use continuations to convert completion handlers into async functions 如何使用 continuations 将完成处理程序转换为异步函数
Older Swift code uses completion handlers for notifying us when some work has completed, and sooner or later you’re going to have to use it from an async function –&nbs...
How to loop over an AsyncSequence using for await 如何使用 for await 遍历 AsyncSequence
You can loop over an AsyncSequence using Swift’s regular loop types, for, while, and repeat, but whenever you read a value from the async sequence you mus...
Understanding actor initialization 了解 actor 初始化
Swift's actors run on their own executor most of the time, so they manage how and where their work is done. However, during the actor's initialization its executor isn't ready to t...




