This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try to simplify the problem. It's hard to think through seven different decisions. | |
What would happen if there were fewer pirates? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If pirate 1 gets less than 50 gold, then your answer is too low. Think bigger. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hint #1: You only need three other yes votes to pass the proposal. You don't need everyone to vote yes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lldb) po tableView._delegateActual() | |
error: <EXPR>:3:1: error: value of type 'UITableView' has no member '_delegateActual' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
import UIKit | |
// PROTOCOL | |
protocol Foo { | |
func foo() -> String | |
func baz() -> String | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class func dataSpecForTest() -> [NSObject: AnyObject] { | |
return [ | |
"text": LYTStringValues(), | |
"buttonText": LYTStringValues(), | |
"buttonEnabled": LYTBoolValues(), | |
"imageType": LYTDataValues(values: ["linkedin", "customValue", NSNull()]) | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)copyWithZone:(NSZone *)zone { | |
LIProfilePersonModel *copy = [LIProfilePersonModel new]; | |
copy.headline = self.headline; | |
copy.defaultLocale = self.defaultLocale; | |
copy.locationValue = self.locationValue; | |
copy.originalPicture = self.originalPicture; | |
copy.location = self.location; | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NotificationDataModel | |
@end | |
@implementation NotificationToastModel | |
@end |
NewerOlder