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)
])
// 添加键盘行
}
}
This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and join us in fostering a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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.
Topic:
Community
SubTopic:
Apple Developers
When i open the gmail and there is attachment (43kb) pdf file, and i want to send that via WhatsApp busness so I open the pdf and sent via WhatsApp. When i open and serch the contact, that time keyboard typing is very laggy, this was not happend in ioS18.
Since i have updated my 16 pro max to ios 26, i cannot change my apple account's photo. I have made some attempts without success. any ideas? thanks
Topic:
Community
SubTopic:
Apple Developers
📢 Complaint: Severe “System Data” ballooning bug on iPad Pro M4 (iPadOS 17 → 18.6.2).
“System Data” (formerly “Other”) grows abnormally from ~3 GB → 70–90 GB in just months.
Deleting files, exporting PDFs, uninstalling apps, or clearing trash does not free space.
The only “fix” Apple Support suggests is erase & restore — which works temporarily but always comes back within 1–3 months.
🔎 Problem Summary
• Growth: 3 GB → 40 GB (1 month) → 58 GB (2 months) → 70 GB+ (3 months).
• After erase: drops temporarily, then climbs again.
• Multiple resets done — issue always returns.
• Confirmed across users (see YouTube: ajXyDCLoLOA, cnOGeI8X-Fc).
• Apple Support Case IDs filed (master: 102671138516).
• Feedback Assistant report: FB19812484.
📝 Steps to Reproduce (consistent)
1. GoodNotes – Export/merge PDFs, sync large files → System Data grows even after clearing trash.
2. DocScanner (Lufick) – Import + delete scans → cache remains.
3. Apple Scan to PDF / Files – Scan 24 images, merge, delete originals → System Data increases 2–3× file size.
4. External drives (NTFS/exFAT) – Just plugging in causes spikes.
5. Photos Recycle Bin bug – Deleting files increases System Data.
⚠️ Impact
• iPad becomes unusable every few months as storage fills.
• GoodNotes syncs (30GB+) require full reinstall → takes >1 day.
• Device has even frozen on Apple logo (Case: 102456432522).
• Breaks productivity workflows: scanning, exporting, file transfers all trigger ballooning.
❌ Apple’s Responses So Far
• Force restart → no effect.
• Uninstall/reinstall apps → cache remains.
• Format → temporary relief only.
• “Stop using pen drive” → not a solution.
• “Keep reporting” → no updates received.
Translation: Apple provides no real tool to manage System Data. Users are stuck in endless erase/restore cycles.
🎯 Request to Apple
1. Add “Clear System Data / Clear Cache” option in Settings.
2. Fix caching bugs in GoodNotes, DocScanner, Scan to PDF, and Files.
3. Ensure deleted files + app data are actually purged.
4. Provide transparency: show what System Data contains (caches, logs, orphaned DBs).
5. Improve external storage handling — plugging in drives should not balloon space.
📌 Final Note
This is not expected behavior. It’s a design flaw in iPadOS storage management.
On macOS, users have visibility into caches and cleanup tools. On iPadOS, everything is hidden.
Without proper cache controls, iPad Pro cannot be a reliable “Pro” device — only one that forces constant resets.
https://drive.google.com/file/d/1ACT4OtMrFQYciiJg6N4ENriMbnvAcNgc/view?usp=drivesdk
Hi,
How to post to App & System Services -> Wallet ?
I'm getting "This post contains sensitive language. Please revise it in order to continue" blockage every time I try to submit.
Thanks.
Hallo habt ihr das Probleme auch ?
meine Apple Watch zeit glaub seit der 3 oder 4 beta keine VVR ticket mehr an in der wallet app Kreditkarten oder Ikea karte alles da nur keine vor karten mehr was vorher ging!
habt ihr einen tipp ??
lg
Cris
The last "App Store Connect: App Analytics Weekly Summary" email I received was June 3. My apps are still up and the emails are not going to spam. In my Apple Developer settings, "App Analytics Weekly Email Summary" is still set to on (i.e. "Receive a weekly email."). Coincidentally, on June 9 I received an email about updated agreements and guidelines, which I hadn't logged in to accept until today. Is this related, and if so, why should it be? If something else is causing the missing emails, how can that be resolved?
Topic:
Community
SubTopic:
Apple Developers
Through IOS 26 public beta 5, the “use as ringtone” option will freeze the Music app, which must be closed and restarted. Is this capability supposed to apply to songs in Apple Music or only for MP3 WMA music files in the files app? If it is only applicable to music files and not Apple Music, then it should not appear as an option in the share menu of an apple song. I have a 15 pro.
Topic:
Community
SubTopic:
Apple Developers
I've raised a support case with Apple. Is it possible to find my support case within the developer.apple.com website?
Topic:
Community
SubTopic:
Apple Developers
I have an Apple Watch Series 6 (Model: M00H3LL/A) that was working perfectly before I updated it to watchOS 26.0 beta on 21st August 2024. The update process completed smoothly while the watch was on the charger, but immediately after the update the display became extremely dim.
It’s not completely black, but so faint that it’s very difficult to see. I’ve already tried setting the brightness to maximum and also enabled maximum brightness under Accessibility settings, but the issue remains. I also tried force restarting the watch (holding the Digital Crown and side button together), but that did not resolve the issue.
I know this is not a hardware issue, since the problem appeared immediately after the update, and at times the display briefly returns to normal brightness for just a few milliseconds (like a flicker).
My current watchOS version is 26.0 (23R5350a). Could you please advise on how I can fix this, or confirm if this is a known issue with the beta version?
Thank you.
Topic:
Community
SubTopic:
Apple Developers
i am having problems done everything 18.5 connects but when i connect ios 26 it pick phone up but does nothing
never had this problem before on any other beta
Topic:
Community
SubTopic:
Apple Developers
Hello :-)
I‘m not entirely sure, if I‘m on the correct Place here. But I would like to report some Bugs with tvOS 26 (Beta 6) to the Apple Engineers!
Description
I am reporting multiple persistent UI animation issues observed in tvOS 26 (Beta 3). These issues have been reproducible across multiple tvOS releases. They are subtle but noticeable, and they affect the overall polish and perceived quality of the system.
I am happy to provide high-quality video captures for each of the issues described below.
⸻
Bug #1: App launch animation stutter/jump
Summary: The zoom-in animation from a Springboard icon to full-screen app stutters or jumps at the moment the app becomes full screen.
Steps to reproduce:
1. On Springboard, select any app icon.
2. Observe the zoom-in animation.
Expected result: Smooth, continuous zoom without frame drops or jumps.
Actual result: Animation visibly stutters/jumps at the full-screen transition.
Possible cause: Timing issue in Core Animation interpolation or abrupt view hierarchy switch.
⸻
Bug #2: Text rendering weight change (“jump”) during transitions
Summary: Text inside apps changes visual weight mid-transition from scaled preview to full screen.
Steps to reproduce:
1. From Springboard or App Switcher, launch an app with visible text.
2. Observe text during the zoom animation — initially slightly bolder, then thinner once full screen.
Also occurs in:
• Top Shelf banners in the Dock
• App Switcher → full-screen transitions
Expected result: Consistent text rendering throughout the transition.
Actual result: Visible “pop” in text weight/anti-aliasing during transition.
Possible cause: Different rasterization/anti-aliasing mode between preview snapshot (CALayer.contents) and live CoreText/UIKit rendering.
⸻
Bug #3: Focus shadow jumps instead of interpolating smoothly
Summary: Shadows around focused UI elements (icons, buttons) change abruptly during focus transitions.
Steps to reproduce:
1. Navigate between focusable UI elements on Springboard or in apps.
2. Observe the shadow effects.
Expected result: Shadows interpolate smoothly (offset, opacity, radius) during focus transitions.
Actual result: Shadows “jump” abruptly, breaking animation smoothness.
Possible cause: UIFocusEngine not interpolating shadow parameters consistently.
⸻
Bug #4: Abrupt jumps when swiping horizontally between content items
Summary: In horizontally scrollable poster/content rows, focus snaps abruptly instead of scrolling smoothly.
Steps to reproduce:
1. In the TV app or any app with horizontal poster rows, swipe left/right.
2. Observe the transition between focused items.
Expected result: Smooth horizontal navigation with continuous motion.
Actual result: Occasional abrupt snapping/jumping between items.
⸻
Impact
While none of these bugs block core functionality, they degrade the premium feel and visual polish of tvOS. They are persistent across releases and occur in core system UI, so they are visible to all users.
Note
I can provide video recordings for each bug to assist engineering in reproducing and analyzing the issues.
Topic:
Community
SubTopic:
Apple Developers
Hello, I switched to public version of iOS 26 few days ago, not because Im curios about new design and new look, the only and main reason was just to see if you fixed the most annoying problem that iPhone ever had, and yet you still did not fix it, which is sad, actually very sad! Since iOS 18 was released and iPhon 16 versions were released iOS on these phone was working worse then android phone that costs 200€ And its all caused because you tried to make some kind of intelligent refresh rate which makes no sense at all. You have 120hz panel and its not used in iOS at all, only when gaming and screen recording.Very sad. That kind of uselss intelligence is making phone very laggy and jittery in most of scrolling scenarios, 3rd party apps and apple apps as well. Im begging you, can you just let people choose to have it on auto or locked 120hz or locked 60hz, because using your lastest flagship is totally offending compared to how much it costs and how much it laggs. I know its lagg because of hardware problem, because when I switch to locked framerate laggs and jittery scrolling is gone. But I did not buy pro max version to be on 60hz. This problem exists for a long time and noone in apple is talking about it. Please can you fix it or give us a option to keep the screen at locked 120hz!
Topic:
Community
SubTopic:
Apple Developers
103889889@qq
Topic:
Community
SubTopic:
Apple Developers
I was trying to watch hulu while on facetime and saw theres no way to change the screenshare/shareplay automatically like you can set it to on the other ios and not automatically shareplay hulu on ios 26 beta unless i just didnt see it.
Since adding the ios26 beta, I can no longer connect to iMessage using my phone number. It connects using email addresses but, when trying to connect to my phone number, it just gives me the buffering signal and never connects.
I am on Beta 4 and still no joy.
Help! I have become a green bubbler!!
Topic:
Community
SubTopic:
Apple Developers
Almost everytime, when I try to search apps in App library, the icons go invisible, o are showed for and instant to quickly go invisible.
After recently updating my MacBook Pro (14-inch, 2021, M1 Pro) to macOS Sequoia (15.6), my docking station sporadically disconnects and reconnects about once every 1-5 minutes. This causes my external screens to switch off for about a second, and my external drive to disconnect.
This has (obviously) completely broken my workflow, and I've had to resort to connecting two screens directly to the MacBook. I've had to completely disconnect the external drive for fear of corrupting due to the sudden disconnects.
I've seen other people report the same or similar issues here, and other places. I've tried all kinds of fixes suggested on various forums (reinstalled drivers, cleared preference files, etc.) without any luck.
To be frank, this is a completely unacceptable bug that needs to be fixed ASAP. I cannot accept that installing an os update completely breaks something as fundamental as connecting to external devices via a docker. Especially when this worked completely fine on macOS 13, and I was essentially forced to update because the (working) macOS 13 was no longer supported.
How to set speed > 2.0 for HLS video with AVPlayer?
I’m having an issue where the video has no sound when I change the speed to 2.1x or higher
Topic:
Community
SubTopic:
Apple Developers