调整图片预览关闭按钮图标

This commit is contained in:
2026-08-13 16:25:27 +08:00
parent 6e2899dbfd
commit e190b5958b
2 changed files with 4 additions and 2 deletions
@@ -138,7 +138,7 @@ final class TravelAlbumPhotoPreviewViewController: UIViewController {
divider.backgroundColor = UIColor.white.withAlphaComponent(0.12) divider.backgroundColor = UIColor.white.withAlphaComponent(0.12)
var backConfiguration = UIButton.Configuration.plain() var backConfiguration = UIButton.Configuration.plain()
backConfiguration.image = UIImage(systemName: "chevron.backward") backConfiguration.image = UIImage(systemName: "chevron.down")
backConfiguration.preferredSymbolConfigurationForImage = UIImage.SymbolConfiguration( backConfiguration.preferredSymbolConfigurationForImage = UIImage.SymbolConfiguration(
pointSize: 21, pointSize: 21,
weight: .semibold weight: .semibold
@@ -346,9 +346,11 @@ final class TravelAlbumDetailViewControllerTests: XCTestCase {
barMetrics: .default barMetrics: .default
) )
) )
XCTAssertEqual(segmentedControl.bounds.size, CGSize(width: 180, height: 32)) XCTAssertEqual(segmentedControl.bounds.width, 180, accuracy: 0.5)
XCTAssertEqual(segmentedControl.bounds.height, 32, accuracy: 1)
XCTAssertGreaterThanOrEqual(highResolutionButton.frame.minX - segmentedControl.frame.maxX, 12) XCTAssertGreaterThanOrEqual(highResolutionButton.frame.minX - segmentedControl.frame.maxX, 12)
XCTAssertEqual(backButton.bounds.size, CGSize(width: 44, height: 44)) XCTAssertEqual(backButton.bounds.size, CGSize(width: 44, height: 44))
XCTAssertEqual(backButton.configuration?.image, UIImage(systemName: "chevron.down"))
XCTAssertNil(backButton.configuration?.baseBackgroundColor) XCTAssertNil(backButton.configuration?.baseBackgroundColor)
XCTAssertEqual(actionStack.spacing, 10) XCTAssertEqual(actionStack.spacing, 10)
XCTAssertTrue(actionStack.isLayoutMarginsRelativeArrangement) XCTAssertTrue(actionStack.isLayoutMarginsRelativeArrangement)