Post

Replies

Boosts

Views

Activity

Reply to iOS 26 Beta 3, UIGlassEffect corner radius
This is not even a bug. The cornerConfiguration appeared in the WWDC sessions, but until now, it does not exist in UIKit. In Beta 2, we could use layer.cornerRadius to simulate its behavior, but in Beta 3 it doesn’t work anymore. It’s really annoying for developers who want to use this new feature, but Apple didn’t tell us this feature is just in the video.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25
Reply to Variable WidgetBundle Configurations possible?
I found a workaround https://www.avanderlee.com/swiftui/variable-widgetbundle-configuration/ @main struct StockAnalyzerWidgets: WidgetBundle { @WidgetBundleBuilder var body: some Widget { widgets() } func widgets() -> some Widget { if #available(iOS 16.0, *) { return WidgetBundleBuilder.buildBlock(StockAnalyzerWatchlistWidgets(), StockAnalyzerSymbolWidgets()) } else { return StockAnalyzerWatchlistWidgets() } } } Any body using this in production environment?
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’22
Reply to iOS 10: Failed to read values in CFPrefsPlistSource
May, 2022 For iOS SwiftUI Widget, I'm using App Group to share userDefaults between main app and widget, I saw same information like this, but only appear once, the second time widget retrieve info (via WidgetCenter.reloadTimelines) seems successful. Maybe we can define when read userDefaults failed, and treat this a Xcode log noise? [User Defaults] Couldn't read values in CFPrefsPlistSource<0x2824ee900> (Domain: xxx, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
Topic: App & System Services SubTopic: Core OS Tags:
May ’22
Reply to Deprecations: SF Symbol...
It seems the symbol still display correct image, but I did some extra work in my code like below var theSymbol: UIImage if #available(iOS 14, *) {     theSymbol = UIImage(systemName: "arrow.triangle.2.circlepath") } else {     theSymbol = UIImage(systemName: "arrow.2.circlepath") }
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to AlarmKit - Custom Sounds?
Same here, I have tested different sound file formats, it won't work.
Replies
Boosts
Views
Activity
Jul ’25
Reply to AlarmKit authorizationState is always notDetermined even if permission has been previously granted
Until beta 4, there were two ways to get the real AlarmKit authorization state: First: authorizationUpdates for await state in AlarmManager.shared.authorizationUpdates { // this state is correct } Second: The requested result, but possibly with an alert let state = try await AlarmManager.shared.requestAuthorization()
Replies
Boosts
Views
Activity
Jul ’25
Reply to iOS 26 Beta 3, UIGlassEffect corner radius
This is not even a bug. The cornerConfiguration appeared in the WWDC sessions, but until now, it does not exist in UIKit. In Beta 2, we could use layer.cornerRadius to simulate its behavior, but in Beta 3 it doesn’t work anymore. It’s really annoying for developers who want to use this new feature, but Apple didn’t tell us this feature is just in the video.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to Can I use .glassEffect() in Widget?
Same here. After adding .glassEffect, the text on the button disappeared—it was expected to show white "Tap Me."
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to MusicKit failed retrieving tokens on Simulator.
Same here, my simulator version is iOS 18.4
Replies
Boosts
Views
Activity
May ’25
Reply to Xcode 16 Beta 3 simulator could not open Home Screen customize
Hi everyone, I found it was due to the default wallpaper. Just change the wallpaper to any non-default one, and the customize button works again. Now I can continue adopting the widget tint mode.
Replies
Boosts
Views
Activity
Jul ’24
Reply to SwiftUI negative kerning cuts off font
There is still no good way to fix this. Simply add two spaces at the start and end of the string Text(" F ").
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Anybody know how to custom UIButton/UIView hover effect?
I found this API for iOS 17 if #available(iOS 17.0, *) { self.hoverStyle = .init(shape: .capsule) }
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to How to reproduce MagnifyGesture on visionOS simulator
Do you mean how to trigger a gesture in the simulator? You can try holding down the Option key and then moving your cursor.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to Variable WidgetBundle Configurations possible?
I found a workaround https://www.avanderlee.com/swiftui/variable-widgetbundle-configuration/ @main struct StockAnalyzerWidgets: WidgetBundle { @WidgetBundleBuilder var body: some Widget { widgets() } func widgets() -> some Widget { if #available(iOS 16.0, *) { return WidgetBundleBuilder.buildBlock(StockAnalyzerWatchlistWidgets(), StockAnalyzerSymbolWidgets()) } else { return StockAnalyzerWatchlistWidgets() } } } Any body using this in production environment?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to UIPasteControl still asks for permission when it's not the first one on the screen.
Testing this control was exhausting because I couldn't predict the results. Combining it with the original UI was an even more complicated issue. I really wanted a permission control like Photo Library.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to How to fix "There was a problem with your request." in Cloudkit console?
Same { "code": 500, "message": "internal-error", "reason": "There was a problem with your request.", "requestUuid": "f8bd710e-1f2a-xxxx-xxxx-xxxxxxx" }
Replies
Boosts
Views
Activity
Jul ’22
Reply to iOS 10: Failed to read values in CFPrefsPlistSource
May, 2022 For iOS SwiftUI Widget, I'm using App Group to share userDefaults between main app and widget, I saw same information like this, but only appear once, the second time widget retrieve info (via WidgetCenter.reloadTimelines) seems successful. Maybe we can define when read userDefaults failed, and treat this a Xcode log noise? [User Defaults] Couldn't read values in CFPrefsPlistSource<0x2824ee900> (Domain: xxx, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Deprecations: SF Symbol...
It seems the symbol still display correct image, but I did some extra work in my code like below var theSymbol: UIImage if #available(iOS 14, *) {     theSymbol = UIImage(systemName: "arrow.triangle.2.circlepath") } else {     theSymbol = UIImage(systemName: "arrow.2.circlepath") }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21