I can't even try setting the frame from the call site with this API:
[application requestSceneSessionActivation:nil
userActivity:theActivity
options:activationOptions
errorHandler:^(NSError * _Nonnull error)
{
}];
}
Because there is an error handler but I don't get back the created UIWindowScene on success....
Is it really necessary to have an error handler on opening a window? An error handler on setting a window's frame? Why is everything hard to do? Passing data to a new window has to be done through these absurd NSUserActivity objects....
Like why isn't there a normal API?
windowController.window.frame = initialRect;
windowController.modelData = modelObject;
[windowController showWindow:sender];
I need an error handler to set a frame and to open a window? Am I making a network request? And if I get an error on set frame how exactly am I supposed to handle the error? Set the frame again and hope that it works?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: