mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 00:33:28 +01:00
Removes unnecessary #available checks
This commit is contained in:
@@ -16,20 +16,9 @@ class AppIconImageView: UIImageView
|
||||
|
||||
self.contentMode = .scaleAspectFill
|
||||
self.clipsToBounds = true
|
||||
|
||||
self.backgroundColor = .white
|
||||
|
||||
if #available(iOS 13, *)
|
||||
{
|
||||
self.layer.cornerCurve = .continuous
|
||||
}
|
||||
else
|
||||
{
|
||||
if self.layer.responds(to: Selector(("continuousCorners")))
|
||||
{
|
||||
self.layer.setValue(true, forKey: "continuousCorners")
|
||||
}
|
||||
}
|
||||
|
||||
self.layer.cornerCurve = .continuous
|
||||
}
|
||||
|
||||
override func layoutSubviews()
|
||||
|
||||
Reference in New Issue
Block a user