Skip to content

Commit 35e86f3

Browse files
committed
update
1 parent bbb6b27 commit 35e86f3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

iOS/Swift/PFollow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## PFollow 开发总结
2+
3+
### 点加载
4+
从相册中每次都全量读取一次数据,还要比对是否重复和变更,虽然速度不慢,但直接拿 SwiftUI 进行点渲染,一万多张照片需要渲染一万多个点,有较大性能问题。
5+
6+
可以使用自定义 MapView,使用聚类来进行调优,点跟随缩放素质进行增加或减少,降低 UI 渲染压力。

macOS/TranslateP.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## TranslateP 开发过程
2+
3+
## 选型
4+
使用 SwiftUI,因为 AppKit 实在是太难用了,痛苦。并且作为一个无主界面的 app,运行后只有菜单栏程序,使用[`MenuBarExtra`](https://developer.apple.com/documentation/swiftui/menubarextra)这个 macOS 13 开始支持的 API。
5+
6+
## Accessibility 权限
7+
正在调试运行中的 app 没有加在 Applicatios 文件夹中,需要在 Xcode 的缓存目录下找到你正在运行中的 app,添加到 Accessibility 中。注意用户目录下的 Library 为隐藏目录,使用 shift + command + . 展示 Finder 的隐藏目录。
8+
9+
```bash
10+
/Users/你的用户名/Library/Developer/Xcode/DerivedData
11+
```

0 commit comments

Comments
 (0)