回答編集履歴
2
変な日本語を修正
answer
CHANGED
@@ -3,4 +3,4 @@
|
|
3
3
|
CALayer renderInContext method ignores maskedCorners property
|
4
4
|
[https://openradar.appspot.com/41414439](https://openradar.appspot.com/41414439)
|
5
5
|
|
6
|
-
手元で試したところ[drawHierarchy(in:afterScreenUpdates:)](https://developer.apple.com/documentation/uikit/uiview/1622589-drawhierarchy)の方は問題無
|
6
|
+
手元で試したところ[drawHierarchy(in:afterScreenUpdates:)](https://developer.apple.com/documentation/uikit/uiview/1622589-drawhierarchy)の方は問題無さそうでしたので、こちらをお使いください。
|
1
再回答
answer
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
|
1
|
+
バグのようです。
|
2
|
-
キャプチャを撮っているタイミングでは、UpperCornerRViewのdrawが実行されておらず、コーナーの設定が適用されていないだけかと思います。
|
3
2
|
|
4
|
-
`self.clipsToBounds = (cornerRadius > 0)`や`self.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]`
|
5
|
-
|
3
|
+
CALayer renderInContext method ignores maskedCorners property
|
4
|
+
[https://openradar.appspot.com/41414439](https://openradar.appspot.com/41414439)
|
6
5
|
|
7
|
-
イニシャライザ辺りで設定するのがよいかと思います。
|
8
|
-
|
6
|
+
手元で試したところ[drawHierarchy(in:afterScreenUpdates:)](https://developer.apple.com/documentation/uikit/uiview/1622589-drawhierarchy)の方は問題無いようでしたので、こちらで問題ないようでしたらお使いください。
|