Post

Replies

Boosts

Views

Activity

Alternate Icon in iOS26
Hello. I want to use an icon created with Icon Composer to change the app icon in my iOS 26 app. UIApplication.shared.setAlternateIconName("AppIcon") This code works with the icon included in Assets.xcassets (AppIconOld) and the default icon specified in Info.plist (AppIcon.icon), but it does not work with another icon (AppIconRed.icon). All icon names (AppIconOld, AppIcon, AppIconRed) are included in the “Alternate App Icon Sets” in Build Settings. Also, I can’t display the .icon file as an image. If I use the old method to load it as a UIImage, the image is retrieved, but its appearance is not accurate.
Topic: UI Frameworks SubTopic: SwiftUI
1
1
143
Jun ’25
WidgetKit blur
The iOS 14 battery widget has blur. But if you implement them yourself in WidgetKit, you'll get 🚫 on a yellow background. How should I implement it? struct VisualEffectView: UIViewRepresentable {     var effect: UIVisualEffect?     func makeUIView(context: UIViewRepresentableContext<Self>) -> UIVisualEffectView { UIVisualEffectView() }     func updateUIView(_ uiView: UIVisualEffectView, context: UIViewRepresentableContext<Self>) { uiView.effect = effect } } struct BackgroundSunView : View {     var body: some View {         VisualEffectView(effect: UIBlurEffect(style: .dark))                        .edgesIgnoringSafeArea(.all)     } } struct WidgetKitEntryView : View {     var body: some View {         ZStack {             BackgroundSunView()             VStack {                 Text("Hello")             }         }     } }
7
0
5.0k
Jul ’20
Standard code gives an error
I chose to use the standard code created by selecting "Augmented Reality App" in Xcode and using it.But I get the error Use of unresolved identifier 'Experience'How can I solve this?ARView.swiftimport SwiftUI import RealityKit struct ARViewContainer: UIViewRepresentable { func makeUIView(context: Context) -> ARView { let arView = ARView(frame: .zero) // Load the "Box" scene from the "Experience" Reality File let boxAnchor = try! Experience.loadBox() // Add the box anchor to the scene arView.scene.anchors.append(boxAnchor) return arView } func updateUIView(_ uiView: ARView, context: Context) {} }ARKitView.swiftimport SwiftUI struct ARKitView: View { var body: some View { return ARViewContainer().edgesIgnoringSafeArea(.all) } } struct ARKitView_Previews: PreviewProvider { static var previews: some View { ARKitView() } }Experience.rcproject「Box」Seen
3
0
2.5k
Apr ’20