Post

Replies

Boosts

Views

Activity

Comment on Pass swift func result to func
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...
Nov ’21
Comment on SearchBar in UISearchController Not Sizing
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?
Jan ’22