Sample files of a talk @ Swift Meetup Taipei #10. Slides is here: https://goo.gl/LbnGBN
Files in this repo is targeted on Xcode 8.0 Beta 3 and macOS Sierra Developer Beta 3. (so some code may need to be modified to run on OS X El Capitan and Swift 2.0)
Remember to use Carthage to install dependencies first.
For the first time:
carthage build --platform Mac --configuration Release
swift hello.swift
- a hello world example./myhello
- hello world example with progress bar./myansi
- display ANSI colors./myls
- make als
command withFileManager
(i.e.NSFileManager
)./asynctask
- Use GCD for asynchronous tasks./wget
- Write awget
command withURLSession
(i.e.NSURLSession
)cd adder && make && ./adder
- Compile multiple swift file as a simple command