Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 1b6d4b9

Browse files
committed
Fix anchors for image and view views.
1 parent 9818f97 commit 1b6d4b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Pod/Classes/WPAssetViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ - (void)viewDidLoad
3636
self.imageView.translatesAutoresizingMaskIntoConstraints = NO;
3737
[self.imageView.leftAnchor constraintEqualToAnchor:self.view.leftAnchor].active = YES;
3838
[self.imageView.widthAnchor constraintEqualToAnchor:self.view.widthAnchor].active = YES;
39-
[self.imageView.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor].active = YES;
40-
[self.imageView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor].active = YES;
39+
[self.imageView.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor].active = YES;
40+
[self.imageView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor].active = YES;
4141

4242
[self.view addSubview:self.videoView];
4343
self.videoView.translatesAutoresizingMaskIntoConstraints = NO;
4444
[self.videoView.leftAnchor constraintEqualToAnchor:self.view.leftAnchor].active = YES;
4545
[self.videoView.widthAnchor constraintEqualToAnchor:self.view.widthAnchor].active = YES;
46-
[self.videoView.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor].active = YES;
47-
[self.videoView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor].active = YES;
46+
[self.videoView.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor].active = YES;
47+
[self.videoView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor].active = YES;
4848
self.videoView.delegate = self;
4949

5050
[self.view addSubview:self.activityIndicatorView];

0 commit comments

Comments
 (0)