随笔分类 -  swiftUI

摘要:SwiftUI 开发抖音Logo // // ContentView.swift // DouYinLogo // // Created by lujun on 2022/4/12. // import SwiftUI struct ContentView: View { let blue = Co 阅读全文
posted @ 2022-04-15 15:49 johnson--save 阅读(132) 评论(0) 推荐(0) 编辑
摘要:SwiftUI中的快捷键积累 command简称 CMD键 , cmd + Shift + O,查看 VStack 源码的定义。非常重要,学会看源码,看看苹果官方怎么写的。 cmd + option + P。实时刷新画布预览。加上图钉功能。非常重要。 阅读全文
posted @ 2022-02-01 09:14 johnson--save 阅读(111) 评论(0) 推荐(0) 编辑
摘要:SwiftUI3.0将UIKit ViewController转化成 swiftUI的view 这也是SwiftUI中的重点之重。因为swiftUI里面的功能不够完善,需要借助UIKit里面的东西,就像swift 刚刚发布的时候,有时候还要借助oc的第三方类库一样。swift导入oc框架,只要搞个桥 阅读全文
posted @ 2022-02-01 09:09 johnson--save 阅读(297) 评论(0) 推荐(0) 编辑
摘要:SwiftUI3.0页面反向传值 SwiftUI反向传值是SwiftUI的重点之重,跟OC里面的代理,block,通知, swift里面的闭包,代理,通知 的方法类似,后者大家很熟,前者不怎么属性,必须遵守Combine 处理数据流的框架, 前者资料很少,后者资料很多 import SwiftUI 阅读全文
posted @ 2022-01-30 22:09 johnson--save 阅读(419) 评论(0) 推荐(0) 编辑
摘要:// // LottieView.swift // testLottieDemo1 // // Created by lujun on 2022/1/29. // import SwiftUI import Lottie //SwiftUI 不能直接 使用 Lottie ,需要 桥接 struct 阅读全文
posted @ 2022-01-30 14:30 johnson--save 阅读(562) 评论(0) 推荐(0) 编辑
摘要:核心源码 // // ContentView.swift // LJPlanets // // Created by lujun on 2022/1/24. // import SwiftUI //导入场景Kit 导入场景框架 import SceneKit struct ContentView: 阅读全文
posted @ 2022-01-25 09:02 johnson--save 阅读(55) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // ButtonControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { // b 阅读全文
posted @ 2022-01-06 13:24 johnson--save 阅读(94) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // ImageControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { // si 阅读全文
posted @ 2022-01-06 13:20 johnson--save 阅读(162) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // SwiftUIAnimationHeight // // Created by lujun on 2021/12/20. // import SwiftUI struct ContentView: View { @State var enale: 阅读全文
posted @ 2022-01-06 13:17 johnson--save 阅读(148) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // TextControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { // bas 阅读全文
posted @ 2022-01-06 13:15 johnson--save 阅读(99) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // TextFieldControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { / 阅读全文
posted @ 2022-01-06 13:02 johnson--save 阅读(120) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // ToggleControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { togg 阅读全文
posted @ 2022-01-06 12:55 johnson--save 阅读(286) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示