Search results for

İOS 26 beta battery %1

253,810 results found

Post

Replies

Boosts

Views

Activity

MFMessageComposeViewController: Close button disappears after sending message on iOS 26
Description When presenting MFMessageComposeViewController from SwiftUI using UIViewControllerRepresentable, the close button disappears after sending a message on iOS 26. As a result, the message compose screen cannot be dismissed, leaving the user stuck on the Messages UI. struct MessageComposeView: UIViewControllerRepresentable { typealias Completion = (_ messageSent: Bool) -> Void static var canSendText: Bool { MFMessageComposeViewController.canSendText() } let recipients: [String]? let body: String? let completion: Completion? func makeUIViewController(context: Context) -> UIViewController { guard Self.canSendText else { let errorView = MessagesUnavailableView() return UIHostingController(rootView: errorView) } let controller = MFMessageComposeViewController() controller.messageComposeDelegate = context.coordinator controller.recipients = recipients controller.body = body return controller } func updateUIViewController(_ uiViewController: UIViewController, context: Context) {} fun
Topic: UI Frameworks SubTopic: SwiftUI
0
0
10
6d
UITextField selects all text on focus when the content is long — how to keep the caret at the end?
I’m building a custom input field using UITextField. When the user taps to focus the field and the text is long, the entire text becomes selected by default. This is the same behavior you can see in iOS Safari’s search field or the Messages app search field. What I want: when the field becomes first responder, the caret should be placed at the end of the text (latest word), without selecting all the text. Here’s the code that builds my text field: public func makeTextField() -> UITextField { let textField = UITextField() textField.autocorrectionType = .no textField.setContentCompressionResistancePriority(.required, for: .horizontal) textField.setContentCompressionResistancePriority(.required, for: .vertical) if #available(iOS 13.0, *) { textField.smartInsertDeleteType = .no } textField.smartQuotesType = .no textField.smartDashesType = .no textField.autocapitalizationType = .none textField.contentMode = .scaleToFill if let font = attributes[.font] as? UIFont { textField.font = font } if le
3
0
199
6d
How to index file based documents in Core Spotlight
I read this thread https://developer.apple.com/forums/thread/788979 thoroughly, but I’m still confused regarding indexing files content. I'm building a notes app where the notes are stored in files. A file can contain several notes (think paragraphs). Each note and the file document itself have a unique ID, all embedded in the file. So far so good, when the user opens a file in the app, I index all the notes in it using several CSSearchableItem, one for each note. Each CSSearchableItem gets a unique ID based on the note and file IDs. The notes are then visible in Spotlight search and when the user taps one of them, the app is called with a Spotlight activity and I present the note. I learned that I should create a CSImportExtension to allow the system to index files when app is not running. But the only method is update(_:forFileAt:), which allows to provide back to the system a single attributes set. How can I index the notes in a file as separate items? What happens if an iCloud document f
6
0
168
1w
Reply to Wi-Fi Raw Socket Disconnection Issue on iPhone 17 Series
Thank you for your response. By “Wi-Fi raw socket,” I was referring to a TCP socket connection implemented in Flutter (using the dart:io Socket API). The app communicates directly with an external Wi-Fi device — specifically, a car dashcam (black box) — by connecting to its local Wi-Fi network (no Internet involved) and exchanging binary data over a socket. Regarding the “Wi-Fi module reset,” this refers to restarting the dashcam’s internal Wi-Fi module, not anything done on the iOS device. Once the socket connection drops on the iPhone 17 series, the app cannot reconnect to the dashcam unless the dashcam’s Wi-Fi is turned off and back on again.
1w
tabViewBottomAccessory in 26.1: View's @State is lost when switching tabs
Any view that is content for the tabViewBottomAccessory API fails to retain its state as of the last couple of 26.1 betas (and RC). The loss of state happens (at least) when the currently selected tab is switched (filed as FB20901325). Here's code to reproduce the issue: struct ContentView: View { @State private var selectedTab = TabSelection.one enum TabSelection: Hashable { case one, two } var body: some View { TabView(selection: $selectedTab) { Tab(One, systemImage: 1.circle, value: .one) { BugExplanationView() } Tab(Two, systemImage: 2.circle, value: .two) { BugExplanationView() } } .tabViewBottomAccessory { AccessoryView() } } } struct AccessoryView: View { @State private var counter = 0 // This guy's state gets lost (as of iOS 26.1) var body: some View { Stepper(Counter: (counter), value: $counter) .padding(.horizontal) } } struct BugExplanationView: View { var body: some View { ScrollView { VStack(alignment: .leading, spacing: 16) { Text((1
1
0
194
1w
Reply to App Store not offering previous version of app on old device
Description: I am using an iPhone 6 on iOS 15.8. The App Store's Last Compatible Version feature is inconsistent. The first time I downloaded YouTube, I received a modern version with a square video player (the correct last compatible version). After deleting and re-downloading, the App Store gave me a much older version with a line-shaped video player and an outdated interface. This is a bug in the App Store's system for serving older, compatible apps. Please investigate and ensure users get the newest compatible version, not a random old one.
1w
[Want] A View detects one from multiple Gestures.
SwiftUI Gesture cannot detect one of multiple gestures. I made a library for it because one of my apps needs it. library: https://github.com/Saw-000/SwiftUI-DetectGestureUtil I think the function like this library maybe is needed in the core, and can be used with import SwiftUI, isn't it?
Topic: UI Frameworks SubTopic: SwiftUI
0
0
92
1w
[Want] A View detects one from multiple custom Gestures.
SwiftUI Gesture cannot detect one of multiple gestures. I made a library for it because no default functions for it exists and I need it for my app. https://github.com/Saw-000/SwiftUI-DetectGestureUtil I want to use a function like this library with import SwiftUI. The function is needed in the core maybe, isn't it?
Topic: UI Frameworks SubTopic: SwiftUI
0
0
96
1w
Validation failed (-19241) The app contains one or more corrupted binaries. Rebuild the app and resubmit.
I am using XCode (Version 26.0.1 (17A400)) -> Archive -> Distribute App (or Validate App) to upload my iOS app into App Store Connect. However I am always getting this error: Uploading SPI errors: Validation failed (409) The app contains one or more corrupted binaries. Rebuild the app and resubmit. NSUnderlyingError : Validation failed (-19241) The app contains one or more corrupted binaries. Rebuild the app and resubmit. code : STATE_ERROR.VALIDATION_ERROR I tried exporting the app as an IPA and uploading with Transporter, but I see the same error. I couldn't find any other useful logs or error messages. More info: I have created the app in App Store Connect and this is my first time uploading. The app can build and run on my physical phone and emulator without any problem. Would be great to get some help! Thanks!
0
0
76
1w
PWA video playback stopped working after updating iOS to 26.0.1
Hey Guys My PWA video playback and even youtube videos stopped working after updating iOS to 26.0.1. The video thumnails appear fine and if i try to play the video, it remains stuck. If i restart the phone, the video plays for a second in the PWA and then stops again and entire app gets stuck. Request apple team to fix this issue at the earliest. This is hampering all my iOS users who install the PWA on their device homescreen and use it as app. FYI strangely EVERYTHING WORKS FINE ON iOS SAFARI browser including videos playback If i open it as a web app. so this seems like a specific PWA issue on latest ios 26.0.1
Topic: Safari & Web SubTopic: General
3
0
513
1w
Trying to remove app groups from my macOS app doesn't seem to work
Hi, a short question really, which boils down to... How do I make sure I have removed all usage of app groups in my Mac app store app, such that the Mac app store agrees I have! Fundamentally, what I'm trying to do is transfer my app to another developer. In previous releases of this app on the App Store, I used a shared app group container to communicate between the main app and it's (embedded) XPC service, but this blocks App Store transfer of the app to another developer. So I came up with another approach for the App and XPC service to communicate (using a URL bookmark for security scoped files to be passed to the XPC service). And then tried various things to get the app store to accept that I'm no longer using app groups. So far with no luck... removed the app groups entitlements by hand from the entitlements files used to sign the main app and the XPC service, respectively. when that didn't work, go into the Developer Portal, find the app ids for the main app and the XPC service, make sure those app id
4
0
169
1w
App Rejected Because No Approved Subscriptions — Stuck in a Review Loop (App & Plans Depend on Each Other)
Hi everyone, I’m currently stuck in a review loop related to in-app subscriptions and would really appreciate some advice. Here’s what’s happening: My app uses Apple’s in-app subscription system (auto-renewable). When I submit the app, it gets rejected because there are no active/approved subscription plans available for purchase. But the subscription plans themselves are also rejected or kept under review because the app isn’t approved yet. So I’m in a loop where: The app approval depends on the subscription approval, and the subscription approval depends on the app approval. I’ve been stuck in this situation for about a month now, and I can’t move forward. Here’s what I’ve tried so far: Displayed a message on the subscriptions screen saying that “No plans are available right now.” Displayed the plans as UI only, and when users try to subscribe, it shows a message like “Plans are currently under review, please try again later.” Despite these attempts, the app still gets rejected with the same reason — that t
1
0
62
1w
ScreenCaptureKit recording output is corrupted when captureMicrophone is true
Hello everyone, I'm working on a screen recording app using ScreenCaptureKit and I've hit a strange issue. My app records the screen to an .mp4 file, and everything works perfectly until the .captureMicrophone is false In this case, I get a valid, playable .mp4 file. However, as soon as I try to enable the microphone by setting streamConfig.captureMicrophone = true, the recording seems to work, but the final .mp4 file is corrupted and cannot be played by QuickTime or any other player. This happens whether capturesAudio (app audio) is on or off. I've already added the Privacy - Microphone Usage Description (NSMicrophoneUsageDescription) to my Info.plist, so I don't think it's a permissions problem. I have my logic split into a ScreenRecorder class that manages state and a CaptureEngine that handles the SCStream. Here is how I'm configuring my SCStream: ScreenRecorder.swift // This is my main SCStreamConfiguration private var streamConfiguration: SCStreamConfiguration { var streamConfig = SCStreamConfiguration(
0
0
231
1w