Skip to content

Commit

Permalink
Make the X icon smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
markmur committed Oct 20, 2023
1 parent 1cd3527 commit c27992d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/ShopifyCheckout/CheckoutViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ class CheckoutViewController: UIViewController, UIAdaptivePresentationController
private lazy var closeBarButtonItem: UIBarButtonItem = {
switch ShopifyCheckout.configuration.colorScheme {
case .web:

Check failure on line 47 in Sources/ShopifyCheckout/CheckoutViewController.swift

View workflow job for this annotation

GitHub Actions / lint

Switch and Case Statement Alignment Violation: Case statements should vertically aligned with their closing brace (switch_case_alignment)
return UIBarButtonItem(
barButtonSystemItem: .stop, target: self, action: #selector(close)
)
let closeIcon = UIImage(systemName: "xmark")?
.withConfiguration(UIImage.SymbolConfiguration(pointSize: 14, weight: .regular))
.withTintColor(.white, renderingMode: .alwaysOriginal)
return UIBarButtonItem(image: closeIcon, style: .plain, target: self, action: #selector(close))
default:

Check failure on line 52 in Sources/ShopifyCheckout/CheckoutViewController.swift

View workflow job for this annotation

GitHub Actions / lint

Switch and Case Statement Alignment Violation: Case statements should vertically aligned with their closing brace (switch_case_alignment)
return UIBarButtonItem(
barButtonSystemItem: .close, target: self, action: #selector(close)
Expand Down

0 comments on commit c27992d

Please sign in to comment.