Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/arkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2287,22 +2287,6 @@ interface ARMatteGenerator {
IMTLTexture GenerateDilatedDepth (ARFrame frame, IMTLCommandBuffer commandBuffer);
}

[iOS (13, 0)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface ARQuickLookPreviewItem : QLPreviewItem {

[Export ("initWithFileAtURL:")]
[DesignatedInitializer]
NativeHandle Constructor (NSUrl url);

[NullAllowed, Export ("canonicalWebPageURL", ArgumentSemantic.Strong)]
NSUrl CanonicalWebPageUrl { get; set; }

[Export ("allowsContentScaling")]
bool AllowsContentScaling { get; set; }
}

[iOS (13, 0)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
Expand Down
27 changes: 27 additions & 0 deletions src/quicklook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,30 @@ interface QLThumbnailImage {
#endif

}

#if !MONOMAC
// Apple moved ARQuickLookPreviewItem from the ARKit framework to the QuickLook framework in Xcode 26,
// and also added it to Mac Catalyst.
#if XAMCORE_5_0 || __MACCATALYST__
namespace QuickLook {
#else
namespace ARKit {
using QuickLook;
#endif
[iOS (13, 0), MacCatalyst (26, 0), NoTV, NoMac]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface ARQuickLookPreviewItem : QLPreviewItem {

[Export ("initWithFileAtURL:")]
[DesignatedInitializer]
NativeHandle Constructor (NSUrl url);

[NullAllowed, Export ("canonicalWebPageURL", ArgumentSemantic.Strong)]
NSUrl CanonicalWebPageUrl { get; set; }

[Export ("allowsContentScaling")]
bool AllowsContentScaling { get; set; }
}
}
#endif // !MONOMAC
8 changes: 8 additions & 0 deletions tests/cecil-tests/AttributeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ static HashSet<string> IgnoreElementsThatDoNotExistInThatAssembly {
"PdfKit.PdfView.ShouldReceiveTouch (XKit.XGestureRecognizer, XKit.XTouch)",
"PdfKit.PdfView.ShouldRecognizeSimultaneously (XKit.XGestureRecognizer, XKit.XGestureRecognizer)",
"PdfKit.PdfView.ShouldRequireFailureOf (XKit.XGestureRecognizer, XKit.XGestureRecognizer)",

#if !XAMCORE_5_0
// The ARQuickLookPreviewItem type is in the QuickLook framework for Mac Catalyst, and ARKit for all other platforms.
"QuickLook.ARQuickLookPreviewItem.get_PreviewItemTitle ()",
"QuickLook.ARQuickLookPreviewItem.get_PreviewItemUrl ()",
"QuickLook.ARQuickLookPreviewItem.PreviewItemTitle",
"QuickLook.ARQuickLookPreviewItem.PreviewItemUrl",
#endif
};
}
}
Expand Down

This file was deleted.

Loading