Post

Replies

Boosts

Views

Activity

Reply to iOS 26 UIKIt: Where's the missing cornerConfiguration property of UIViewEffectView?
Updated for iOS 26 Beta 4: // CornerConfigurationVisualEffectView.h #import <UIKit/UIKit.h> @interface CornerConfigurationVisualEffectView: UIVisualEffectView - (void)setCornerRadius:(double)cornerRadius; @end // CornerConfigurationVisualEffectView.m #import "CornerConfigurationVisualEffectView.h" #import <objc/runtime.h> // iOS 26 Beta 3/4 do not provide any way to customize the corner radius of glass views (FB18629279). // This class exists as a temporary workaround until the corner configuration API is fully exposed. @interface NSObject (iOS26Beta3BugFixes) + (id)uniform:(id)arg1; + (id)fixedWithRadius:(double)arg1; - (id)setCornerConfiguration:(id)arg1; @end @interface NSObject (iOS26Beta4BugFixes) + (id)fixedRadius:(double)arg1; + (id)configurationWithUniformRadius:(id)arg1; @end @implementation CornerConfigurationVisualEffectView //+ (void)printClassesContainingUICorner { // int numClasses = objc_getClassList(NULL, 0); // if (numClasses <= 0) return; // Class *classes = (__unsafe_unretained Class *)malloc(sizeof(Class) * (unsigned long)numClasses); // numClasses = objc_getClassList(classes, numClasses); // for (int i = 0; i < numClasses; i++) { // const char *name = class_getName(classes[i]); // if (strstr(name, "UICorner") != NULL) { // NSLog(@"%s", name); // } // } // free(classes); //} - (void)setCornerRadius:(double)radius { // [[self class] printClassesContainingUICorner]; Class uiCornerConfigurationClass = NSClassFromString(@"UICornerConfiguration"); if (uiCornerConfigurationClass == nil) { return; } // iOS 26 Beta 3 API support { Class uiCornerStyleClass = NSClassFromString(@"UICornerStyle"); if (uiCornerStyleClass != nil && [uiCornerStyleClass respondsToSelector:@selector(fixedWithRadius:)]) { id cornerStyle = [uiCornerStyleClass fixedWithRadius:radius]; if (![uiCornerConfigurationClass respondsToSelector:@selector(uniform:)]) { return; } id configuration = [uiCornerConfigurationClass uniform:cornerStyle]; if (![self respondsToSelector:@selector(setCornerConfiguration:)]) { return; } [self setCornerConfiguration:configuration]; return; } } { // iOS 26 Beta 4 API support Class uiCornerRadiusClass = NSClassFromString(@"UICornerRadius"); if (uiCornerRadiusClass != nil && [uiCornerRadiusClass respondsToSelector:@selector(fixedRadius:)]) { id cornerRadius = [uiCornerRadiusClass fixedRadius:radius]; if (![uiCornerConfigurationClass respondsToSelector:@selector(configurationWithUniformRadius:)]) { return; } id configuration = [uiCornerConfigurationClass configurationWithUniformRadius:cornerRadius]; if (![self respondsToSelector:@selector(setCornerConfiguration:)]) { return; } [self setCornerConfiguration:configuration]; return; } } } @end
Topic: UI Frameworks SubTopic: UIKit Tags:
2w
Reply to iOS 26 UIKIt: Where's the missing cornerConfiguration property of UIViewEffectView?
Beta 3 patch code you can use for now and should delete once the proper APIs are available: #import <UIKit/UIKit.h> @interface CornerConfigurationVisualEffectView: UIVisualEffectView - (void)setCornerRadius:(double)cornerRadius; @end #import "CornerConfigurationVisualEffectView" #import <objc/runtime.h> // iOS 26 Beta 3 does not provide any way to customize the corner radius of glass views (FB18629279). // This class exists as a temporary workaround until the corner configuration API is fully exposed. @interface NSObject (iOS26Beta3BugFixes) + (id)uniform:(id)arg1; + (id)fixedWithRadius:(double)arg1; - (id)setCornerConfiguration:(id)arg1; @end @implementation CornerConfigurationVisualEffectView - (void)setCornerRadius:(double)cornerRadius { Class uiCornerConfigurationClass = NSClassFromString(@"UICornerConfiguration"); if (uiCornerConfigurationClass == nil) { return; } Class uiCornerStyleClass = NSClassFromString(@"UICornerStyle"); if (uiCornerStyleClass == nil) { return; } if (![uiCornerStyleClass respondsToSelector:@selector(fixedWithRadius:)]) { return; } id cornerStyle = [uiCornerStyleClass fixedWithRadius:cornerRadius]; if (![uiCornerConfigurationClass respondsToSelector:@selector(uniform:)]) { return; } id configuration = [uiCornerConfigurationClass uniform:cornerStyle]; if (![self respondsToSelector:@selector(setCornerConfiguration:)]) { return; } [self setCornerConfiguration:configuration]; } @end
Topic: UI Frameworks SubTopic: UIKit Tags:
4w
Reply to iOS 26 UIKIt: Where's the missing cornerConfiguration property of UIViewEffectView?
UICornerStyle seems like the most likely API. Dumping its methods confirms the signatures match the API signatures mentioned in the WWDC video: po [[[UICornerStyle alloc] init] _methodDescription] <UICornerStyle: 0x600000228140>: in UICornerStyle: Class Methods: + (id) containerRelative; (0x1851ac3ec) + (id) containerRelativeWithMinimumRadius:(double)arg1; (0x1851ac474) + (id) fixedWithRadius:(double)arg1; (0x1851ac388)
Topic: UI Frameworks SubTopic: UIKit Tags:
4w
Reply to iOS 26 UIKIt: Where's the missing cornerConfiguration property of UIViewEffectView?
The arguments are objects of some sort, but because they are id-typed we'll have to hunt around a bit. Dumping the runtime classes gives us the following possible candidates: _TtGCs14PartialKeyPathC5UIKit17_UICornerProvider_$ _TtGCs7KeyPathC5UIKit17_UICornerProviderGSqSd__$ _TtGCs15WritableKeyPathC5UIKit17_UICornerProviderGSqSd__$ _TtGCs7KeyPathC5UIKit17_UICornerProviderGSqPSo17UICoordinateSpace___$ _TtGCs15WritableKeyPathC5UIKit17_UICornerProviderGSqPSo17UICoordinateSpace___$ UIKit._UICornerProvider UICornerConfiguration UICornerStyle _UICornerMaskingContext _UICornerMaskingProviderMux
Topic: UI Frameworks SubTopic: UIKit Tags:
4w
Reply to iOS 26 UIKIt: Where's the missing cornerConfiguration property of UIViewEffectView?
Digging a bit further, we can find the initializers for the class: (lldb) po [[UICornerConfiguration alloc] _methodDescription] <UICornerConfiguration: 0x60000211c140>: in UICornerConfiguration: Class Methods: + (id) capsule; (0x1853cb920) + (id) uniformBottom:(id)arg1 topLeft:(id)arg2 topRight:(id)arg3; (0x1853cb608) + (id) capsuleWithMaximumRadius:(double)arg1; (0x1853cb9d8) + (id) uniform:(id)arg1; (0x1853cb1e4) + (id) uniformEdgesWithLeft:(id)arg1 right:(id)arg2; (0x1853cb3a4) + (id) uniformEdgesWithTop:(id)arg1 bottom:(id)arg2; (0x1853cb2dc) + (id) uniformLeft:(id)arg1 topRight:(id)arg2 bottomRight:(id)arg3; (0x1853cb704) + (id) uniformRight:(id)arg1 topLeft:(id)arg2 bottomLeft:(id)arg3; (0x1853cb800) + (id) uniformTop:(id)arg1 bottomLeft:(id)arg2 bottomRight:(id)arg3; (0x1853cb50c)
Topic: UI Frameworks SubTopic: UIKit Tags:
4w
Reply to Debug Failed in Xcode Simulator
Running into the same thing. Am no longer able to place breakpoints in any project: Couldn't find the Objective-C runtime library in loaded images. Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.
Mar ’25
Reply to Touchscreen gestures in CarPlay aren't recognized in the app
I've also been running into this somewhat randomly. My car has a touch screen and I receive the panBeganWith family of events most of the time. Sometimes, such as right now, my app will simply stop receiving these events even though other apps still respond to touch interactions. I'm able to interact with other elements of my app's user interface such as the map controls and top bar buttons, but dragging does not result in the appropriate callback events being fired.
Topic: App & System Services SubTopic: General Tags:
Dec ’24