Skip to content

Commit d1cac2e

Browse files
committed
.
1 parent 2ba3dcf commit d1cac2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Demo/Demo/SimpleViewController.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,11 @@ class SimpleViewController: UIViewController {
197197
}
198198

199199
private func reload() {
200-
// 更新播放视图大小
201-
playerView.frame = .init(x: 0, y: 0, width: view.bounds.width, height: 9 / 16 * view.bounds.width)
202200
// 获取最大宽度 重新设置内容
203201
let width = UIScreen.main.bounds.width - view.safeAreaInsets.left - view.safeAreaInsets.right - 20
202+
// 更新播放视图大小
203+
playerView.frame = .init(x: 0, y: 0, width: width, height: 9 / 16 * width)
204+
// 更新列表数据 (重新计算高度)
204205
list = list.map { .init($0.content, width: width) }
205206
tableView.reloadData()
206207
}

Sources/Extension/UIKit/UITextViewExtension.swift

-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ private class AttachmentView: UIView {
412412
CATransaction.begin()
413413
CATransaction.setDisableActions(true)
414414
view.center = .init(bounds.width * 0.5, bounds.height * 0.5)
415-
let radio = bounds.width / view.bounds.width
416415
view.transform = .init(
417416
scaleX: bounds.width / view.bounds.width,
418417
y: bounds.height / view.bounds.height

0 commit comments

Comments
 (0)