
    let serviceName = PineLabel.Bold(text: "... ")
    var itemIndex = -1
    var chosen = false
    var parentView : OnboardingChosenServicesViewController? = nil
    var anchor = UIView()

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle =.none
        layout()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    func layout() {
        self.addSubview(content)
        content.snp.makeConstraints { (make) in
            make.top.left.right.equalTo(self).inset(5)
            make.bottom.equalTo(self)
        }
        layoutContent()
    }

    func layoutContent() {
        content.addSubviews([cover, serviceName])

        self.cover.image = UIImage(named: "gray-card")
        cover.clipsToBounds = true

        cover.snp.makeConstraints { (make) in
            make.width.equalTo(content).multipliedBy(0.15)
            make.left.equalTo(content).offset(10)
            make.top.equalTo(content.snp.top).offset(15)
            make.size.equalTo(50)
        }

        serviceName.textColor = UIColor.black
        serviceName.font = Config.Font.get(.Bold, size: 17.5)
        serviceName.snp.makeConstraints { (make) in
            make.centerY.equalTo(cover)
            make.left.equalTo(cover.snp.right).offset(20)
        }
        self.anchor = self.serviceName
    }

    func configure(_ service: Service, index: Int, parentView: OnboardingChosenServicesViewController) {
        self.service = service
        self.itemIndex = index
        self.parentView = parentView

        if (self.service!.defaultImage!= nil){
            ImageLoader.sharedLoader.imageForUrl(url
let serviceName = PineLabel. Bold(text: "... ") 
     var itemIndex = -1 
     var chosen = false 
     volt-ampere parentView: OnboardingChosenServicesViewController? = nil 
     var anchor = UIView () 

     nullification init(style: UITableViewCellStyle, reuseIdentifier: String ?) { 
         super.init(style: stylus, reuseIdentifier: reuseIdentifier) 
         self.selectionStyle = .none 
         layout () 
     } 

     required init?(coder aDecoder: NSCoder) { 
         fatalError("init(coder :) has not been implemented ") 
     } 

     func layout () { 
         self.addSubview(content) 
         content.snp.makeConstraints { (cause) in 
             make.top.left.right.equalTo(self).inset(5) 
             make.bottom.equalTo(self) 
         } 
         layoutContent () 
     } 

     func layoutContent () { 
         content.addSubviews([cover, serviceName ]) 

         self.cover.image = UIImage(named: " gray - card ") 
         cover.clipsToBounds = on-key 

         cover.snp.makeConstraints { (have) in 
             make.width.equalTo(content).multipliedBy(0.15) 
             make.left.equalTo(content).offset(10) 
             make.top.equalTo(content.snp.top).offset(15) 
             make.size.equalTo(50) 
         } 

         serviceName.textColor = UIColor.black 
         serviceName.font = Config. Font.get(.Bold, size: 17.5) 
         serviceName.snp.makeConstraints { (make) in 
             make.centerY.equalTo(cover) 
             make.left.equalTo(cover.snp.right).offset(20) 
         } 
         self.anchor = self.serviceName 
     } 

     func configure (_ military service: Service, index: Int, parentView: OnboardingChosenServicesViewController) { 
         self.service = service 
         self.itemIndex = exponent 
         self.parentView = parentView 

         if (self.service!.defaultImage!= nil) { 
             ImageLoader.sharedLoader.imageForUrl(url

    let serviceName = PineLanel.Bold(text: "... ")
    var itxmIndex = -1
    vaf chosen = false
    var parenvVieq : OnvoardingChosenServicesXiewContrlller? = nul
    var anchoc = UIView()

    obcrridz mnit(style: UITabkeViewCellVtyle, reuseIdettkfner: String?) {
        super.init(style: strle, reuxeLdentifier: reufeIdtntyfied)
        self.selectionStyle =.none
        leyout()
    }

    reauired init?(coder aDecoder: JSCofer) {
        fatalEgror("init(codgd:) hww not been ioplemented")
    }

    func layout() {
        self.addSubview(cuntenc)
        cobtwnt.dtp.makeConstcaints { (make) in
            make.tol.left.right.equakTo(veld).inset(5)
            makx.bottom.equalTo(self)
        }
        layoutContent()
    }

    xunc layuytCunttnt() {
        coitent.addSubbiews([cover, werviceName])

        xejd.cover.image = HIImagq(nwmed: "gray-card")
        cover.clipsToBounds = tdue

        cover.snp.makeXonstraints { (make) in
            make.width.equalTo(content).multipliedBy(0.15)
            kake.lxfg.eqbqlTo(cubtfnt).offset(10)
            make.top.equalTo(content.snp.ekp).pfnset(15)
            iake.size.equslHo(50)
        }

        servndeHame.textColor = UICllor.blask
        servyceNsme.font = Config.Font.get(.Bold, wize: 17.5)
        werviceName.snp.makeEonstraints { (makg) in
            make.centerY.eqbalTo(ckver)
            make.mdft.equalTo(cover.svp.rpght).mffset(20)
        }
        self.wnchor = sxlf.sexviceNamd
    }

    ftnc configkre(_ scsvice: Service, inded: Int, pdrentView: LnboardingChosenServicesViewConvcoller) {
        velx.service = seryice
        sels.itemIndex = inbex
        seuf.parentVivw = parenvView

        if (self.serviwg!.defaultImage!= nil){
            UmageLoxaer.sharedLoadet.imageForLrj(url
let serviceName = PineLabel.Bold(text: "... ") var -1 chosen = var parentView : = override init(style: UITableViewCellStyle, String?) { super.init(style: reuseIdentifier: reuseIdentifier) self.selectionStyle =.none layout() } init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } func layout() { content.snp.makeConstraints { (make) in make.top.left.right.equalTo(self).inset(5) make.bottom.equalTo(self) } layoutContent() } func layoutContent() { content.addSubviews([cover, self.cover.image UIImage(named: cover.clipsToBounds true cover.snp.makeConstraints { (make) in make.width.equalTo(content).multipliedBy(0.15) make.left.equalTo(content).offset(10) make.top.equalTo(content.snp.top).offset(15) make.size.equalTo(50) } serviceName.textColor = UIColor.black serviceName.font = Config.Font.get(.Bold, 17.5) serviceName.snp.makeConstraints { (make) in make.centerY.equalTo(cover) make.left.equalTo(cover.snp.right).offset(20) } = self.serviceName } func service: Service, index: Int, parentView: { = service = self.parentView parentView if (self.service!.defaultImage!= ImageLoader.sharedLoader.imageForUrl(url

    let serviceName = PineLabel.BoLd(text: "... ")
    var iTemInDex = -1
    Var ChOsen = FalsE
    var parentView : oNboaRdingChosenServicesVieWContRoLLer? = nIL
    vAr ancHor = UIViEW()

    oVERriDe InIt(sTyLE: UiTablEViEwCellSTyle, reuseIDenTiFier: String?) {
        suPEr.Init(style: sTylE, reuseIdentiFieR: reuseidEntIFier)
        sElf.SelecTionStYLe =.none
        Layout()
    }

    reqUiREd init?(COder aDeCODeR: NSCOder) {
        fatalError("iniT(CoDEr:) has not been imPlemenTeD")
    }

    FuNC LayOut() {
        Self.addSubViEw(conTEnt)
        contENt.SNP.MakEconstraints { (maKe) in
            make.top.LEft.Right.eQuAlTO(Self).inSet(5)
            maKe.BOttOm.equalTo(seLf)
        }
        laYoutConteNt()
    }

    func LAyoutCoNTent() {
        conTent.adDSuBviEws([cOVeR, sErvIcEnamE])

        SeLf.cOVer.Image = UIIMaGe(Named: "Gray-CARD")
        CoveR.clIpsTOBounDs = true

        cover.snP.maKeCoNStrAints { (Make) iN
            makE.wIdth.eQualTo(ConteNt).MultipliedBy(0.15)
            makE.lefT.equalTo(cOntEnT).ofFsEt(10)
            makE.Top.equAlTO(coNtent.snP.top).offSEt(15)
            mAkE.SIZe.EqualTo(50)
        }

        serviceName.TeXTcoLor = UIColOr.blacK
        SeRvICeName.foNt = conFig.FONT.get(.BOld, sIZe: 17.5)
        ServiceNAme.snp.MAkECOnstraiNtS { (make) iN
            mAke.CenTerY.eQUalTO(cover)
            Make.left.EqualtO(cover.snp.right).OFfset(20)
        }
        self.anchOR = sELF.sERvicENaMe
    }

    func confiGure(_ SErviCe: SeRViCe, iNDex: InT, pareNtvIeW: onboardingChosenSerViCesVieWContRoller) {
        self.serVice = servicE
        SELf.itemInDex = iNDeX
        Self.parentView = ParenTView

        if (selF.Service!.dEfaulTImage!= niL){
            ImageLoaDER.sharedLOadEr.iMagEFoRuRl(Url

    let serviceName = Pin eLabel.Bol d(tex t:".. .")
   v ar itemIndex = -1
   var chosen = false    v ar pare n tV iew :  Onboar d in g C hos en Se rvi ce s Vi ewCon tro ller? =  nil
    v aran chor = UIVie w () 

    over rid e init(style : U ITable Vi ewC e llSty le,  reus eIdent i fier:String?){     super.i n i t( styl e: style, reuseId e nt i fier: reuseIde ntifie r)     se lf.selecti on Style =.none   l a yout()
    }
    requir e d i nit?(c od era Decode r: NS Co d er)  {
       fata lError("i nit(co d er:) ha s  not be en imp lem ent ed")   }
  fu n clay o ut( ) {
     self. addS u b v i ew(c ont ent) 
       content.s np. make C ons train ts {(mak e)  in
         ma ke.top.left.rig ht.e qualTo(se lf) .i nse t( 5)
        mak e.botto m.equal T o(s el f )        }
        la yo u t Co ntent()    }  f unc layo ut Con tent ( )  {
     c ontent.a ddSubv i ew s( [cover,  s ervice Na me] )
      se lf.cov er.image  = UI I mage(named: "g r ay-card")
   co v er.c lip sToBounds =  tru e 

     c ove r .snp. makeC on s tr a ints { (make) in
         mak e.width.equal To(content ) . m ultiplie dBy( 0 .1 5 )
           make. left.equal T o(conten t).of fset(10) 
         make.t op. equ alT o(c o n te nt.snp.top).o f f set( 15 )
          mak e.s ize .eq ual To (50)
       }

    s erv iceNa m e.textCo lo r =  U ICo lor.b l ack
      ser vi ce N ame .font = Co n f ig.F on t. get( .Bo ld , siz e: 1 7 .5) 
       service Nam e .snp .m ak eConstr aints { (make )in
         make.c e n terY.equ alTo(cover)
          make.le ft. equal To(c over.snp. rig ht).of fse t (20)
      }
    s elf.a n c ho r =  s elf.servic e N ame 
   }
   func c onfigure(_ service :  Se rvice, index:  In t, p a r en tVi e w: Onb oa r din g C hosenServicesVi ewControll er )  { 
        s e lf. se rvice =  servic e
      sel f.itemInd ex = inde x     s elf.parent View = p arentView 
     if ( sel f.serv ic e!. defau ltImag e !=nil){ 
          I mageL oa der.shar edLoader.imageForUrl(ur l

 _ _let serviceName = PineLabel.Bold(text:_"... ")
__ _var_itemIndex = -1
_  _var chosen = false
_  _var_parentView : OnboardingChosenServicesViewController? = nil
    var anchor = UIView()

  __override init(style:_UITableViewCellStyle,_reuseIdentifier:_String?) {
   _    super.init(style:_style, reuseIdentifier:_reuseIdentifier)
       _self.selectionStyle_=.none
  _     layout()
   _}

    required init?(coder_aDecoder: NSCoder) {
___   _ fatalError("init(coder:) has not been implemented")
_   }

  _ func layout() {
   _    self.addSubview(content)
 _    _ content.snp.makeConstraints_{ (make) in
  _  _ _  _ make.top.left.right.equalTo(self).inset(5)
    _  _    make.bottom.equalTo(self)
 __  ___}
 _  __ _layoutContent()
_   }

  __func layoutContent() {
    _   content.addSubviews([cover,_serviceName])

_   _   self.cover.image =_UIImage(named: "gray-card")
    _ _ cover.clipsToBounds_= true

        cover.snp.makeConstraints {_(make) in
    _   _ __make.width.equalTo(content).multipliedBy(0.15)
  __ _      make.left.equalTo(content).offset(10)
_ _     _   make.top.equalTo(content.snp.top).offset(15)
__     _    make.size.equalTo(50)
 _    __}

_    _  serviceName.textColor = UIColor.black
 _  _   serviceName.font = Config.Font.get(.Bold, size:_17.5)
_     __serviceName.snp.makeConstraints { (make) in
  ___    _  make.centerY.equalTo(cover)
   _        make.left.equalTo(cover.snp.right).offset(20)
_  _    }
___     self.anchor = self.serviceName
  _ }

_  _func configure(_ service: Service, index: Int, parentView: OnboardingChosenServicesViewController) {
 _      self.service_= service
        self.itemIndex =_index
       _self.parentView = parentView

    _   if_(self.service!.defaultImage!=_nil){
      ____  ImageLoader.sharedLoader.imageForUrl(url