Skip to content

Instantly share code, notes, and snippets.

@FabiolaRamirez
Created June 4, 2019 16:32
Show Gist options
  • Select an option

  • Save FabiolaRamirez/31ef39cf7c79914639481062425984d2 to your computer and use it in GitHub Desktop.

Select an option

Save FabiolaRamirez/31ef39cf7c79914639481062425984d2 to your computer and use it in GitHub Desktop.
if TestingManager.shared.newCCFilteringVariation == Variations.variation {
print("entro pir true: \(TestingManager.shared.newCCFilteringVariation)")
//no muestro
} else {
print("entro por false: \(TestingManager.shared.newCCFilteringVariation)")
let stackView = offersHeaderView.viewWithTag(40) as? UIStackView
let topView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 16))
let bottomView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 16))
let segmentControl = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 32)) //as! DGScrollableSegmentControl
topView.backgroundColor = UIColor.creditSesameLightGrayBackgroundColor
topView.addTopSeparator()
bottomView.backgroundColor = UIColor.creditSesameLightGrayBackgroundColor
bottomView.addBottomSeparator()
//segmentControl.delegate = self
//segmentControl.datasource = self
stackView?.addSubview(topView)
stackView?.addSubview(segmentControl)
stackView?.addSubview(bottomView)
offersHeaderView.clipsToBounds = true
offersHeaderView.snp.makeConstraints { (make) in
make.edges.equalToSuperview()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment