From 78de224b3105fdab5203f74c43e73b329025c8a0 Mon Sep 17 00:00:00 2001 From: Klevison Matias Date: Wed, 11 Jan 2017 15:58:09 -0300 Subject: [PATCH] section factory changed --- Demo/AccordionExample/SectionFactory.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Demo/AccordionExample/SectionFactory.swift b/Demo/AccordionExample/SectionFactory.swift index 60fbf74..38e31a0 100644 --- a/Demo/AccordionExample/SectionFactory.swift +++ b/Demo/AccordionExample/SectionFactory.swift @@ -28,7 +28,7 @@ extension Section { section.overlayView = overlayViewSection let button = UIButton(frame: CGRect(x: 0, y: 0, width: view.frame.size.width, height: 50)) - button.setTitle("Reload only this section", for: .normal) + button.setTitle("I can be any kind of UIView", for: .normal) viewOfSection.addSubview(button) return section @@ -36,7 +36,7 @@ extension Section { static func sectionTwo(view: UIView) -> Section { let viewOfSection = UIView(frame: CGRect(x: 0, y: 0, width: view.frame.size.width, height: 300)) - viewOfSection.backgroundColor = UIColor.blue + viewOfSection.backgroundColor = UIColor.red let section = Section() section.view = viewOfSection section.title = "Twitter" @@ -51,7 +51,7 @@ extension Section { section.overlayView = overlayViewSection let button = UIButton(frame: CGRect(x: 0, y: 0, width: view.frame.size.width, height: 50)) - button.setTitle("Reload sections one and two", for: .normal) + button.setTitle("I'm another UIView", for: .normal) viewOfSection.addSubview(button) return section