Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var resoulutionDictionary: [Resolution: String] = [:]
  2.  
  3. var rowResolution: Resolution = Resolution(horizontal: 320, vertical: 480)
  4. var midResolution: Resolution = Resolution(horizontal: 375, vertical: 667)
  5. var highResolution: Resolution = Resolution(horizontal: 414, vertical: 736)
  6. resoulutionDictionary[rowResolution] = "row"
  7. resoulutionDictionary[midResolution] = "mid"
  8. resoulutionDictionary[highResolution] = "high"
  9.  
  10. resoulutionDictionary.keys.map{ print($0.hashValue)}
  11.  
  12.  
  13. //4682068483004387588
  14. //7205188110876471995
  15. //-6348699035978240968
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement