File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2222
2323### 🐕 [ Intercepting SwiftUI Sheet Dismissal] ( https://livsycode.com/swiftui/intercepting-swiftui-sheet-dismissal/ )
2424
25- [ @极速男孩] ( https://github.com/ztlyyznf001 ) 文章介绍了拦截 SwiftUI Sheet 下拉关闭的巧妙方案:利用 Presentation Detents 设置一个极小高度作为“拦截阈值”。当用户下拉至此,程序会捕捉状态并强制回弹,从而触发确认弹框。该方法不依赖复杂底层手势,实现简单且复用性强。
25+ [ @极速男孩] ( https://github.com/ztlyyznf001 ) : 文章介绍了拦截 SwiftUI Sheet 下拉关闭的巧妙方案:利用 Presentation Detents 设置一个极小高度作为“拦截阈值”。当用户下拉至此,程序会捕捉状态并强制回弹,从而触发确认弹框。该方法不依赖复杂底层手势,实现简单且复用性强。
2626
2727## 文章
2828
4343[ @Barney ] ( https://github.com/BarneyZhaoooo ) :本文介绍 Swift 中 UUID () 的原理与特性,默认生成 Version 4 随机 UUID。它基于 122 位加密安全随机数,从硬件、系统等多源收集熵值,经 CSPRNG 处理,按 RFC 4122 格式化,唯一性几乎绝对。还提及 Version 1(时间 + MAC 地址)和 Version 7(时间 + 随机),并说明 UUID 高效且无碰撞顾虑。
4444
4545### 🐕 [ Swift Modules and Code/Assets Duplication] ( https://pfandrade.me/blog/swift-modules-and-codeassets-duplication/ )
46+
4647[ @Smallfly ] ( https://github.com/iostalks ) :这篇文章针对 Swift 模块化开发中的代码与资源重复问题,提供了简洁高效的解决方案。核心内容包括:
4748
4849- ** 模块化痛点** :使用 Swift Package 拆分模块后,静态链接导致代码在主应用与扩展(如 Action Extension)中重复;资源文件(图片、本地化字符串等)会生成独立 bundle 并被复制到每个依赖 target,增加包体积。
You can’t perform that action at this time.
0 commit comments