XuX-Stewed Noodles 资源-第27页
XuX的头像-Stewed Noodles 资源
超级管理员河南管理员
一拳之石取其了坚,一勺之水取其净!
4. ① 列出产品-Stewed Noodles 资源
withAnimation-Stewed Noodles 资源

withAnimation

使用提供的动画重新计算视图主体,并返回结果。 struct ContentView: View { @State private var isActive = false var body: some View { VStack(alignment: isActive ? .trailing : .leading)...
1年前
0200
What are tasks and task groups? 什么是任务和任务组?-Stewed Noodles 资源

What are tasks and task groups? 什么是任务和任务组?

Using async/await in Swift allows us to write asynchronous code that is easy to read and understand, but by itself it doesn’t enable us to run anything concurrently – even w...
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 ...
How to make a task sleep 如何使任务进入休眠状态-Stewed Noodles 资源

How to make a task sleep 如何使任务进入休眠状态

Swift’s Task struct has a static sleep() method that will cause the current task to be suspended for a set period of time. You need to call Task.sleep()&n...
工单类别-Stewed Noodles 资源

工单类别

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

@BindingAdapter

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

Class

带构造函数的类 /** * 带构造函数的类 */ class Robot(val name: String) { fun greetHuman() { println('Hello human, my name is $name') } fun walk() { println('I'm walking') } } // 类对...
Docker 基础 - 容器-Stewed Noodles 资源

Docker 基础 – 容器

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

模型容器

ModelContainer 是 SwiftData 中负责创建和管理实际数据库文件的核心组件。它提供了集中化的存储方案,确保数据的持久化和高效访问。ModelContainer 处理数据模型的定义、数据库文件的生成与管...