XuX-Stewed Noodles 资源-第16页
XuX的头像-Stewed Noodles 资源
超级管理员河南管理员超级版主
一拳之石取其了坚,一勺之水取其净!
ScrollViewReader-Stewed Noodles 资源

ScrollViewReader

Scroll View Reader 让你可以访问一个名为 scrollTo 的函数。通过这个函数,你可以通过自动滚动使滚动视图中的某个视图可见。 介绍 使用 ScrollViewReader 访问 scrollTo 函数,以便以编程方式...
phaseAnimator-Stewed Noodles 资源

phaseAnimator

一个容器,通过自动循环遍历你提供的一系列阶段来对其内容进行动画处理,每个阶段定义了动画中的一个离散步骤。 具有阶段动画的弹跳 例如,前面展示的表情符号弹跳动画具有两个阶段:向上移动和...
1年前
0310
How to use continuations to convert completion handlers into async functions 如何使用 continuations 将完成处理程序转换为异步函数-Stewed Noodles 资源

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-Stewed Noodles 资源

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 初始化-Stewed Noodles 资源

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...
Plex 设置 HTTP 网络代理-Stewed Noodles 资源

Plex 设置 HTTP 网络代理

文件的位置 /var/packages/PlexMediaServer/scripts/start-stop-status。 start-stop-status 文件 代码内容如下 # Set proxy export HTTP_PROXY='http://192.168.50.1:3333' export HTTPS_PROXY...
11个月前
0310
Layout-Stewed Noodles 资源

Layout

Jetpack Compose 提供了多种选项,用于在容器内对齐和排列 UI 元素,比如 Column、Row、Box。 常用的布局类型 Arrangement Arrangement 用于控制子项在主轴方向上的间距,因此在 Column 中会看...
macOS Python 多版本管理-Stewed Noodles 资源

macOS Python 多版本管理

安装 Homebrew Homebrew 的官网 https://brew.sh/ 在终端输入以下命令进行安装 /bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)' 安装完成后...
Day 9 - 字典与嵌套-Stewed Noodles 资源

Day 9 – 字典与嵌套

字典 基本语法 字典是由键值对组成,基本的语法如下 {key1:value1, key2: value2, ...} 示例 # 字典示例 colors = { 'apple': 'red', 'pear': 'green', 'banana': 'yellow' } 基本使用 字典的基...
Day 16 - 面向对象编程(OOP)-Stewed Noodles 资源

Day 16 – 面向对象编程(OOP)

面向对象编程(Object Oriented Programming, OOP),模拟事物为对象(Object),每个对象都有自己的属性(attribute)以及方法(methods)。 对象与类 在 OOP 中,有类(Class)以及对象(Obje...