SHARE
TWEET

Untitled

a guest Jun 27th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class GameData : Codable {
  2.  
  3.     var isPlayerOneTurn: Bool!
  4.     var wasCreated: Bool!
  5.     var playerOne: String!
  6.     var playerTwo: String!
  7.     var board: [[Int]]!
  8.  
  9.    init() {
  10.  
  11.     }
  12. }
  13.      
  14. let decoder = JSONDecoder()
  15. let dataTest = try? decoder.decode(GameData.self, from: data)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top