[UIKit] Make UITraitCollection thread-safe, since that's apparently how Apple treats it. Fixes #6706. (#6948)

Fixes https://github.com/xamarin/xamarin-macios/issues/6706.
This commit is contained in:
Rolf Bjarne Kvinge 2019-09-09 18:35:29 -07:00 коммит произвёл Sebastien Pouliot
Родитель 19be01bd03
Коммит cd7e293ce0
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -15002,6 +15002,7 @@ namespace UIKit {
[iOS (8,0)]
[BaseType (typeof (NSObject))]
[DesignatedDefaultCtor]
[ThreadSafe] // Documentation doesn't say, but it this class doesn't seem to trigger Apple's Main Thread Checker.
partial interface UITraitCollection : NSCopying, NSSecureCoding {
[Export ("userInterfaceIdiom")]
UIUserInterfaceIdiom UserInterfaceIdiom { get; }