Skip to content

Commit

Permalink
Delete comma
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajijapan committed Jul 28, 2021
1 parent f9dd65d commit c0ac4ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/PhotoSlider/Classes/ImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ImageView: UIView {
progressView.heightAnchor.constraint(equalToConstant: 40.0),
progressView.widthAnchor.constraint(equalToConstant: 40.0),
progressView.centerXAnchor.constraint(lessThanOrEqualTo: centerXAnchor, constant: 1.0),
progressView.centerYAnchor.constraint(lessThanOrEqualTo: centerYAnchor, constant: 1.0),
progressView.centerYAnchor.constraint(lessThanOrEqualTo: centerYAnchor, constant: 1.0)
].forEach { $0.isActive = true }
}

Expand Down
11 changes: 5 additions & 6 deletions Sources/PhotoSlider/Classes/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ fileprivate extension ViewController {
closeButton.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 0.0),
closeButton.rightAnchor.constraint(equalTo: view.safeAreaLayoutGuide.rightAnchor, constant: 0.0),
closeButton.heightAnchor.constraint(equalToConstant: 52.0),
closeButton.widthAnchor.constraint(equalToConstant: 52.0),
closeButton.widthAnchor.constraint(equalToConstant: 52.0)
].forEach { $0.isActive = true }
}

Expand All @@ -320,17 +320,17 @@ fileprivate extension ViewController {
shareButton.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 0.0),
shareButton.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor, constant: 0.0),
shareButton.heightAnchor.constraint(equalToConstant: 52.0),
shareButton.widthAnchor.constraint(equalToConstant: 52.0),
shareButton.widthAnchor.constraint(equalToConstant: 52.0)
].forEach { $0.isActive = true }
}

func layoutPageControl() {
pageControl.translatesAutoresizingMaskIntoConstraints = false
[
pageControl.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: 0.0),
pageControl.centerXAnchor.constraint(equalTo: view.safeAreaLayoutGuide.centerXAnchor),
pageControl.rightAnchor.constraint(equalTo: view.safeAreaLayoutGuide.rightAnchor, constant: 0.0),
pageControl.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor, constant: 0.0),
pageControl.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor, constant: 0.0)
].forEach { $0.isActive = true }
}

Expand All @@ -349,7 +349,7 @@ fileprivate extension ViewController {
captionLabel.translatesAutoresizingMaskIntoConstraints = false
[ captionLabel.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -32.0),
captionLabel.rightAnchor.constraint(equalTo: view.safeAreaLayoutGuide.rightAnchor, constant: -16.0),
captionLabel.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor, constant: 16.0),
captionLabel.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor, constant: 16.0)
].forEach { $0.isActive = true }

if let captionHeight = captionHeight {
Expand All @@ -365,7 +365,6 @@ fileprivate extension ViewController {
captionBackgroundView.topAnchor.constraint(equalTo: captionLabel.topAnchor, constant: -16.0)
].forEach { $0.isActive = true }
}

}

// MARK: - UIScrollViewDelegate
Expand Down

0 comments on commit c0ac4ab

Please sign in to comment.