Skip to content

Commit

Permalink
Remove unused gradient asset
Browse files Browse the repository at this point in the history
  • Loading branch information
markmur committed Oct 20, 2023
1 parent c27992d commit 79a834e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.

This file was deleted.

Binary file not shown.
18 changes: 9 additions & 9 deletions Sources/ShopifyCheckout/CheckoutViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ class CheckoutViewController: UIViewController, UIAdaptivePresentationController

private lazy var closeBarButtonItem: UIBarButtonItem = {
switch ShopifyCheckout.configuration.colorScheme {
case .web:
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:
return UIBarButtonItem(
barButtonSystemItem: .close, target: self, action: #selector(close)
)
case .web:
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:
return UIBarButtonItem(
barButtonSystemItem: .close, target: self, action: #selector(close)
)
}
}()

Expand Down

0 comments on commit 79a834e

Please sign in to comment.