Skip to content

Commit

Permalink
Remove solution code from NationalFlags DataViewController.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hyche committed Aug 13, 2017
1 parent 8f1ae04 commit 767e53b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,38 +39,11 @@ class DataViewController: UIViewController {
}

func configureFlagFrance() {
let stackView = UIStackView(frame: .zero)
stackView.translatesAutoresizingMaskIntoConstraints = false
stackView.axis = .horizontal
stackView.distribution = .fillEqually
stackView.alignment = .fill
stackView.spacing = 0.0

flagContainerView.addSubview(stackView)

stackView.leadingAnchor.constraint(equalTo: flagContainerView.leadingAnchor).isActive = true
stackView.trailingAnchor.constraint(equalTo: flagContainerView.trailingAnchor).isActive = true
stackView.topAnchor.constraint(equalTo: flagContainerView.topAnchor).isActive = true
stackView.bottomAnchor.constraint(equalTo: flagContainerView.bottomAnchor).isActive = true

let blue = UIView(frame: .zero)
blue.backgroundColor = UIColor.blue
stackView.addArrangedSubview(blue)

let white = UIView(frame: .zero)
white.backgroundColor = UIColor.white
stackView.addArrangedSubview(white)

let red = UIView(frame: .zero)
red.backgroundColor = UIColor.red
stackView.addArrangedSubview(red)



// Your code here
}

func configureFlagItaly() {

// Your code here
}


Expand Down

0 comments on commit 767e53b

Please sign in to comment.