Skip to content

AppKit macOS xcode14.0 beta5

Chris Hamons edited this page Aug 29, 2022 · 4 revisions

#AppKit.framework https://github.com/xamarin/xamarin-macios/pull/15778

diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h	2022-07-22 10:05:29.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h	2022-08-05 13:40:49.000000000 -0400
@@ -79,7 +79,7 @@
 /// Creates a system symbol image with the specified name and value
 /// @param name A name from the system’s SF Symbols catalog
 /// @param description The image’s accessibility description. This description is used automatically by interface elements that display images. Like all accessibility descriptions, use a short localized string that does not include the name of the interface element. For instance, “delete” rather than “delete button”.
-+ (nullable instancetype)imageWithSystemSymbolName:(NSString *)symbolName accessibilityDescription:(nullable NSString *)description API_AVAILABLE(macos(11.0));
++ (nullable instancetype)imageWithSystemSymbolName:(NSString *)name accessibilityDescription:(nullable NSString *)description API_AVAILABLE(macos(11.0));
 
 /// Creates a system symbol image with the specified name and value. The @c value argument is only accommodated if the symbol supports variable rendering.
 /// @param name A name from the system’s SF Symbols catalog
@@ -94,6 +94,13 @@
 /// @note Values less than 0 or greater than 1 will be clamped to 0 and 1, respectively.
 + (nullable instancetype)imageWithSymbolName:(NSString *)name variableValue:(double)value API_AVAILABLE(macos(13.0));
 
+/// Creates a symbol image with the specified name and value. The @c value argument is only accommodated if the symbol supports variable rendering.
+/// @param name A name of a symbol image file in the main bundle’s catalog
+/// @param bundle The bundle containing the image file or asset catalog. Specify `nil` to search the app’s main bundle.
+/// @param value The value represented by the symbol. The value should be between 0 and 1 inclusive ([0,1]).
+/// @note Values less than 0 or greater than 1 will be clamped to 0 and 1, respectively.
++ (nullable instancetype)imageWithSymbolName:(NSString *)name bundle:(nullable NSBundle *)bundle variableValue:(double)value API_AVAILABLE(macos(13.0));
+
 - (instancetype)initWithSize:(NSSize)size NS_DESIGNATED_INITIALIZER;
 - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
Clone this wiki locally