Skip to content

Commit

Permalink
Fix bug layout in uiscrollview example
Browse files Browse the repository at this point in the history
  • Loading branch information
bsv-hienpham1991 committed May 29, 2021
1 parent 5d16584 commit 48c61a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HPParallaxHeader/Classes/HPParallaxHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public class HPParallaxHeader: NSObject {
guard let scrollView = scrollView else { return }
contentView.leadingAnchor.constraint(equalTo: scrollView.leadingAnchor).isActive = true
contentView.trailingAnchor.constraint(equalTo: scrollView.trailingAnchor).isActive = true
contentView.widthAnchor.constraint(equalTo: scrollView.widthAnchor).isActive = true

positionConstraint = contentView.topAnchor.constraint(equalTo: scrollView.topAnchor)
positionConstraint?.isActive = true
Expand Down

0 comments on commit 48c61a1

Please sign in to comment.