调整图片预览关闭按钮图标
This commit is contained in:
@@ -138,7 +138,7 @@ final class TravelAlbumPhotoPreviewViewController: UIViewController {
|
||||
divider.backgroundColor = UIColor.white.withAlphaComponent(0.12)
|
||||
|
||||
var backConfiguration = UIButton.Configuration.plain()
|
||||
backConfiguration.image = UIImage(systemName: "chevron.backward")
|
||||
backConfiguration.image = UIImage(systemName: "chevron.down")
|
||||
backConfiguration.preferredSymbolConfigurationForImage = UIImage.SymbolConfiguration(
|
||||
pointSize: 21,
|
||||
weight: .semibold
|
||||
|
||||
@@ -346,9 +346,11 @@ final class TravelAlbumDetailViewControllerTests: XCTestCase {
|
||||
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)
|
||||
XCTAssertEqual(backButton.bounds.size, CGSize(width: 44, height: 44))
|
||||
XCTAssertEqual(backButton.configuration?.image, UIImage(systemName: "chevron.down"))
|
||||
XCTAssertNil(backButton.configuration?.baseBackgroundColor)
|
||||
XCTAssertEqual(actionStack.spacing, 10)
|
||||
XCTAssertTrue(actionStack.isLayoutMarginsRelativeArrangement)
|
||||
|
||||
Reference in New Issue
Block a user