Sorry, I copied the autofill.. Here's the definition...
func get(request: RESTRequest, listener: RESTOperation.ResultListener?) -> RESTOperation
And here's "RestOperation.ResultListener...
`open class AmplifyOperation<Request: AmplifyOperationRequest, Success, Failure: AmplifyError>: AsynchronousOperation {
/// The concrete Request associated with this operation
public typealias Request = Request
/// The concrete Success type associated with this operation
public typealias Success = Success
/// The concrete Failure type associated with this operation
public typealias Failure = Failure
/// Convenience typealias defining the Results dispatched by this operation
public typealias OperationResult = Result<Success, Failure>
/// Convenience typealias for the listener callback submitted during Operation creation
public typealias ResultListener = (OperationResult) -> Void`
Hoping that helps clarify things?
That didn't work. Let me post it as an answer...
Post
Replies
Boosts
Views
Activity
Thanks Rincewind! So instead of viewWillLayoutSubviews I had to move to viewDidLayoutSubviews and seems to be working...
[self.searchController.searchBar sizeThatFits:self.searchControllerContainerView.bounds.size];
[self.searchController.searchBar setFrame:self.searchControllerContainerView.frame];
[self.searchController.searchBar setNeedsUpdateConstraints];
Any gotchas I should be aware of with this approach?