Skip to content

Commit

Permalink
section factory changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Klevison Matias committed Jan 11, 2017
1 parent c6c9f64 commit 78de224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Demo/AccordionExample/SectionFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ 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
}

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"
Expand All @@ -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
Expand Down

0 comments on commit 78de224

Please sign in to comment.