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

withAnimation

使用提供的动画重新计算视图主体,并返回结果。 struct ContentView: View { @State private var isActive = false var body: some View { VStack(alignment: isActive ? .trailing : .leading)...
1年前
0210
How to create and use async properties 如何创建和使用异步属性-Stewed Noodles 资源

How to create and use async properties 如何创建和使用异步属性

Just as Swift’s functions can be asynchronous, computed properties can also be asynchronous: attempting to access them must also use await or similar, and may also need&...
What’s the difference between a task and a detached task? 任务和分离任务有什么区别?-Stewed Noodles 资源

What’s the difference between a task and a detached task? 任务和分离任务有什么区别?

If you create a new task using the regular Task initializer, your work starts running immediately and inherits the priority of the caller, any task local values, and its ...
Introduction to testing Swift concurrency Swift 并发测试简介-Stewed Noodles 资源

Introduction to testing Swift concurrency Swift 并发测试简介

Swift's full range of concurrency features work great with unit tests using both the legacy XCTest framework and the new Swift Testing framework.Swift 的全套并发功能非常适合使用旧...
@BindingAdapter-Stewed Noodles 资源

@BindingAdapter

基本介绍 @BindingAdapter 是 Data Binding 提供的注解,用来创建自定义的 XML 属性,使你可以在 XML 中直接调用方法,从而让布局更简洁、灵活。 用途 通过 @BindingAdapter,可以:• 为 View ...
呈批件自动生成文号-Stewed Noodles 资源

呈批件自动生成文号

业务需求 自动生成文号,文号的生成规则 年份-CPJ-2位流水号。 解决方案 配置修改 编辑 呈批件 中的 文号 字段,将 属性 修改为 readonly。 代码修改 mode_cpjian 文件 文件中的代码,如下所示 ...
32天前
0210
Docker 基础 - 容器-Stewed Noodles 资源

Docker 基础 – 容器

容器常见命令创建容器# 完整命令 docker container run <image name> # 简写命令 docker run <image name> 列出容器查看 up 状态的容器# 完整命令 docker container ls # 简写命令 ...
模型容器-Stewed Noodles 资源

模型容器

ModelContainer 是 SwiftData 中负责创建和管理实际数据库文件的核心组件。它提供了集中化的存储方案,确保数据的持久化和高效访问。ModelContainer 处理数据模型的定义、数据库文件的生成与管...
What is actor hopping and how can it cause problems? 什么是 actor 跳转,它如何导致问题?-Stewed Noodles 资源

What is actor hopping and how can it cause problems? 什么是 actor 跳转,它如何导致问题?

When a thread pauses work on one actor to start work on another actor instead, we call it actor hopping, and it will happen any time one actor calls another.当线程暂停对一个 a...
工单类别-Stewed Noodles 资源

工单类别

巡检任务隐患过来的是检修工单 故障过来的是抢修工单 计划任务过来是计划工单 预防性维护过来的是预防性工单 检修与抢修工单 巡检人员在巡检的过程中,如果遇到故障,直接填报故障,等抢修完成...