mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix more warnings
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
if (self != nil) {
|
||||
self.clipsToBounds = true;
|
||||
self.layer.cornerRadius = frame.size.width / 2.0f;
|
||||
if (iosMajorVersion() >= 13) {
|
||||
if (@available(iOS 13.0, *)) {
|
||||
self.layer.cornerCurve = kCACornerCurveCircular;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
_borderMaskView.layer.borderWidth = 1.0;
|
||||
_borderMaskView.layer.borderColor = [UIColor whiteColor].CGColor;
|
||||
_borderMaskView.layer.cornerRadius = frame.size.width / 2.0f;
|
||||
if (iosMajorVersion() >= 13) {
|
||||
if (@available(iOS 13.0, *)) {
|
||||
_borderMaskView.layer.cornerCurve = kCACornerCurveCircular;
|
||||
}
|
||||
_borderView.maskView = _borderMaskView;
|
||||
|
||||
Reference in New Issue
Block a user