@@ -55,8 +55,7 @@ internal final class YPLibraryView: UIView {
55
55
status = PHPhotoLibrary . authorizationStatus ( for: . readWrite)
56
56
if status == . limited {
57
57
v. isHidden = false
58
- v. setTitle ( " Select more photos " , for: . normal)
59
- v. frame. size. width = 300.0
58
+ v. setTitle ( " Select more " , for: . normal)
60
59
v. backgroundColor = YPConfig . selectMoreButtonBackgroundColour. withAlphaComponent ( 0.8 )
61
60
v. layer. cornerRadius = 4
62
61
v. layer. masksToBounds = true
@@ -77,7 +76,6 @@ internal final class YPLibraryView: UIView {
77
76
if status == . limited {
78
77
v. isHidden = false
79
78
v. setTitle ( " See all photos " , for: . normal)
80
- v. frame. size. width = 300.0
81
79
v. backgroundColor = YPConfig . seeAllPhotosButtonBackgroundColour. withAlphaComponent ( 0.8 )
82
80
v. layer. cornerRadius = 4
83
81
v. layer. masksToBounds = true
@@ -249,12 +247,12 @@ internal final class YPLibraryView: UIView {
249
247
maxNumberWarningView. Top == safeAreaLayoutGuide. Bottom - 40
250
248
maxNumberWarningLabel. centerHorizontally ( ) . top ( 11 )
251
249
252
- seeAllButton. bottom ( 0 )
250
+ seeAllButton. Bottom == safeAreaLayoutGuide . Bottom
253
251
seeAllButton. Top == safeAreaLayoutGuide. Bottom - 40
254
252
seeAllButton. widthAnchor. constraint ( equalTo: self . widthAnchor, multiplier: 0.50 ) . isActive = true
255
253
seeAllButton. Left == UIScreen . main. bounds. width * 0.05
256
254
257
- selectMoreButton. bottom ( 0 )
255
+ selectMoreButton. Bottom == safeAreaLayoutGuide . Bottom
258
256
selectMoreButton. Top == safeAreaLayoutGuide. Bottom - 40
259
257
selectMoreButton. widthAnchor. constraint ( equalTo: self . widthAnchor, multiplier: 0.35 ) . isActive = true
260
258
selectMoreButton. Right == UIScreen . main. bounds. width * 0.05
0 commit comments