Commit d2a1647
When a property is declared as ArgumentSemantic.Copy, we'll copy the input value in property setters.
Unfortunately this makes UIKit crash, because for
UITextField.SelectedTextRange UIKit might use a custom UITextRange subclass,
with a broken 'copy' implementation (doesn't copy all the fields), that
subsequently makes the app crash.
On the other hand, UITextRange doesn't conform to NSCopying, and as such is in
theory not necessarily copyable, and thus I believe the bug is really that the
property is declared as a 'copy' property.
Fixes #15677.
Backport of #16201
Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
1 parent 88043e4 commit d2a1647
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7254 | 7254 | | |
7255 | 7255 | | |
7256 | 7256 | | |
7257 | | - | |
| 7257 | + | |
| 7258 | + | |
| 7259 | + | |
7258 | 7260 | | |
7259 | 7261 | | |
7260 | 7262 | | |
| |||
0 commit comments