從創建Xcode項目開始,一路到創建app圖標,完成了一個可以替代物理棋盤的iOS應用。
Swift Chess 1 | Creating Xcode project and adding a BoardView for chess board
Swift Chess 2 | Drawing the chess board for any screen size
Swift Chess 3 | Adding 12 piece images into Xcode
Swift Chess 4 | Drawing 32 pieces on board
Swift Chess 5 | Detecting finger touches
Swift Chess 6 | Implementing a model function to move a piece
Swift Chess 7 | Moving pieces with a finger
Swift Chess 8 | Dragging a piece with our finger
Swift Chess 9 | Fixing a bug when moving a piece to its original location
Swift Chess 10 | Baking our app icon