Post

Replies

Boosts

Views

Activity

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?
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’22
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...
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’21
Comment on "Compiler failed to build request" Spam when using MKTileOverlay
This was running in the simulator. When I ran it on an actual AppleTV that spam went away as well. So all good now. I have another metal issue now however related to this which unfortunately crashes the app. I'll create a new post for that one. Thank you for the quick response!
Replies
Boosts
Views
Activity
Jun ’25
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?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
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...
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21