SURAJ KUMAR

Results 5 comments of SURAJ KUMAR

Hi danieltigse, You could put below code for your above problem.. if countryData.count > 0, let dialCode = countryData[0]["dial_code"] { country = MICountry(name: displayName!, code: countryCode, dialCode: countryData[0]["dial_code"]!) unsourtedCountries.append(country) }...

@gk704297 override func viewDidLayoutSubviews() { self.setupLayout() if self.indexNumber == 0{ /// Set **indexNumber** only for the 1st cell let layout = UPCarouselFlowLayout() layout.itemSize = CGSize(width:view.frame.width, height:448) layout.scrollDirection = .horizontal self.collectionView.collectionViewLayout...

@Beyond-Chao You can try this code. override func viewDidLayoutSubviews() { self.setupLayout() if self.indexNumber == 0{ // Set indexNumber = 0 for the 1st cell only. let layout = UPCarouselFlowLayout() layout.itemSize...

@bizibizi override func viewDidLayoutSubviews() { self.setupLayout() if self.indexNumber == 0{ /// set only for the 1st index cell. let layout = UPCarouselFlowLayout() layout.itemSize = CGSize(width:view.frame.width, height:448) layout.scrollDirection = .horizontal self.collectionView.collectionViewLayout...

@All, let layout = UPCarouselFlowLayout() layout.itemSize = CGSize(width:UIScreen.main.bounds.size.width - 80, height:UIScreen.main.bounds.size.width - 80) layout.spacingMode = UPCarouselFlowLayoutSpacingMode.fixed(spacing: 10.0) self.collectionView.collectionViewLayout = layout self.rotationDidChange() **Remove space between two cell.**