Skip to content

SecurityUI iOS xcode16.3 b1

Rolf Bjarne Kvinge edited this page Mar 21, 2025 · 2 revisions

#SecurityUI.framework https://github.com/dotnet/macios/pull/22446

diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SFCertificatePresentation.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SFCertificatePresentation.h --- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SFCertificatePresentation.h	1970-01-01 01:00:00 +++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SFCertificatePresentation.h	2025-02-08 11:49:11 @@ -0,0 +1,53 @@ +// +// SFCertificatePresentation.h +// SecurityUI +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <Foundation/Foundation.h> +#import <TargetConditionals.h> + +#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION +@class UIViewController; +#elif TARGET_OS_OSX +@class NSWindow; +#endif + +NS_ASSUME_NONNULL_BEGIN + +API_AVAILABLE(macos(15.4), ios(18.4), tvos(18.4), visionos(2.4)) API_UNAVAILABLE(watchos) +@interface SFCertificatePresentation : NSObject + +/// Initialize the certificate presentation with a certificate trust reference. +- (instancetype)initWithTrust:(SecTrustRef)trust NS_DESIGNATED_INITIALIZER; + +/// Clients should use use designated initializers. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// Presents the certificate sheet. A dismiss handler is invoked whent the sheet has dismissed. +#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION +- (void)presentSheetInViewController:(UIViewController *)viewController dismissHandler:(nullable void (^)(void))dismissHandler; +#elif TARGET_OS_OSX +- (void)presentSheetInWindow:(NSWindow *)window dismissHandler:(nullable void (^)(void))dismissHandler; +#endif + +/// Dismisses the certificate sheet. +- (void)dismissSheet; + +/// A trust reference, previously created with SecTrustCreateWithCertificates (see <Security/SecTrust.h>). +@property (nonatomic, assign, readonly) SecTrustRef trust; + +/// Title string to be displayed. If no title is provided, a default title will be used. +@property (nonatomic, copy, nullable) NSString *title; + +/// Message string to be displayed. If no message is provided, a default message will be used. +@property (nonatomic, copy, nullable) NSString *message; + +/// The URL that will be opened by clicking the "Learn More" button. +@property(nonatomic, copy, nullable) NSURL *helpURL; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SecurityUI.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SecurityUI.h --- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SecurityUI.h	1970-01-01 01:00:00 +++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SecurityUI.framework/Headers/SecurityUI.h	2025-02-08 11:49:11 @@ -0,0 +1,8 @@ +// +// SecurityUI.h +// SecurityUI +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <SecurityUI/SFCertificatePresentation.h> 
Clone this wiki locally