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 | |
protocol Thingy: class {} | |
protocol ThingTaking: class { | |
associatedtype ThingType: Thingy | |
func some(thing: ThingType) | |
} |
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
enum Bar: String { | |
case a, b, c | |
init?(w: Bool, x: Bool, y: Bool, z: Bool) { | |
if w { | |
if x { | |
self = .a | |
return | |
} else if y { | |
self = .b | |
return |
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
/* | |
In Xcode 11.3.1, the output is: | |
>>> setting n to -1 | |
sending value through valueDidChange publisher | |
situation negative("hello") | |
<<< done | |
>>> setting n to 1 | |
sending value through valueDidChange publisher | |
situation positive("hello") |
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
/* | |
In Xcode 11.3.1, the output is: | |
>>> setting n to -1 | |
sending value through valueDidChange publisher | |
situation negative("hello") | |
<<< done | |
>>> setting n to 1 | |
sending value through valueDidChange publisher | |
situation positive("hello") |
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
Incident Identifier: 49576494-AEF6-4749-B7BF-990FBE0C3C39 | |
Distributor ID: com.apple.TestFlight | |
Hardware Model: iPhone17,1 | |
Process: MyApp [3919] | |
Path: /private/var/containers/Bundle/Application/CCBF10BF-11EF-45CC-8EE7-0B92489E463A/MyApp.app/MyApp | |
Identifier: com.mycompany.myapp.test | |
Version: 12.38.1 (60441) | |
AppStoreTools: 16A242d | |
AppVariant: 1:iPhone17,1:18 | |
Beta: YES |
OlderNewer