Swift is a modern programming language developed by Apple, while Objective-C is an older programming language that has been around since the 1980s.
Swift is much easier to read and write than Objective-C, and is more concise. It is also more secure and faster than Objective-C.
For example, a simple “Hello World” program in Swift would look like this:
print(“Hello World!”)
Whereas a similar program in Objective-C would look like this:
#import
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog(@”Hello World!”);
[pool drain];
return 0;
}