Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.48 KB | None | 0 0
  1. {
  2.     "name":"ViewController",
  3.     "root":{
  4.         "properties":{
  5.             "backgroundColor":"white"
  6.         },
  7.         "views":{
  8.             "!imageHolder:UIImageView":{
  9.                 "constraints":{
  10.                     "width height":"+160",
  11.                     "top":"@super +34",
  12.                     "centerX":"@super"
  13.                 },
  14.                 "properties":{
  15.                     "image":"https://res.cloudinary.com/teepublic/image/private/s--PzP3ZyfY--/t_Preview/b_rgb:ffffff,c_limit,f_jpg,h_630,q_90,w_630/v1457761519/production/designs/445119_1.jpg",
  16.                     "contentMode":"scaleAspectFit",
  17.                     "clipToBounds":"true"
  18.                 }
  19.             },
  20.             "!labelUsername:UILabel":{
  21.                 "constraints":{
  22.                     "left":"@super.leftMargin",
  23.                     "right":"@super.rightMargin",
  24.                     "top":"@imageHolder.bottom +48"
  25.                 },
  26.                 "properties":{
  27.                     "text":"Username",
  28.                     "textColor":"#333333"
  29.                 }
  30.             },
  31.             "inputUsername":{
  32.                 "constraints":{
  33.                     "left right":"@labelUsername",
  34.                     "height":"+50",
  35.                     "top":"@labelUsername.bottom +8"
  36.                 },
  37.                 "properties":{
  38.                     "backgroundColor":"#f7fbfc"
  39.                 }
  40.             },
  41.             "!labelPassword:UILabel":{
  42.                 "constraints":{
  43.                     "left right":"@labelUsername",
  44.                     "top":"@inputUsername.bottom +16"
  45.                 },
  46.                 "properties":{
  47.                     "text":"Password",
  48.                     "textColor":"#333333"
  49.                 }
  50.             },
  51.             "inputPassword":{
  52.                 "constraints":{
  53.                     "left right height":"@inputUsername",
  54.                     "top":"@labelPassword.bottom +8"
  55.                 },
  56.                 "properties":{
  57.                     "backgroundColor":"#f7fbfc"
  58.                 }
  59.             },
  60.             "!buttonWrapper":{
  61.                 "constraints":{
  62.                     "left right":"@super",
  63.                     "top":"@inputPassword.bottom +24"
  64.                 },
  65.                 "views":{
  66.                     "!leftButton":{
  67.                         "constraints":{
  68.                             "top left bottom":"@super",
  69.                             "width":"@super /2"
  70.                         },
  71.                         "views":{
  72.                             "buttonLogin":{
  73.                                 "constraints":{
  74.                                     "center top bottom":"@super",
  75.                                     "width":"%>= +120",
  76.                                     "height":"%>= +50"
  77.                                 },
  78.                                 "properties":{
  79.                                     "backgroundColor":"#333333",
  80.                                     "textColor":"white",
  81.                                     "text":"Login",
  82.                                     "cornerRadius":"10"
  83.                                 }
  84.                             }
  85.                         }
  86.                     },
  87.                     "!rigthButton":{
  88.                         "constraints":{
  89.                             "top right bottom":"@super",
  90.                             "left":"@leftButton.right"
  91.                         },
  92.                         "views":{
  93.                             "buttonRegister":{
  94.                                 "constraints":{
  95.                                     "width height":"@buttonLogin",
  96.                                     "center":"@super"
  97.                                 },
  98.                                 "properties":{
  99.                                     "backgroundColor":"orange",
  100.                                     "textColor":"white",
  101.                                     "text":"Register!",
  102.                                     "cornerRadius":"10"
  103.                                 }
  104.                             }
  105.                         }
  106.                     }
  107.                 }
  108.             }
  109.         }
  110.     }
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement