There's new API and some header documentation for "Location Push Service Extension"s.
I haven't seen any sessions related to Core Location scheduled beyond Meet the Location Button
Is there any documentation for this I have missed?
Post
Replies
Boosts
Views
Activity
It appears the OSLogStore.entries has been refined for Swift but is not visible.
This should probably be made visible — see https://feedbackassistant.apple.com/feedback/7867104
For reference here's a basic snippet attempting to read the current process' logs:
import OSLog
class LogReader: ObservableObject {
		var log: OSLogStore
		init?() {
				do {
						log = try OSLogStore.init(scope: .currentProcessIdentifier)
						dump(log)
						/*
						 * Declared in OSLog/Store.h
						 * as - (nullable OSLogEnumerator *)entriesEnumeratorWithOptions:(OSLogEnumeratorOptions)options
																									position:(nullable OSLogPosition *)position
																								 predicate:(nullable NSPredicate *)predicate
																										 error:(NSError **)error
									API_AVAILABLE(macos(10.15), ios(14.0), tvos(14.0), watchos(7.0))
									NS_REFINED_FOR_SWIFT;
						 * Swift refinement not visible? — use name prefixed with __
						 * See https://developer.apple.com/documentation/swift/objective-c_and_c_code_customization/improving_objective-c_api_declarations_for_swift
						 */
						let enumerator = try log.__entriesEnumerator(options: [], position: nil, predicate: nil)
						dump(enumerator)
						var next: Any?
						repeat {
								next = enumerator.nextObject()
								dump(next)
						} while next != nil
				} catch {
						dump(error)
						return nil
				}
		}
}
/*
Result: Error Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.OSLogService was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.OSLogService was invalidated.}/
Gist - https://gist.github.com/flufff42/ed9965c4ae8ff2bb25b2f08dec8dfb06
In both iOS 14 Beta 1 and 2 the workflow for Location Authorization seems to differ between the simulator and devices.
When requesting always authorization the simulator will return authorizedWhenInUse rather than authorizedAlways when "Allow While Using App" is selected.
Also the location accuracy selector is omitted from the alert shown.
Is this is a known issue?
This has also been filed as https://feedbackassistant.apple.com/feedback/7866504
As of iOS 13 with the new card style default presentation of modal view controllers users can dismiss these with a downward swipe gesture by default.
If this behaviour is not desired isModalInPresentation can be set to true to disable it.
In SwiftUI the sheet modifier does not seem to expose this option and will always be dismissed.
An alternative is to use fullScreenCover — but this loses the card effect.
Is there an option to prevent dismissing SwiftUI sheets using the gesture mentioned?