LayerKit v0.23.1 Release Notes
-
Public API Changes
LYRQueryController
objects now permit the developer to invokeexecute:
andexecuteWithCompletion:
multiple times. This allows for the reconfiguration of queries by mutating thepredicate
orsortDescriptors
properties of theLYRQuery
object driving the controller.- Setting the
paginationWindow
of anLYRQueryController
object to zero will now raise anNSInvalidArgumentException
. - The
LYRClientDelegate
methodlayerClient:didSwitchToSession:
andLYRClientDidSwitchSessionNotification
now only get called when client switches between sessions. Previously the client would also notify of the session switch when authenticating for the first time. [APPS-2584]
🐛 Bug Fixes
- Attempting to wait for an invalid object identifier with the appropriate prefix and number of components (i.e.
layer:///invalid/1234
) will now return an error instead of crashing. - 🛠 Fixes the crash in
LYRClient
creation process, where the internal logic tries to create a backgroundNSURLSession
and fails to compare the session's delegate with self. This happens due to 3rd party libraries (like Crittercism) that use method swizzling andNSProxy
objects onNSURLSessionDelegate
, which causes the pointer comparison to fail. [APPS-2581] - ⏱ The
LYRClient
methodwaitForCreationOfObjectWithIdentifier:timeout:completion:
is now guaranteed to always invoke the completion block on the main thread.