1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-24 22:39:18 +01:00

Tweak touch view border color

This commit is contained in:
Chase Carroll 2022-12-06 14:42:25 -05:00
parent b634d2b844
commit 6f09034668

View File

@ -23,13 +23,15 @@ private final class TouchView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
let isLightMode = traitCollection.userInterfaceStyle == .light
backgroundColor = .clear
layer.masksToBounds = true
layer.cornerCurve = .circular
layer.borderColor = UIColor.white.cgColor
layer.borderColor = isLightMode ? UIColor.gray.cgColor : UIColor.white.cgColor
layer.borderWidth = 2.0
let blurEffect = traitCollection.userInterfaceStyle == .light ?
let blurEffect = isLightMode ?
UIBlurEffect(style: .systemUltraThinMaterialDark) :
UIBlurEffect(style: .systemUltraThinMaterialLight)
blurView.effect = blurEffect