3 ms·
I’ve been learning AppKit-Swift to build my own screenshot annotation app, mostly using StackOverflow and reading Apple’s older docs which are all ObjC. There’s
by jitl 2y ago
I’ve been learning AppKit-Swift to build my own screenshot annotation app, mostly using StackOverflow and reading Apple’s older docs which are all ObjC. There’s very few things that don’t translate 1:1 from ObjC to Swift with the same API names. As long as you know what a message-send function call looks like in ObjC, you can read such examples and apply them to Swift.
ObjC: [[FooClass alloc] initWithFoo: foo and bar: bar]
Swift: FooClass(initWithFoo: foo and bar: bar)
- ChrisMarshallNY 2y ago> Swift: FooClass(initWithFoo: foo and bar: bar) Often looks like: FooClass(foo: foo, and: bar) These days.