Appearance tweaks

This commit is contained in:
James Magahern
2020-08-14 17:44:49 -07:00
parent 669da89ff3
commit fa4ba64660
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ class TabPickerViewController: UIViewController, UICollectionViewDelegate
} }
override func loadView() { override func loadView() {
var listConfig = UICollectionLayoutListConfiguration(appearance: .grouped) var listConfig = UICollectionLayoutListConfiguration(appearance: .insetGrouped)
listConfig.trailingSwipeActionsConfigurationProvider = { [unowned self] indexPath in listConfig.trailingSwipeActionsConfigurationProvider = { [unowned self] indexPath in
if self.dataSource?.snapshot().numberOfItems ?? 0 <= 1 { if self.dataSource?.snapshot().numberOfItems ?? 0 <= 1 {
return nil return nil

View File

@@ -57,7 +57,7 @@ class ToolbarView: UIView
let buttonContainerInset = UIEdgeInsets(top: 1.0, left: 0.0, bottom: 1.0, right: 0.0) let buttonContainerInset = UIEdgeInsets(top: 1.0, left: 0.0, bottom: 1.0, right: 0.0)
var urlBarPadding = CGFloat(8.0) let urlBarPadding = CGFloat(8.0)
var urlBarInsets = UIEdgeInsets(top: 0.0, left: 0.0, bottom: 0.0, right: 0.0) var urlBarInsets = UIEdgeInsets(top: 0.0, left: 0.0, bottom: 0.0, right: 0.0)
// Cancel button // Cancel button

View File

@@ -31,7 +31,7 @@ class URLBar: UIView
private let refreshImage = UIImage(systemName: "arrow.clockwise") private let refreshImage = UIImage(systemName: "arrow.clockwise")
private let stopImage = UIImage(systemName: "xmark") private let stopImage = UIImage(systemName: "xmark")
private let backgroundCornerRadius: CGFloat = 8 private let backgroundCornerRadius: CGFloat = 4
convenience init() { convenience init() {
self.init(frame: .zero) self.init(frame: .zero)