UIKit
Resolved in iOS & iPadOS 15 beta 7
- Collapsing the hardware keyboard shortcut bar now properly invokes leading and trailing edge changes for UIKeyboardLayoutGuide. (74440016)
折疊硬件鍵盤快捷欄現在正確調用前邊和后邊的UIKeyboardLayoutGuide變化。
Resolved in iOS & iPadOS 15 beta 2
Fixed UIKit text views such as UITextView and UILabel to correctly render text styles (bold, italic, code, and strikethrough) when rendering Markdown. (74107883)
固定UIKit文本視圖,如UITextView和UILabel正確渲染文本樣式(粗體,斜體,代碼,和刪除線)時,呈現Markdown。
Fixed the availability of UISheetPresentationController property on UIViewController. (77943286)
修正了UIViewController上UISheetPresentationController屬性的可用性。
New Features in iOS & iPadOS 15 beta
- For apps compiled against the iOS 15 beta SDK, key commands no longer intercept text input and text editing commands while typing into text views and text fields. For example, pressing the Delete key always deletes a character and doesn’t trigger a Delete key command if one is present. To have a key command intercept text input, set the wantsPriorityOverSystemBehavior property to true on the key command. This is also required to have key commands take priority over focus keyboard navigation commands, such as arrow and tab key presses. (55118263)
針對iOS 15 beta SDK編譯的應用程序,關鍵命令不再攔截文本輸入和文本編輯命令,而輸入文本視圖和文本字段。例如,按下Delete鍵總是刪除一個字符,並且不會觸發Delete鍵命令(如果存在的話)。要獲得密鑰命令攔截文本輸入,在密鑰命令上設置wantsPriorityOverSystemBehavior屬性為true。這也要求按鍵命令優先於焦點鍵盤導航命令,如箭頭和tab鍵按下。 - In iOS 14 and iPadOS 14 and earlier, when autocorrectionType is set to UITextAutocorrectionTypeNo, the QuickType bar is disabled. For apps linked against iOS 15 and iPadOS 15 or later, the QuickType bar is enabled, and shows spellchecking candidates. If the new behavior isn’t desirable for your use case, set spellCheckingType to UITextSpellCheckingTypeNo to hide the QuickType bar. (68874861)
在iOS 14和iPadOS 14及以前版本中,當“autocorrectionType”設置為“UITextAutocorrectionTypeNo”時,QuickType欄被禁用。對於iOS 15和iPadOS 15或更高版本的應用程序,QuickType欄是啟用的,並顯示拼寫檢查候選。如果新的行為不適合你的用例,將spellCheckingType設置為UITextSpellCheckingTypeNo以隱藏QuickType欄。 - When compiling with the iOS 15 beta SDK, several key window related properties, methods, and notifications change behavior:
當使用iOS 15 beta SDK編譯時,幾個關鍵窗口相關的屬性、方法和通知改變行為:
- isKeyWindow returns true if the window is key in its scene instead of the app.
isKeyWindow返回true如果窗口在它的場景中是關鍵而不是應用程序。 - becomeKeyWindow is called when the window becomes key in its scene instead of the app.
當窗口成為場景中的關鍵而不是應用程序時,調用becomeKeyWindow。 - didBecomeKeyNotification posts when the window becomes key in its scene instead of the app.
當窗口在它的場景中成為關鍵而不是應用程序時,didBecomeKeyNotification發布 - resignKeyWindow is called when the window resigns key window status in its scene instead of the app.
當窗口退出場景中的關鍵窗口狀態而不是應用程序時調用resignKeyWindow。 - didResignKeyNotification posts when the window resigns key window status in its scene instead of the app. (72873846)
當窗口在其場景中退出關鍵窗口狀態而不是應用程序時,didResignKeyNotification將發布。
AVFoundation
Deprecations
- supportedPhotoPixelFormatTypes(for:) and supportedRawPhotoPixelFormatTypes(for:) now return [OSType] instead of [NSNumber] in Swift. (64822071)
supportedPhotoPixelFormatTypes(for:)和supportedRawPhotoPixelFormatTypes(for:)現在在Swift中返回[OSType]而不是[NSNumber]。 - recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:) now returns nullable NSDictionary<NSString *, id> * instead of nullable NSDictionary * in Objective-C and [String: Any]? instead of [AnyHashable: Any]? in Swift. (33784279)
recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:)現在返回null NSDictionary<NSString *, id> *而不是null NSDictionary *在Objective-C和[String: Any]?而不是[AnyHashable: Any]?在斯威夫特。 - cgImageRepresentation() and previewCGImageRepresentation() now return CGImage? instead of Unmanaged
? in Swift. (44734827)
cgImageRepresentation()和previewCGImageRepresentation()現在返回CGImage?而非托管< CGImage > ?在斯威夫特。 - recommendedAudioSettingsForAssetWriter(writingTo:) now returns nullable NSDictionary<NSString *, id> * instead of nullable NSDictionary * in Objective-C and [String: Any]? instead of [AnyHashable: Any]? in Swift. (50450334)
推薦audiosettingsforassetwriter (writingTo:)現在返回可空NSDictionary<NSString *, id> *而不是可空NSDictionary *在Objective-C和[String: Any]?而不是[AnyHashable: Any]?在斯威夫特。
Resolved in iOS & iPadOS 15 beta 3
- Fixed an issued that caused the User Interface of the new AV Control API to not be functional. (79160982)
修正了一個導致新的AV控制API的用戶界面無法正常工作的問題。
New Features in iOS & iPadOS 15 beta 2
- iPadOS apps can now continue using the camera while presenting multiple windows and being the only application onscreen. (77522226)
ipad應用程序現在可以繼續使用攝像頭,同時顯示多個窗口,並成為屏幕上唯一的應用程序。
Privacy
Resolved in iOS & iPadOS 15 beta 4
- Record App Activity no longer defaults to off after a software update or restore from backup. (77466774)
記錄App活動不再默認關閉后,軟件更新或從備份恢復。(77466774) - Background pushes are only delivered if the app has been used in the foreground in the past few weeks. (79379996)
背景推送僅在應用程序在過去幾周在前台使用過的情況下才會發送。(79379996)
Resolved in iOS & iPadOS 15 beta 3
- JSON exports no longer include separate _marker objects or use separate sections for app access and domains. Instead, each record is distinguished by a new "type" property that’s either "access" or "networkActivity". (79119749)
JSON導出不再包括單獨的_marker對象或使用單獨的部分的應用程序訪問和域。相反,每條記錄都由一個新的“類型”屬性區分,該屬性是“access”或“networkActivity”。(79119749) - App access objects in the App Privacy Report export now consistently use the "timeStamp" property name for timestamps. (79128886)
應用程序訪問對象在應用程序隱私報告導出一致使用"timeStamp"屬性名稱的時間戳。(79128886) - App Privacy Report exports now use the .ndjson file extension. (79092016)
應用隱私報告導出現在使用.ndjson文件擴展名。(79092016) - Record App Activity logs no longer contain duplicate entries for the same access. (77168882)
記錄App Activity日志不再包含相同訪問的重復條目。(77168882)
Resolved in iOS & iPadOS 15 beta 2
- Fixed Reset Location and Privacy that didn’t clear Record App Activity logs. (76568242)
修正重置位置和隱私,沒有清除記錄App活動日志。(76568242) - Fixed Record App Activity log timestamps that didn’t accurately reflect timezone changes. (78278614)
修正了記錄應用程序活動日志的時間戳不能准確反映時區的變化。(78278614) - Fixed Record App Activity link preview logging for app network connections that were incorrectly attributed to Safari. (77288250)
修復了記錄應用程序活動鏈接預覽日志的應用程序網絡連接錯誤歸因於Safari。(77288250) - Fixed an issue that didn’t ask you to confirm deleting recorded data when you turned off Record App Activity. (76404276)
修正了一個問題,當你關閉記錄應用活動時,沒有要求你確認刪除記錄數據。(76404276)
New Features in iOS & iPadOS 15 beta
- To download a file that shows the app content in the App Privacy Report, choose Settings > Privacy > Record App Activity. (77758720)
“應用隱私報告”中顯示應用內容的文件,選擇“設置>隱私>記錄應用活動”。(77758720)
Foundation
Resolved in iOS & iPadOS 15 beta 2
- Fixed an issue in NSAttributedString and AttributedString that caused the system to throw an exception when parsing Markdown containing tables that didn’t explicitly specify table alignments. (77476077)
修正了一個問題,在NSAttributedString和AttributedString導致系統拋出一個異常,當解析Markdown包含的表沒有顯式指定表對齊。(77476077) - Fixed an issue with English pronouns, both traditional and specified via Morphology.CustomPronoun, that didn’t contribute to inflection. (77621682)
修正了一個英語代詞的問題,包括傳統的和通過形態學指定的。CustomPronoun,它沒有影響詞形變化。(77621682)
New Features in iOS & iPadOS 15 beta
- Foundation now includes an automatic grammar agreement engine. This simplifies your code and reduces the number of localized strings you provide by automatically inflecting localized strings to account for pluralization, grammatical gender agreement, and agreement with the user’s term of address. It’s available for English and Spanish. (70210115)
基礎現在包括一個自動語法協議引擎。這將簡化您的代碼並減少您提供的本地化字符串的數量,方法是自動調整本地化字符串以考慮復數、語法性別協議以及與用戶地址術語的協議。它提供英語和西班牙語。(70210115) - Formatting APIs are now available, which focus on the format and remove the need to create, configure, and cache a formatter instance. Each Formatter type has a formatted function. These functions have arguments that allow for configuration and customization of the style. (70220307)
格式化api現在可用,它專注於格式,無需創建、配置和緩存格式化器實例。每個Formatter類型都有一個格式化函數。這些函數的參數允許對樣式進行配置和定制。(70220307) - JSONSerialization and JSONDecoder now support decoding from JSON5. (73954652)
JSONSerialization和JSONDecoder現在支持從JSON5解碼。(73954652) - SortDescriptor, KeyPathComparator, and SortComparator APIs provide a Swift interface to express archivable rules for sorting values. (74264359)
SortDescriptor, KeyPathComparator和SortComparator api提供了一個Swift接口來表達排序值的可歸檔規則。(74264359)
Networking
Deprecations
- Support for cleartext HTTP URL schemes for Proxy Automatic Configuration (PAC) is now deprecated. Use only HTTPS URL schemes for PAC. This affects all PAC configurations, including, but not limited to, configurations set via Settings, System Preferences, profiles, and URLSession APIs such as connectionProxyDictionary and CFNetworkExecuteProxyAutoConfigurationURL(:::😃. If you configure a cleartext HTTP PAC URL, the system may upgrade it to HTTPS during PAC file loads. Web Proxy Auto-Discovery (WPAD) Protocol via DNS isn’t affected. Dynamic Host Configuration Protocol (DHCP) Option 252 WPAD may attempt to upgrade cleartext HTTP URLs to HTTPS during PAC file loads. (61981845)
對代理自動配置(PAC)的明文HTTP URL方案的支持現在已被棄用。只對PAC使用HTTPS URL方案。這會影響所有PAC配置,包括但不限於通過Settings, System Preferences, profiles和URLSession api設置的配置,如connectionProxyDictionary和CFNetworkExecuteProxyAutoConfigurationURL(:::😃。如果配置了明文HTTP PAC URL,系統可能會在加載PAC文件時將其升級為HTTPS。通過DNS的Web代理自動發現(WPAD)協議不受影響。動態主機配置協議(DHCP) Option 252 WPAD可能試圖在PAC文件加載期間將明文HTTP url升級為HTTPS。(61981845)
New Features in iOS & iPadOS 15 beta
- The default Accept-Language header that URLSession sends has an updated format and corrected values for multiple locales. In addition to the preferred language, the header also includes the current system language as a fallback if it differs from the preferred language. This behavior affects apps that link against macOS 12, iOS 15, tvOS 15, and watchOS 8 SDKs. (38772422)
URLSession發送的默認Accept-Language報頭具有針對多個地區的更新格式和更正值。除了首選語言外,如果當前系統語言與首選語言不同,頭文件還包含當前系統語言作為回退。這種行為會影響鏈接到macOS 12、iOS 15、tvOS 15和watchOS 8 sdk的應用程序。(38772422) - URLSession now includes async functions. (68890254)
URLSession現在包括異步函數。(68890254)
For example, a one-shot fetch:
let (data, response) = try await URLSession.shared.data(from: URL(string: "https://www.apple.com")!) if let httpResponse = response as? HTTPURLResponse, httpResponse.statusCode == 200 { // Use data. }
And support for an AsyncSequence stream of bytes:
並支持AsyncSequence字節流:
let (bytes, response) = try await URLSession.shared.bytes(with: URL(string: "https://www.apple.com")!) if let httpResponse = response as? HTTPURLResponse, httpResponse.statusCode == 200 { for try await line in bytes.lines() { // Parse line. } }
Maps
Resolved in iOS & iPadOS 15 beta 4
- Rivers no longer disappear at certain zoom levels. (79993916)
河流不再消失在某些縮放水平。 - Buildings no longer overlap roads at certain zoom levels. (79928870)
建築物不再重疊道路在某些縮放水平。
Resolved in iOS & iPadOS 15 beta 3
- Scrolling the Reports view no longer produces unexpected results. (78823129)
滾動報表視圖不再產生意外結果。
Known Issues
- Rounded building corners might disappear. (80468151)
圓角建築可能會消失。
Resolved in iOS & iPadOS 15 beta 7
The Bay Bridge now scales correctly at high zoom levels. (79217316)
海灣大橋現在在高縮放水平正確縮放。
Deprecations
MKPinAnnotationView and MapPin are marked as deprecated in this beta. (78536295)
MKPinAnnotationView和MapPin在本測試版中被標記為棄用。