Apple Developers

RSS for tag

This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and foster a supportive community.

Learn More

Posts under Apple Developers subtopic

Post

Replies

Boosts

Views

Activity

How to Properly Integrate Google IMA SDK for Pre-roll, Mid-roll, and Post-roll Ads in a tvOS App using TVJS and Swift?
I'm working on a tvOS application that plays video content using TVMLKit/TVJS. I'm trying to integrate Google IMA SDK to show pre-roll, mid-roll, and post-roll ads in my app. Here’s what I’ve done so far: Video playback is handled through JavaScript in application.js. Ads are managed in Swift using Google IMA SDK. I use the evaluateJavaScript bridge to control video playback from Swift. I pause and resume the TVJS player (Player object) using a function like startPlayingVideo(value) from Swift based on the ad lifecycle. Current Flow: When the video is about to start, I call loadAds() from JS. This presents a Swift ViewController that handles IMA ad requests. On adsManagerDidRequestContentPause, I pause the video using JS via the bridge. On adsManagerDidRequestContentResume, I resume the video. The Issue: This setup doesn't behave consistently: Sometimes the ad plays in the background and video started playing as well but can not see the ad. Not able to see the post-roll ads Relevant Code Snippets: application.js function startPlayingVideo(value) { if (playerReference != undefined) { if (value == true) { playerReference.play(); else { playerReference.pause(); } } } function playVideo(videoURL) { setup playerReference, push mediaItem, etc. loadAds(); player.present(); } AppDelegate.swift let loadAds: @convention(block) () -\> Void = { DispatchQueue.main.async { let adManagerVC = ViewController() AppDelegate.tvController?.navigationController.present(adManagerVC, animated: true) } } let updateVideoPlayTime: @convention(block) (Double) -\> Void = { time in CustomContentPlayhead.shared.currentTime = TimeInterval(time) } ViewController.swift func adsManagerDidRequestContentPause(\_ adsManager: IMAAdsManager) { showAdUI() playerViewController.player?.pause() } func adsManagerDidRequestContentResume(\_ adsManager: IMAAdsManager) { hideAdUI() // Expecting JS video to resume via bridge } And yeah my IMSDK Implementation is working fine if I am using it with swift AVPlayer. What I Need Help With: Best practice for coordinating video playback between JS (Player) and Swift (IMAAdsManager). How can I sync the playhead reliably between JS and Swift? Is there a better way to pause/resume TVJS player from Swift during ad lifecycle? How to reliably insert mid-roll ads when the playback is primarily controlled in JS? Any insights, code examples, or recommended architecture improvements would be greatly appreciated!
0
0
145
Jun ’25
Navigation
I am having trouble passing custom data in an array with a navigation stack. I want to display a subview with the same data structure (title, headline, picture placement etc), with different data attached for each of my list view items
0
0
66
Apr ’25
Health-AI Learning Pathway for Beginner
Hey, my name is Kenari Curry and I am an aspiring developer who is currently a readmitted senior in college. I major in Exercise Science and want to take those skills merge it with Data Science to develop Health-AI applications that improve the Fitness of athletes (sports & tactical) and clinical patients. I have no experience in programming or data science So I am wondering if I can meet with an expert on how to approach my goal.
0
0
633
Aug ’25
iOS26 Wi-FI Aware Sample Fails to Retrieve Paired Devices
Device: iPhone 15 Pro Max | iPhone 16 Pro iOS Version: iOS26.0(23A5287g) Xcode Version:26.0 beta 3 (17A5276g) Sample Code: Wi-Fi Aware Sample https://aninterestingwebsite.com/documentation/WiFiAware/Building-peer-to-peer-apps I tried using the official sample code to verify the Wi-Fi Aware functionality between two iPhones. During testing, the devices successfully paired — I can see each other’s devices under Settings > Privacy & Security > Paired Devices. However, in the Wi-FIAwareSample app, neither the Host nor the Viewer can retrieve the paired devices. I’m not sure what’s causing this issue. Any insights? do { for try await updatedDeviceList in WAPairedDevice.allDevices { // always 0 key/value pairedDevices = Array(updatedDeviceList.values) } } catch { logger.error("Failed to get paired devices: \(error)") }
0
0
480
Jul ’25
NoobScript : a new (php-esq) programming language for mac/iOS etc development
Noob Software has been working on a new programming language designed primarily for mac development, with a syntax similar to PHP and some aspects from JavaScript. To demonstrate this language i've released the code for one of my apps "Noob Music" https://github.com/noobsoftware/NoobMusic3 i would like to hear if people are interested in using this programming language. I think there are many benefits to the high level syntax and high level thinking, and not having to define datatypes and such. The language also supports multithreading using the "async" keyword prefixed in front of the function keyword, like you would do in JavaScript only with multithreading instead of interleaved processing. Pushing to array is threadsafe and some other functinonality as well and it is recommended to use a new class instance within each async function. I have relied heavily on using webviews for UI so there is a layout engine i have developed for native view elements in Cocoa which at this point ar primarily WebViews. The webviews can define a callback function to receive messages from JavaScript, so combining these methods you get a full fledged "web" development feeling for mac development, with HTML+CSS+JavaScript and NoobScript
0
0
360
Jul ’25
WWDC26 beta cellular issues
So recently, last week, ive updated to the Dev Beta of ios 26. This began the very issue of my cellular data. I woke up to a warning symbol where my cellular bars should be, telling me there was something wrong with my antenna or carrier when in reality there was no problem with any of those problems and took up about 53% of my storage. This is absolutely insane and unacceptable.
0
0
121
Jun ’25
How to change keyboard type ISO to ANSI
before this post I posted this question in Apple Support Community. I do not know this is about some part of beta. but I need to know have some way to change them in beta. My Macbook internal keyboard is ANSI Layout but in Keyboard setting input sources with beta is show the ISO layout. so I need to type `(backtick) but it show "§" instead. how to change keyboard type ISO to ANSI ?
0
0
330
Jul ’25
Developer Account Issue?
Is it normal to wait a month and a half with no resolution to an account issue? I paid for a membership years ago and never used it. Recently, I've wanted to get a developer account again but there is a problem when I try to Enroll. It tells me "You cannot enroll at this time". I created a support ticket and have been checking in every couple weeks. They just keep saying they haven't heard anything. The lack of support is dissappointing.
0
0
193
Jul ’25
Selling your first app
How long was it between putting your first app on the App Store (that had a paid component to it like IAPs) and getting your first sale? I'm working on an app at the moment that I plan on putting up for a small one time fee. I'm curious to know what people's different experiences were with this. What was your app and how did it go?
0
0
78
Jun ’25
Broadcast Extension sound is not received after another app uses the mic on iOS
Hello all, I have an application that uses broadcast extension of Replay kit to record the entire screen and mic sound to a file on iOS. Up until some months ago, everything was smooth. Currently I am facing the following issue. If another app uses the microphone, then I loose the sound and never comes back. In order to debug this issue I have added a log to the processSampleBuffer, that logs a text each time it receives a .audioMic buffer type. I start the recording and everything works as expected. Later on, I go onto an app that uses microphone, and then I do not get any log for audioMic. I stop the recording on that app, but the sound never comes back. This as a result makes my video file to not have any sound at all. In the above context I also noticed that even with Photos app broadcast extension, if you start recording a video, and you go to Speech to text feature of the keyboard, then the sound is joined. While the STT is on, there is no sound and the sound of whatever comes after STT stops is joined to the sound before the STT starts, so I guess that this is something general. Also on the same research I did, I saw that google Meet app does not allow any microphone to be used from another app while you are in a meet (Even the STT is grayed out). I would like to know my options here. What can I do to have a valid video file with sound? How can I not allow other apps to use the microphone while my app is recording? Is there any entitlement? How does Google Meet do that? P.S. I have added an observer to observe the interruptions for the session and the type .began runs, but the type .ended does not, so I can not actually set the AVAudioSession to active again.
0
0
256
Jul ’25
iOS 26 Public Beta Duplicate Contacts
I'm not sure at which beta it happened, but somewhere during the iOS 26 Public Beta releases, my iCloud Contacts have duplicated close to 100 times each. When I scroll to the bottom of the list to try and manage duplicates, it indicates I only have 2 duplicates. I should be sitting around 350 contacts and instead, I now have over 10k. Anyone else with this issue? I have filed Feedback in the app. I'm not certain if it was related to iOS 26 or iPadOS 26 as I have both, but noticed it first on my iPhone. I confirmed that the issue has affected my iCloud Contacts and therefore all of my Apple devices included older iOS and MacOS versions. Short of manually deleting all the duplicates, I'm at a loss as to how I can correct his.
0
0
221
Sep ’25
Custom Keyboard help
import UIKit class KeyboardViewController: UIInputViewController { // MARK: - Properties private var keyboardView: KeyboardView! private var heightConstraint: NSLayoutConstraint! private var hasInitialLayout = false // 存储系统键盘高度和动画参数 private var systemKeyboardHeight: CGFloat = 300 private var keyboardAnimationDuration: Double = 0.25 private var keyboardAnimationCurve: UIView.AnimationOptions = .curveEaseInOut // MARK: - Lifecycle override func viewDidLoad() { super.viewDidLoad() setupKeyboard() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // 在视图显示前更新键盘高度,避免闪动 if !hasInitialLayout { hasInitialLayout = true } } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) } // MARK: - Setup private func setupKeyboard() { // 创建键盘视图 keyboardView = KeyboardView() keyboardView.translatesAutoresizingMaskIntoConstraints = false view.addSubview(keyboardView) // 设置约束 - 确保键盘贴紧屏幕底部 NSLayoutConstraint.activate([ keyboardView.leftAnchor.constraint(equalTo: view.leftAnchor), keyboardView.rightAnchor.constraint(equalTo: view.rightAnchor), keyboardView.bottomAnchor.constraint(equalTo: view.bottomAnchor) ]) // 设置初始高度约束(使用系统键盘高度或默认值) let initialHeight = systemKeyboardHeight heightConstraint = keyboardView.heightAnchor.constraint(equalToConstant: initialHeight) heightConstraint.isActive = true } // MARK: - Layout Events override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() } override func viewSafeAreaInsetsDidChange() { super.viewSafeAreaInsetsDidChange() } // MARK: - 键盘高度请求 // 这个方法可以确保键盘扩展报告正确的高度给系统 override func updateViewConstraints() { super.updateViewConstraints() // 确保我们的高度约束是最新的 if heightConstraint == nil { let height = systemKeyboardHeight > 0 ? systemKeyboardHeight : 216 heightConstraint = NSLayoutConstraint( item: self.view!, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 0.0, constant: height ) heightConstraint.priority = UILayoutPriority(999) view.addConstraint(heightConstraint) } else { let height = systemKeyboardHeight > 0 ? systemKeyboardHeight : 216 heightConstraint.constant = height } } } // MARK: - Keyboard View Implementation class KeyboardView: UIView { private var keysContainer: UIStackView! override init(frame: CGRect) { super.init(frame: frame) setupView() } required init?(coder: NSCoder) { super.init(coder: coder) setupView() } private func setupView() { backgroundColor = UIColor(red: 0.82, green: 0.84, blue: 0.86, alpha: 1.0) // 创建按键容器 keysContainer = UIStackView() keysContainer.axis = .vertical keysContainer.distribution = .fillEqually keysContainer.spacing = 8 keysContainer.translatesAutoresizingMaskIntoConstraints = false addSubview(keysContainer) // 添加约束 - 确保内容在安全区域内 NSLayoutConstraint.activate([ keysContainer.topAnchor.constraint(equalTo: safeAreaLayoutGuide.topAnchor, constant: 8), keysContainer.leftAnchor.constraint(equalTo: safeAreaLayoutGuide.leftAnchor, constant: 8), keysContainer.rightAnchor.constraint(equalTo: safeAreaLayoutGuide.rightAnchor, constant: -8), keysContainer.bottomAnchor.constraint(equalTo: safeAreaLayoutGuide.bottomAnchor, constant: -8) ]) // 添加键盘行 } }
0
0
225
Sep ’25
Photo album videos and sound issues
Is anyone aware of a issue with the videos of you replaying a video you took then swip up the sound is still being played when you open another video it doubles to the first video if you open a third video and so on it just keeps adding the sound of all the other videos you open and swip up to change to a different video all videos sound is being played and doubled over The videos o was hoping they would be a fix on iOS 26 beta 4 but so far nothing has fixed the issue. You have to close the entire photo library and swip up to force close the phot video gallery for the recording sounds playing to stop??
0
0
321
Jul ’25
ios18.6 Bug (Hotspot login)
Recently have updated one phone to the new 18.6 public beta and now I cant log into my Cox hotspot. It pops up asking for username/password as always, but when you click either of them to type it in it closes the window. Tested my second phone that wasnt updated and works just fine. Updated it to the new 18.6 and now the same thing happens
0
0
204
Jul ’25
Personal Voice fails to complete
I have an iPhone 14 running iOS 26 Beta 2 that I wanted to start using Personal Voice on. It allowed me to complete the recordings and start the process, however even with the phone charging and locked the process hangs. It is connected to WiFi and cellular while attempting to run. It is connected to a 20W apple charger with an offical cable. I have a sneaking feeling it's related to me running the iOS beta on this device. I've provided some info below. iOS 26 Beta 2 iPhone 14 128gb Model MPUF3ZD/A No SIM restrictions
0
0
52
Jun ’25
CarPlay Turn-By-Turn Entitlements
Hello Devs, I wanted to bring this up to display the frustration that I have obtaining the CarPlay entitlements. First and foremost they don't give you a set timeline and there is no contact number to speak to someone about this. When you call developer support they go on and say it is a different department. There is an email but all I have received is an automated response back to me. Has anyone received the navigation entitlements and if so what was the timeline of you receiving it?
0
0
143
Jun ’25
How to Properly Integrate Google IMA SDK for Pre-roll, Mid-roll, and Post-roll Ads in a tvOS App using TVJS and Swift?
I'm working on a tvOS application that plays video content using TVMLKit/TVJS. I'm trying to integrate Google IMA SDK to show pre-roll, mid-roll, and post-roll ads in my app. Here’s what I’ve done so far: Video playback is handled through JavaScript in application.js. Ads are managed in Swift using Google IMA SDK. I use the evaluateJavaScript bridge to control video playback from Swift. I pause and resume the TVJS player (Player object) using a function like startPlayingVideo(value) from Swift based on the ad lifecycle. Current Flow: When the video is about to start, I call loadAds() from JS. This presents a Swift ViewController that handles IMA ad requests. On adsManagerDidRequestContentPause, I pause the video using JS via the bridge. On adsManagerDidRequestContentResume, I resume the video. The Issue: This setup doesn't behave consistently: Sometimes the ad plays in the background and video started playing as well but can not see the ad. Not able to see the post-roll ads Relevant Code Snippets: application.js function startPlayingVideo(value) { if (playerReference != undefined) { if (value == true) { playerReference.play(); else { playerReference.pause(); } } } function playVideo(videoURL) { setup playerReference, push mediaItem, etc. loadAds(); player.present(); } AppDelegate.swift let loadAds: @convention(block) () -\> Void = { DispatchQueue.main.async { let adManagerVC = ViewController() AppDelegate.tvController?.navigationController.present(adManagerVC, animated: true) } } let updateVideoPlayTime: @convention(block) (Double) -\> Void = { time in CustomContentPlayhead.shared.currentTime = TimeInterval(time) } ViewController.swift func adsManagerDidRequestContentPause(\_ adsManager: IMAAdsManager) { showAdUI() playerViewController.player?.pause() } func adsManagerDidRequestContentResume(\_ adsManager: IMAAdsManager) { hideAdUI() // Expecting JS video to resume via bridge } And yeah my IMSDK Implementation is working fine if I am using it with swift AVPlayer. What I Need Help With: Best practice for coordinating video playback between JS (Player) and Swift (IMAAdsManager). How can I sync the playhead reliably between JS and Swift? Is there a better way to pause/resume TVJS player from Swift during ad lifecycle? How to reliably insert mid-roll ads when the playback is primarily controlled in JS? Any insights, code examples, or recommended architecture improvements would be greatly appreciated!
Replies
0
Boosts
0
Views
145
Activity
Jun ’25
Navigation
I am having trouble passing custom data in an array with a navigation stack. I want to display a subview with the same data structure (title, headline, picture placement etc), with different data attached for each of my list view items
Replies
0
Boosts
0
Views
66
Activity
Apr ’25
iPhone13pro max 美版A2484 iOS 26.0 (23A5276f)
触控按钮里面的截屏功能无法使用。按键组合截屏可以是正常使用。
Replies
0
Boosts
0
Views
63
Activity
Jun ’25
Health-AI Learning Pathway for Beginner
Hey, my name is Kenari Curry and I am an aspiring developer who is currently a readmitted senior in college. I major in Exercise Science and want to take those skills merge it with Data Science to develop Health-AI applications that improve the Fitness of athletes (sports & tactical) and clinical patients. I have no experience in programming or data science So I am wondering if I can meet with an expert on how to approach my goal.
Replies
0
Boosts
0
Views
633
Activity
Aug ’25
iOS26 Wi-FI Aware Sample Fails to Retrieve Paired Devices
Device: iPhone 15 Pro Max | iPhone 16 Pro iOS Version: iOS26.0(23A5287g) Xcode Version:26.0 beta 3 (17A5276g) Sample Code: Wi-Fi Aware Sample https://aninterestingwebsite.com/documentation/WiFiAware/Building-peer-to-peer-apps I tried using the official sample code to verify the Wi-Fi Aware functionality between two iPhones. During testing, the devices successfully paired — I can see each other’s devices under Settings > Privacy & Security > Paired Devices. However, in the Wi-FIAwareSample app, neither the Host nor the Viewer can retrieve the paired devices. I’m not sure what’s causing this issue. Any insights? do { for try await updatedDeviceList in WAPairedDevice.allDevices { // always 0 key/value pairedDevices = Array(updatedDeviceList.values) } } catch { logger.error("Failed to get paired devices: \(error)") }
Replies
0
Boosts
0
Views
480
Activity
Jul ’25
NoobScript : a new (php-esq) programming language for mac/iOS etc development
Noob Software has been working on a new programming language designed primarily for mac development, with a syntax similar to PHP and some aspects from JavaScript. To demonstrate this language i've released the code for one of my apps "Noob Music" https://github.com/noobsoftware/NoobMusic3 i would like to hear if people are interested in using this programming language. I think there are many benefits to the high level syntax and high level thinking, and not having to define datatypes and such. The language also supports multithreading using the "async" keyword prefixed in front of the function keyword, like you would do in JavaScript only with multithreading instead of interleaved processing. Pushing to array is threadsafe and some other functinonality as well and it is recommended to use a new class instance within each async function. I have relied heavily on using webviews for UI so there is a layout engine i have developed for native view elements in Cocoa which at this point ar primarily WebViews. The webviews can define a callback function to receive messages from JavaScript, so combining these methods you get a full fledged "web" development feeling for mac development, with HTML+CSS+JavaScript and NoobScript
Replies
0
Boosts
0
Views
360
Activity
Jul ’25
WWDC26 beta cellular issues
So recently, last week, ive updated to the Dev Beta of ios 26. This began the very issue of my cellular data. I woke up to a warning symbol where my cellular bars should be, telling me there was something wrong with my antenna or carrier when in reality there was no problem with any of those problems and took up about 53% of my storage. This is absolutely insane and unacceptable.
Replies
0
Boosts
0
Views
121
Activity
Jun ’25
How to change keyboard type ISO to ANSI
before this post I posted this question in Apple Support Community. I do not know this is about some part of beta. but I need to know have some way to change them in beta. My Macbook internal keyboard is ANSI Layout but in Keyboard setting input sources with beta is show the ISO layout. so I need to type `(backtick) but it show "§" instead. how to change keyboard type ISO to ANSI ?
Replies
0
Boosts
0
Views
330
Activity
Jul ’25
Developer Account Issue?
Is it normal to wait a month and a half with no resolution to an account issue? I paid for a membership years ago and never used it. Recently, I've wanted to get a developer account again but there is a problem when I try to Enroll. It tells me "You cannot enroll at this time". I created a support ticket and have been checking in every couple weeks. They just keep saying they haven't heard anything. The lack of support is dissappointing.
Replies
0
Boosts
0
Views
193
Activity
Jul ’25
How to ssh to mac
I use other computer ssh to the mac, but return connection reset. I can't solve this problem.
Replies
0
Boosts
0
Views
348
Activity
Jul ’25
Selling your first app
How long was it between putting your first app on the App Store (that had a paid component to it like IAPs) and getting your first sale? I'm working on an app at the moment that I plan on putting up for a small one time fee. I'm curious to know what people's different experiences were with this. What was your app and how did it go?
Replies
0
Boosts
0
Views
78
Activity
Jun ’25
Broadcast Extension sound is not received after another app uses the mic on iOS
Hello all, I have an application that uses broadcast extension of Replay kit to record the entire screen and mic sound to a file on iOS. Up until some months ago, everything was smooth. Currently I am facing the following issue. If another app uses the microphone, then I loose the sound and never comes back. In order to debug this issue I have added a log to the processSampleBuffer, that logs a text each time it receives a .audioMic buffer type. I start the recording and everything works as expected. Later on, I go onto an app that uses microphone, and then I do not get any log for audioMic. I stop the recording on that app, but the sound never comes back. This as a result makes my video file to not have any sound at all. In the above context I also noticed that even with Photos app broadcast extension, if you start recording a video, and you go to Speech to text feature of the keyboard, then the sound is joined. While the STT is on, there is no sound and the sound of whatever comes after STT stops is joined to the sound before the STT starts, so I guess that this is something general. Also on the same research I did, I saw that google Meet app does not allow any microphone to be used from another app while you are in a meet (Even the STT is grayed out). I would like to know my options here. What can I do to have a valid video file with sound? How can I not allow other apps to use the microphone while my app is recording? Is there any entitlement? How does Google Meet do that? P.S. I have added an observer to observe the interruptions for the session and the type .began runs, but the type .ended does not, so I can not actually set the AVAudioSession to active again.
Replies
0
Boosts
0
Views
256
Activity
Jul ’25
iOS 26 Public Beta Duplicate Contacts
I'm not sure at which beta it happened, but somewhere during the iOS 26 Public Beta releases, my iCloud Contacts have duplicated close to 100 times each. When I scroll to the bottom of the list to try and manage duplicates, it indicates I only have 2 duplicates. I should be sitting around 350 contacts and instead, I now have over 10k. Anyone else with this issue? I have filed Feedback in the app. I'm not certain if it was related to iOS 26 or iPadOS 26 as I have both, but noticed it first on my iPhone. I confirmed that the issue has affected my iCloud Contacts and therefore all of my Apple devices included older iOS and MacOS versions. Short of manually deleting all the duplicates, I'm at a loss as to how I can correct his.
Replies
0
Boosts
0
Views
221
Activity
Sep ’25
Custom Keyboard help
import UIKit class KeyboardViewController: UIInputViewController { // MARK: - Properties private var keyboardView: KeyboardView! private var heightConstraint: NSLayoutConstraint! private var hasInitialLayout = false // 存储系统键盘高度和动画参数 private var systemKeyboardHeight: CGFloat = 300 private var keyboardAnimationDuration: Double = 0.25 private var keyboardAnimationCurve: UIView.AnimationOptions = .curveEaseInOut // MARK: - Lifecycle override func viewDidLoad() { super.viewDidLoad() setupKeyboard() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // 在视图显示前更新键盘高度,避免闪动 if !hasInitialLayout { hasInitialLayout = true } } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) } // MARK: - Setup private func setupKeyboard() { // 创建键盘视图 keyboardView = KeyboardView() keyboardView.translatesAutoresizingMaskIntoConstraints = false view.addSubview(keyboardView) // 设置约束 - 确保键盘贴紧屏幕底部 NSLayoutConstraint.activate([ keyboardView.leftAnchor.constraint(equalTo: view.leftAnchor), keyboardView.rightAnchor.constraint(equalTo: view.rightAnchor), keyboardView.bottomAnchor.constraint(equalTo: view.bottomAnchor) ]) // 设置初始高度约束(使用系统键盘高度或默认值) let initialHeight = systemKeyboardHeight heightConstraint = keyboardView.heightAnchor.constraint(equalToConstant: initialHeight) heightConstraint.isActive = true } // MARK: - Layout Events override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() } override func viewSafeAreaInsetsDidChange() { super.viewSafeAreaInsetsDidChange() } // MARK: - 键盘高度请求 // 这个方法可以确保键盘扩展报告正确的高度给系统 override func updateViewConstraints() { super.updateViewConstraints() // 确保我们的高度约束是最新的 if heightConstraint == nil { let height = systemKeyboardHeight > 0 ? systemKeyboardHeight : 216 heightConstraint = NSLayoutConstraint( item: self.view!, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 0.0, constant: height ) heightConstraint.priority = UILayoutPriority(999) view.addConstraint(heightConstraint) } else { let height = systemKeyboardHeight > 0 ? systemKeyboardHeight : 216 heightConstraint.constant = height } } } // MARK: - Keyboard View Implementation class KeyboardView: UIView { private var keysContainer: UIStackView! override init(frame: CGRect) { super.init(frame: frame) setupView() } required init?(coder: NSCoder) { super.init(coder: coder) setupView() } private func setupView() { backgroundColor = UIColor(red: 0.82, green: 0.84, blue: 0.86, alpha: 1.0) // 创建按键容器 keysContainer = UIStackView() keysContainer.axis = .vertical keysContainer.distribution = .fillEqually keysContainer.spacing = 8 keysContainer.translatesAutoresizingMaskIntoConstraints = false addSubview(keysContainer) // 添加约束 - 确保内容在安全区域内 NSLayoutConstraint.activate([ keysContainer.topAnchor.constraint(equalTo: safeAreaLayoutGuide.topAnchor, constant: 8), keysContainer.leftAnchor.constraint(equalTo: safeAreaLayoutGuide.leftAnchor, constant: 8), keysContainer.rightAnchor.constraint(equalTo: safeAreaLayoutGuide.rightAnchor, constant: -8), keysContainer.bottomAnchor.constraint(equalTo: safeAreaLayoutGuide.bottomAnchor, constant: -8) ]) // 添加键盘行 } }
Replies
0
Boosts
0
Views
225
Activity
Sep ’25
Photo album videos and sound issues
Is anyone aware of a issue with the videos of you replaying a video you took then swip up the sound is still being played when you open another video it doubles to the first video if you open a third video and so on it just keeps adding the sound of all the other videos you open and swip up to change to a different video all videos sound is being played and doubled over The videos o was hoping they would be a fix on iOS 26 beta 4 but so far nothing has fixed the issue. You have to close the entire photo library and swip up to force close the phot video gallery for the recording sounds playing to stop??
Replies
0
Boosts
0
Views
321
Activity
Jul ’25
ios18.6 Bug (Hotspot login)
Recently have updated one phone to the new 18.6 public beta and now I cant log into my Cox hotspot. It pops up asking for username/password as always, but when you click either of them to type it in it closes the window. Tested my second phone that wasnt updated and works just fine. Updated it to the new 18.6 and now the same thing happens
Replies
0
Boosts
0
Views
204
Activity
Jul ’25
Ios26 problem: back camera can’t use in all app
I was update my phone 12 promax to ios 26 and the back camera can’t use anymore
Replies
0
Boosts
0
Views
90
Activity
Jul ’25
Personal Voice fails to complete
I have an iPhone 14 running iOS 26 Beta 2 that I wanted to start using Personal Voice on. It allowed me to complete the recordings and start the process, however even with the phone charging and locked the process hangs. It is connected to WiFi and cellular while attempting to run. It is connected to a 20W apple charger with an offical cable. I have a sneaking feeling it's related to me running the iOS beta on this device. I've provided some info below. iOS 26 Beta 2 iPhone 14 128gb Model MPUF3ZD/A No SIM restrictions
Replies
0
Boosts
0
Views
52
Activity
Jun ’25
tvOS 26 removes ability to restrict apps with passcode
Please make sure this feature gets placed back. Parents need a way to provide the ability for kids to watch and not watch at their discretion. The new system doesn’t allow this to happen. Are there any workarounds?
Replies
0
Boosts
0
Views
80
Activity
Jun ’25
CarPlay Turn-By-Turn Entitlements
Hello Devs, I wanted to bring this up to display the frustration that I have obtaining the CarPlay entitlements. First and foremost they don't give you a set timeline and there is no contact number to speak to someone about this. When you call developer support they go on and say it is a different department. There is an email but all I have received is an automated response back to me. Has anyone received the navigation entitlements and if so what was the timeline of you receiving it?
Replies
0
Boosts
0
Views
143
Activity
Jun ’25