Skip to content

Instantly share code, notes, and snippets.

(lldb) po tableView._delegateActual()
error: <EXPR>:3:1: error: value of type 'UITableView' has no member '_delegateActual'
Hint #1: You only need three other yes votes to pass the proposal. You don't need everyone to vote yes.
If pirate 1 gets less than 50 gold, then your answer is too low. Think bigger.
Try to simplify the problem. It's hard to think through seven different decisions.
What would happen if there were fewer pirates?
import SwiftUI
struct ContentView: View {
@ObservedObject var toastManager = ToastManager()
@State var offset: CGFloat = 60
init() {
// This actually throws an error: Escaping closure captures mutating 'self' parameter
toastManager.onShow = { self.onShow() }
public class RootViewController<Content: View>: UIHostingController<Content> {
public init(view: Content, rootViewManager: RootViewManager) {
super.init(rootView: view)
rootViewManager.rootViewController = self
}
@objc required dynamic init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}