Explorar o código

feat: 移除 snapkit 关于方向的处理

陈文艺 hai 2 meses
pai
achega
bd24cdccbc
Modificáronse 100 ficheiros con 326 adicións e 327 borrados
  1. 16 16
      Lanu.xcodeproj/project.pbxproj
  2. 1 2
      Lanu.xcworkspace/xcshareddata/swiftpm/Package.resolved
  3. 1 1
      Lanu/Common/Views/Gender/LNGenderView.swift
  4. 5 5
      Lanu/Common/Views/ImagePreview/LNImagePreviewCell.swift
  5. 3 3
      Lanu/Common/Views/ImagePreview/LNImagePreviewController.swift
  6. 3 3
      Lanu/Common/Views/ImageUpload/LNFeedbackImageUploadView.swift
  7. 1 1
      Lanu/Common/Views/ImageUpload/LNMultiImagesUploadView.swift
  8. 1 1
      Lanu/Common/Views/ImageUpload/LNUploadImageView.swift
  9. 3 3
      Lanu/Common/Views/LNBirthdayDatePickerPanel.swift
  10. 3 3
      Lanu/Common/Views/LNPopupView.swift
  11. 1 1
      Lanu/Common/Views/LNVoiceWaveView.swift
  12. 2 2
      Lanu/Common/Views/Loading/LNLoadingView.swift
  13. 3 3
      Lanu/Common/Views/Menu/LNBottomSheetMenu.swift
  14. 3 3
      Lanu/Common/Views/Menu/LNCommonAlertView.swift
  15. 1 1
      Lanu/Common/Views/NoMoreView/LNNoMoreDataView.swift
  16. 2 2
      Lanu/Common/Views/StackView/LNAutoFillStackView.swift
  17. 1 1
      Lanu/Common/Views/StarScore/LNFiveStarScoreView.swift
  18. 1 1
      Lanu/Common/Views/StarScore/LNStarScoreView.swift
  19. 1 1
      Lanu/Common/Views/TextView/LNCommonTextView.swift
  20. 2 2
      Lanu/Views/Game/Category/LNGameCategoryListView.swift
  21. 2 2
      Lanu/Views/Game/Category/LNGameCategoryTabView.swift
  22. 5 5
      Lanu/Views/Game/MateFilter/LNGameCategoryFilterPanel.swift
  23. 1 1
      Lanu/Views/Game/MateFilter/LNGameFilterPanel.swift
  24. 5 5
      Lanu/Views/Game/MateFilter/LNGameMateFilterPanel.swift
  25. 3 3
      Lanu/Views/Game/MateList/LNGameMateListCell.swift
  26. 1 1
      Lanu/Views/Game/Skill/LNSkillBottomMenuView.swift
  27. 9 9
      Lanu/Views/Game/Skill/LNSkillDetailViewController.swift
  28. 1 1
      Lanu/Views/Game/Skill/LNSkillPhotosView.swift
  29. 2 2
      Lanu/Views/Game/Skill/LNSkillTagView.swift
  30. 1 1
      Lanu/Views/Game/Skill/LNSkillVoiceBarView.swift
  31. 1 1
      Lanu/Views/Home/GameTab/LNHomeGameTabItemView.swift
  32. 1 1
      Lanu/Views/Home/GameTab/LNMainGameTabView.swift
  33. 2 2
      Lanu/Views/Home/LNHomeGameMatePanel.swift
  34. 2 2
      Lanu/Views/Home/LNHomeTopTabView.swift
  35. 1 1
      Lanu/Views/Home/LNHomeViewController.swift
  36. 1 1
      Lanu/Views/IM/Chat/Cells/LNIMChatBaseMessageCell.swift
  37. 1 1
      Lanu/Views/IM/Chat/Cells/LNIMChatImageMessageCell.swift
  38. 2 2
      Lanu/Views/IM/Chat/Cells/LNIMChatOrderMessageCell.swift
  39. 2 2
      Lanu/Views/IM/Chat/Cells/LNIMChatSystemMessageCell.swift
  40. 1 1
      Lanu/Views/IM/Chat/Cells/LNIMChatTextMessageCell.swift
  41. 2 2
      Lanu/Views/IM/Chat/Cells/LNIMChatUnknownMessageCell.swift
  42. 5 5
      Lanu/Views/IM/Chat/Cells/LNIMChatVoiceMessageCell.swift
  43. 1 1
      Lanu/Views/IM/Chat/Emoji/LNIMChatEmojiCell.swift
  44. 2 2
      Lanu/Views/IM/Chat/Emoji/LNIMChatEmojiPanel.swift
  45. 7 7
      Lanu/Views/IM/Chat/GameMate/LNIMChatGameMateOrderView.swift
  46. 6 6
      Lanu/Views/IM/Chat/GameMate/LNIMChatGameMateSkillCell.swift
  47. 3 3
      Lanu/Views/IM/Chat/GameMate/LNIMChatGameMateSkillView.swift
  48. 7 7
      Lanu/Views/IM/Chat/InputMenu/LNIMChatInputMenuView.swift
  49. 1 1
      Lanu/Views/IM/Chat/InputMenu/LNIMChatTextInputView.swift
  50. 2 2
      Lanu/Views/IM/Chat/InputMenu/LNIMChatVoiceInputView.swift
  51. 1 1
      Lanu/Views/IM/Chat/InputMenu/LNIMChatVoiceWaveView.swift
  52. 2 2
      Lanu/Views/IM/Chat/LNIMChatTopMenuView.swift
  53. 4 4
      Lanu/Views/IM/Chat/LNIMChatViewController.swift
  54. 3 3
      Lanu/Views/IM/Chat/UserMenu/LNIMChatUserMenuView.swift
  55. 3 3
      Lanu/Views/IM/ConversationList/LNIMConversationCell.swift
  56. 2 2
      Lanu/Views/IM/ConversationList/LNIMConversationListController.swift
  57. 2 2
      Lanu/Views/IM/ConversationList/LNIMNotificationPermissionView.swift
  58. 8 8
      Lanu/Views/IM/Notify/Cell/LNIMOfficialMessageCell.swift
  59. 1 1
      Lanu/Views/IM/Notify/LNIMOfficialMessageViewController.swift
  60. 2 2
      Lanu/Views/Login/LNLoginViewController.swift
  61. 4 4
      Lanu/Views/Login/Setup/LNBaseInfoSetupViewController.swift
  62. 3 3
      Lanu/Views/Login/Setup/LNGenderSetupViewController.swift
  63. 4 4
      Lanu/Views/Login/Setup/LNInterestSetupViewController.swift
  64. 2 2
      Lanu/Views/Main/LNMainTabBar.swift
  65. 3 3
      Lanu/Views/Order/Alerts/LNCreateOrderFailedPanel.swift
  66. 2 2
      Lanu/Views/Order/Alerts/LNCreateOrderSuccessPanel.swift
  67. 1 1
      Lanu/Views/Order/Create/LNCreateOrderFromSkillListPanel.swift
  68. 5 5
      Lanu/Views/Order/Create/LNCreateOrderPanel.swift
  69. 4 4
      Lanu/Views/Order/Create/LNCreateOrderViewController.swift
  70. 2 2
      Lanu/Views/Order/Detail/LNOrderDetailCardView.swift
  71. 7 7
      Lanu/Views/Order/Detail/LNOrderDetailViewController.swift
  72. 3 3
      Lanu/Views/Order/Detail/LNOrderRefundInfoView.swift
  73. 3 3
      Lanu/Views/Order/LNOrderCommentPanel.swift
  74. 8 8
      Lanu/Views/Order/OrderList/LNOrderListItemCell.swift
  75. 1 1
      Lanu/Views/Order/OrderList/LNOrderListViewController.swift
  76. 7 7
      Lanu/Views/Order/OrderQR/LNOrderCustomView.swift
  77. 4 4
      Lanu/Views/Order/OrderQR/LNOrderGenerateQRCodePanel.swift
  78. 2 2
      Lanu/Views/Order/OrderQR/LNOrderQRCodeShowView.swift
  79. 1 1
      Lanu/Views/Order/OrderQR/LNOrderQRTabView.swift
  80. 1 1
      Lanu/Views/Order/OrderQR/LNOrderShareImageGenerator.swift
  81. 8 8
      Lanu/Views/Order/OrderRecords/LNOrderRecordCell.swift
  82. 1 1
      Lanu/Views/Order/OrderRecords/LNOrderRecordListViewController.swift
  83. 17 17
      Lanu/Views/Order/Refund/LNOrderProtestViewController.swift
  84. 14 14
      Lanu/Views/Order/Refund/LNOrderRefundViewController.swift
  85. 2 2
      Lanu/Views/Profile/Edit/LNEditBioPanel.swift
  86. 3 3
      Lanu/Views/Profile/Edit/LNEditGenderPanel.swift
  87. 7 7
      Lanu/Views/Profile/Edit/LNEditInterestPanel.swift
  88. 4 4
      Lanu/Views/Profile/Edit/LNEditNickNamePanel.swift
  89. 2 2
      Lanu/Views/Profile/Edit/LNEditProfilePhotoWallView.swift
  90. 6 6
      Lanu/Views/Profile/Edit/LNEditProfileViewController.swift
  91. 2 2
      Lanu/Views/Profile/Mine/LNMineFunctionView.swift
  92. 1 1
      Lanu/Views/Profile/Mine/LNMineQRCodeShareView.swift
  93. 5 5
      Lanu/Views/Profile/Mine/LNMineUserInfoView.swift
  94. 1 1
      Lanu/Views/Profile/Mine/LNMineViewController.swift
  95. 5 5
      Lanu/Views/Profile/Post/LNPostShareImageGenerator.swift
  96. 2 2
      Lanu/Views/Profile/Post/LNPostShareSkillItemView.swift
  97. 10 10
      Lanu/Views/Profile/Post/LNPostShareViewController.swift
  98. 3 3
      Lanu/Views/Profile/Post/LNPostSkillSelectPanel.swift
  99. 3 3
      Lanu/Views/Profile/Profile/LNProfileBottomMenu.swift
  100. 1 1
      Lanu/Views/Profile/Profile/LNProfileNaviBarView.swift

+ 16 - 16
Lanu.xcodeproj/project.pbxproj

@@ -8,13 +8,13 @@
 
 /* Begin PBXBuildFile section */
 		314B1B286681A79A6D153299 /* Pods_Gami.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C4E0C09312B6CA8A283AD62F /* Pods_Gami.framework */; };
+		FB31D8282F17353D0075F690 /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = FB31D8272F17353D0075F690 /* SnapKit */; };
 		FB696C172EC96C0F00FAD639 /* MJRefresh in Frameworks */ = {isa = PBXBuildFile; productRef = FB696C162EC96C0F00FAD639 /* MJRefresh */; };
 		FB9CD1192EC1EEA10033B14B /* FirebaseCore in Frameworks */ = {isa = PBXBuildFile; productRef = FB9CD1182EC1EEA10033B14B /* FirebaseCore */; };
 		FB9CD11B2EC1EEA10033B14B /* FirebaseCrashlytics in Frameworks */ = {isa = PBXBuildFile; productRef = FB9CD11A2EC1EEA10033B14B /* FirebaseCrashlytics */; };
 		FB9CD11E2EC1EEF30033B14B /* GoogleSignIn in Frameworks */ = {isa = PBXBuildFile; productRef = FB9CD11D2EC1EEF30033B14B /* GoogleSignIn */; };
 		FB9EAE7B2F011ACD00E77B7C /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB9EAE7A2F011ACD00E77B7C /* StoreKit.framework */; };
 		FB9FCD262EF25D6B00DDAAC9 /* SDWebImage in Frameworks */ = {isa = PBXBuildFile; productRef = FB9FCD252EF25D6B00DDAAC9 /* SDWebImage */; };
-		FBECA9BE2EC1C50F0013A5E6 /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = FBECA9BD2EC1C50F0013A5E6 /* SnapKit */; };
 		FBECA9C42EC1C5250013A5E6 /* AutoCodable in Frameworks */ = {isa = PBXBuildFile; productRef = FBECA9C32EC1C5250013A5E6 /* AutoCodable */; };
 		FBECA9CA2EC1C8240013A5E6 /* CocoaLumberjackSwift in Frameworks */ = {isa = PBXBuildFile; productRef = FBECA9C92EC1C8240013A5E6 /* CocoaLumberjackSwift */; };
 		FBECAA1D2EC1C8860013A5E6 /* CocoaLumberjackSwiftLogBackend in Frameworks */ = {isa = PBXBuildFile; productRef = FBECAA1C2EC1C8860013A5E6 /* CocoaLumberjackSwiftLogBackend */; };
@@ -316,10 +316,10 @@
 				FB696C172EC96C0F00FAD639 /* MJRefresh in Frameworks */,
 				FB9CD11B2EC1EEA10033B14B /* FirebaseCrashlytics in Frameworks */,
 				FBECA9C42EC1C5250013A5E6 /* AutoCodable in Frameworks */,
-				FBECA9BE2EC1C50F0013A5E6 /* SnapKit in Frameworks */,
 				FB9CD11E2EC1EEF30033B14B /* GoogleSignIn in Frameworks */,
 				FB9EAE7B2F011ACD00E77B7C /* StoreKit.framework in Frameworks */,
 				314B1B286681A79A6D153299 /* Pods_Gami.framework in Frameworks */,
+				FB31D8282F17353D0075F690 /* SnapKit in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -416,13 +416,13 @@
 			mainGroup = FBFE13B72EBC39B000DCE6E9;
 			minimizedProjectReferenceProxies = 1;
 			packageReferences = (
-				FBECA9BC2EC1C50F0013A5E6 /* XCRemoteSwiftPackageReference "SnapKit" */,
 				FBECA9C22EC1C5250013A5E6 /* XCRemoteSwiftPackageReference "AutoCodable" */,
 				FBECAA192EC1C8860013A5E6 /* XCRemoteSwiftPackageReference "CocoaLumberjack" */,
 				FB9CD1172EC1EEA10033B14B /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
 				FB9CD11C2EC1EEF30033B14B /* XCRemoteSwiftPackageReference "GoogleSignIn-iOS" */,
 				FB696C152EC96C0F00FAD639 /* XCRemoteSwiftPackageReference "MJRefresh" */,
 				FB9FCD242EF25D6B00DDAAC9 /* XCRemoteSwiftPackageReference "SDWebImage" */,
+				FB31D8242F1734DB0075F690 /* XCRemoteSwiftPackageReference "SnapKit" */,
 			);
 			preferredProjectObjectVersion = 77;
 			productRefGroup = FBFE13C12EBC39B000DCE6E9 /* Products */;
@@ -772,6 +772,14 @@
 /* End XCConfigurationList section */
 
 /* Begin XCRemoteSwiftPackageReference section */
+		FB31D8242F1734DB0075F690 /* XCRemoteSwiftPackageReference "SnapKit" */ = {
+			isa = XCRemoteSwiftPackageReference;
+			repositoryURL = "http://8.134.139.102:10880/chenwenyi/SnapKit.git";
+			requirement = {
+				kind = revision;
+				revision = 89a54dd7b8cd88f882a03fbd2553badbe9729940;
+			};
+		};
 		FB696C152EC96C0F00FAD639 /* XCRemoteSwiftPackageReference "MJRefresh" */ = {
 			isa = XCRemoteSwiftPackageReference;
 			repositoryURL = "http://8.134.139.102:10880/chenwenyi/MJRefresh.git";
@@ -804,14 +812,6 @@
 				minimumVersion = 5.21.3;
 			};
 		};
-		FBECA9BC2EC1C50F0013A5E6 /* XCRemoteSwiftPackageReference "SnapKit" */ = {
-			isa = XCRemoteSwiftPackageReference;
-			repositoryURL = "http://8.134.139.102:10880/chenwenyi/SnapKit.git";
-			requirement = {
-				kind = upToNextMajorVersion;
-				minimumVersion = 5.7.1;
-			};
-		};
 		FBECA9C22EC1C5250013A5E6 /* XCRemoteSwiftPackageReference "AutoCodable" */ = {
 			isa = XCRemoteSwiftPackageReference;
 			repositoryURL = "http://8.134.139.102:10880/chenwenyi/AutoCodable.git";
@@ -839,6 +839,11 @@
 /* End XCRemoteSwiftPackageReference section */
 
 /* Begin XCSwiftPackageProductDependency section */
+		FB31D8272F17353D0075F690 /* SnapKit */ = {
+			isa = XCSwiftPackageProductDependency;
+			package = FB31D8242F1734DB0075F690 /* XCRemoteSwiftPackageReference "SnapKit" */;
+			productName = SnapKit;
+		};
 		FB696C162EC96C0F00FAD639 /* MJRefresh */ = {
 			isa = XCSwiftPackageProductDependency;
 			package = FB696C152EC96C0F00FAD639 /* XCRemoteSwiftPackageReference "MJRefresh" */;
@@ -864,11 +869,6 @@
 			package = FB9FCD242EF25D6B00DDAAC9 /* XCRemoteSwiftPackageReference "SDWebImage" */;
 			productName = SDWebImage;
 		};
-		FBECA9BD2EC1C50F0013A5E6 /* SnapKit */ = {
-			isa = XCSwiftPackageProductDependency;
-			package = FBECA9BC2EC1C50F0013A5E6 /* XCRemoteSwiftPackageReference "SnapKit" */;
-			productName = SnapKit;
-		};
 		FBECA9C32EC1C5250013A5E6 /* AutoCodable */ = {
 			isa = XCSwiftPackageProductDependency;
 			package = FBECA9C22EC1C5250013A5E6 /* XCRemoteSwiftPackageReference "AutoCodable" */;

+ 1 - 2
Lanu.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -186,8 +186,7 @@
       "kind" : "remoteSourceControl",
       "location" : "http://8.134.139.102:10880/chenwenyi/SnapKit.git",
       "state" : {
-        "revision" : "2842e6e84e82eb9a8dac0100ca90d9444b0307f4",
-        "version" : "5.7.1"
+        "revision" : "89a54dd7b8cd88f882a03fbd2553badbe9729940"
       }
     },
     {

+ 1 - 1
Lanu/Common/Views/Gender/LNGenderView.swift

@@ -43,7 +43,7 @@ extension LNGenderView {
     private func setupViews() {
         addSubview(genderIc)
         genderIc.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.width.equalTo(0).priority(.low)
             make.height.equalTo(0).priority(.low)
         }

+ 5 - 5
Lanu/Common/Views/ImagePreview/LNImagePreviewCell.swift

@@ -63,20 +63,20 @@ extension LNImagePreviewCell {
             if let image, let viewController {
                 if image.size.width / image.size.height > viewController.view.bounds.width / viewController.view.bounds.height {
                     imageView.snp.remakeConstraints { make in
-                        make.directionalEdges.equalToSuperview()
+                        make.edges.equalToSuperview()
                         make.width.equalToSuperview()
                         make.height.equalTo(self.imageView.snp.width).multipliedBy(image.size.height / image.size.width)
                     }
                 } else {
                     imageView.snp.remakeConstraints { make in
-                        make.directionalEdges.equalToSuperview()
+                        make.edges.equalToSuperview()
                         make.height.equalToSuperview()
                         make.width.equalTo(self.imageView.snp.height).multipliedBy(image.size.width / image.size.height)
                     }
                 }
             } else {
                 imageView.snp.remakeConstraints { make in
-                    make.directionalEdges.equalToSuperview()
+                    make.edges.equalToSuperview()
                     make.width.height.equalTo(0)
                 }
             }
@@ -213,14 +213,14 @@ extension LNImagePreviewCell {
         scrollView.showsHorizontalScrollIndicator = false
         contentView.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         imageView.contentMode = .scaleAspectFit
         imageView.backgroundColor = .clear
         scrollView.addSubview(imageView)
         imageView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.width.height.equalTo(0)
         }
         

+ 3 - 3
Lanu/Common/Views/ImagePreview/LNImagePreviewController.swift

@@ -106,14 +106,14 @@ extension LNImagePreviewController {
         collectionView.delegate = self
         view.addSubview(collectionView)
         collectionView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         self.collectionView = collectionView
         
         let fakeBar = buildFakeNavBar()
         view.addSubview(fakeBar)
         fakeBar.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
     }
@@ -126,7 +126,7 @@ extension LNImagePreviewController {
         let barView = UIView()
         fakeBar.addSubview(barView)
         barView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.height.equalTo(navigationController?.navigationBar.bounds.height ?? 44)
         }

+ 3 - 3
Lanu/Common/Views/ImageUpload/LNFeedbackImageUploadView.swift

@@ -62,7 +62,7 @@ class LNFeedbackImageUploadView: UIView {
         container.isHidden = true
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         imageView.layer.cornerRadius = 10
@@ -70,14 +70,14 @@ class LNFeedbackImageUploadView: UIView {
         imageView.contentMode = .scaleAspectFill
         container.addSubview(imageView)
         imageView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         progressCover.isHidden = true
         progressCover.backgroundColor = .black.withAlphaComponent(0.3)
         container.addSubview(progressCover)
         progressCover.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         progressCover.addSubview(progressView)

+ 1 - 1
Lanu/Common/Views/ImageUpload/LNMultiImagesUploadView.swift

@@ -82,7 +82,7 @@ extension LNMultiImagesUploadView {
         photoView.itemDistribution = .equalSpacing
         addSubview(photoView)
         photoView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.height.equalTo(0).priority(.low)
         }
         

+ 1 - 1
Lanu/Common/Views/ImageUpload/LNUploadImageView.swift

@@ -49,7 +49,7 @@ class LNUploadImageView: UIImageView {
         progressCover.backgroundColor = .black.withAlphaComponent(0.3)
         addSubview(progressCover)
         progressCover.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         progressCover.addSubview(progressView)

+ 3 - 3
Lanu/Common/Views/LNBirthdayDatePickerPanel.swift

@@ -34,7 +34,7 @@ extension LNBirthdayDatePickerPanel {
         let header = UIView()
         container.addSubview(header)
         header.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.height.equalTo(50)
         }
@@ -61,7 +61,7 @@ extension LNBirthdayDatePickerPanel {
         }), for: .touchUpInside)
         container.addSubview(confirm)
         confirm.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(22)
+            make.horizontalEdges.equalToSuperview().inset(22)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 10)
             make.height.equalTo(47)
         }
@@ -72,7 +72,7 @@ extension LNBirthdayDatePickerPanel {
         datePicker.maximumDate = Date().yearAgo(-18)
         container.addSubview(datePicker)
         datePicker.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(header.snp.bottom)
             make.bottom.equalTo(confirm.snp.top).offset(-10)
         }

+ 3 - 3
Lanu/Common/Views/LNPopupView.swift

@@ -37,7 +37,7 @@ class LNPopupView: UIView {
             return
         }
         snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         moveToHiddenPosition()
         layoutIfNeeded()
@@ -83,7 +83,7 @@ extension LNPopupView {
         }
         insertSubview(bg, at: 0)
         bg.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         container.backgroundColor = .white
@@ -94,7 +94,7 @@ extension LNPopupView {
         let dismissView = UIView()
         container.addSubview(dismissView)
         dismissView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         dismissView.onTap { [weak self] in
             guard let self else { return }

+ 1 - 1
Lanu/Common/Views/LNVoiceWaveView.swift

@@ -83,7 +83,7 @@ extension LNVoiceWaveView {
         stackView.alignment = .center
         addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
 }

+ 2 - 2
Lanu/Common/Views/Loading/LNLoadingView.swift

@@ -19,7 +19,7 @@ class LNLoadingView: UIView {
     func show() {
         UIView.appKeyWindow?.addSubview(self)
         self.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
     
@@ -66,7 +66,7 @@ extension LNLoadingView {
         tipsLabel.textColor = .text_1
         container.addSubview(tipsLabel)
         tipsLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(20)
+            make.horizontalEdges.equalToSuperview().inset(20)
             make.bottom.equalToSuperview().offset(-12)
             make.top.equalTo(ic.snp.bottom).offset(4)
         }

+ 3 - 3
Lanu/Common/Views/Menu/LNBottomSheetMenu.swift

@@ -71,7 +71,7 @@ extension LNBottomSheetMenu {
         
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.bottom.equalToSuperview().offset(-safeBottomInset - 10)
         }
@@ -84,9 +84,9 @@ extension LNBottomSheetMenu {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.height.equalTo(1)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         return container

+ 3 - 3
Lanu/Common/Views/Menu/LNCommonAlertView.swift

@@ -102,7 +102,7 @@ extension LNCommonAlertView {
         }
         addSubview(background)
         background.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         container.backgroundColor = .fill
@@ -131,7 +131,7 @@ extension LNCommonAlertView {
         messageViews.spacing = 10
         container.addSubview(messageViews)
         messageViews.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(24)
+            make.horizontalEdges.equalToSuperview().inset(24)
             make.top.equalToSuperview().offset(30)
         }
         
@@ -150,7 +150,7 @@ extension LNCommonAlertView {
         buttonViews.spacing = 16
         container.addSubview(buttonViews)
         buttonViews.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(50)
+            make.horizontalEdges.equalToSuperview().inset(50)
             make.top.equalTo(messageViews.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-30)
         }

+ 1 - 1
Lanu/Common/Views/NoMoreView/LNNoMoreDataView.swift

@@ -63,7 +63,7 @@ extension LNNoMoreDataView {
         tipsLabel.textAlignment = .center
         addSubview(tipsLabel)
         tipsLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(imageView.snp.bottom).offset(14)
             make.bottom.equalToSuperview()
         }

+ 2 - 2
Lanu/Common/Views/StackView/LNAutoFillStackView.swift

@@ -83,7 +83,7 @@ extension LNAutoFillStackView {
                 curLine.append($0)
                 totalWidth = $0.frame.width
             } else {
-                if totalWidth + $0.bounds.width + 10 > maxWidth {
+                if totalWidth + $0.bounds.width + itemSpacing > maxWidth {
                     lines.append(curLine)
                     
                     curLine = []
@@ -92,7 +92,7 @@ extension LNAutoFillStackView {
                 if curLine.isEmpty {
                     totalWidth = $0.bounds.width
                 } else {
-                    totalWidth += $0.bounds.width + 10
+                    totalWidth += $0.bounds.width + itemSpacing
                 }
                 curLine.append($0)
             }

+ 1 - 1
Lanu/Common/Views/StarScore/LNFiveStarScoreView.swift

@@ -82,7 +82,7 @@ extension LNFiveStarScoreView {
         stackView.distribution = .equalSpacing
         addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         for _ in 0..<5 {

+ 1 - 1
Lanu/Common/Views/StarScore/LNStarScoreView.swift

@@ -89,7 +89,7 @@ extension LNStarScoreView {
         grayIc.image = .init(named: curType.emptyIcName)!
         addSubview(grayIc)
         grayIc.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.width.equalTo(grayIc.image!.size.width)
             make.height.equalTo(grayIc.image!.size.height)
         }

+ 1 - 1
Lanu/Common/Views/TextView/LNCommonTextView.swift

@@ -87,7 +87,7 @@ extension LNCommonTextView {
         textView.visiableView = self
         addSubview(textView)
         textView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalToSuperview().offset(12)
             make.bottom.equalTo(textLengthLabel.snp.top)
         }

+ 2 - 2
Lanu/Views/Game/Category/LNGameCategoryListView.swift

@@ -162,7 +162,7 @@ extension LNGameCategoryListView {
         collectionView.register(LNGameCategoryListHeader.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: LNGameCategoryListHeader.className)
         addSubview(collectionView)
         collectionView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
 }
@@ -174,7 +174,7 @@ private class LNGameCategoryListCell: UICollectionViewCell {
         
         contentView.addSubview(tabItemView)
         tabItemView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
     

+ 2 - 2
Lanu/Views/Game/Category/LNGameCategoryTabView.swift

@@ -75,7 +75,7 @@ extension LNGameCategoryTabView {
         indicator.snp.remakeConstraints { make in
             make.centerY.equalTo(itemView)
             make.height.equalTo(24)
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
         }
         
         UIView.animate(withDuration: 0.3) { [weak self] in
@@ -96,7 +96,7 @@ extension LNGameCategoryTabView {
         scrollView.showsHorizontalScrollIndicator = false
         addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let fakeView = UIView()

+ 5 - 5
Lanu/Views/Game/MateFilter/LNGameCategoryFilterPanel.swift

@@ -62,7 +62,7 @@ extension LNGameCategoryFilterPanel {
     private func handleClickTab(view: UIView, typeItem: LNGameTypeItemVO) {
         indicator.isHidden = false
         indicator.snp.remakeConstraints { make in
-            make.directionalEdges.equalTo(view).inset(4)
+            make.edges.equalTo(view).inset(4)
         }
         UIView.animate(withDuration: 0.25) { [weak self] in
             guard let self else { return }
@@ -80,21 +80,21 @@ extension LNGameCategoryFilterPanel {
         container.backgroundColor = .fill
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.verticalEdges.equalToSuperview()
         }
         
         let tabView = buildTabView()
         container.addSubview(tabView)
         tabView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(11)
+            make.horizontalEdges.equalToSuperview().inset(11)
             make.top.equalToSuperview().offset(12)
         }
         
         let listView = buildListView()
         container.addSubview(listView)
         listView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(11)
+            make.horizontalEdges.equalToSuperview().inset(11)
             make.top.equalTo(tabView.snp.bottom).offset(12)
             make.bottom.equalToSuperview().offset(-12)
         }
@@ -181,7 +181,7 @@ private class LNGameCategoryFilterCell: UICollectionViewCell {
         label.textAlignment = .center
         contentView.addSubview(label)
         label.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
         }
     }

+ 1 - 1
Lanu/Views/Game/MateFilter/LNGameFilterPanel.swift

@@ -95,7 +95,7 @@ extension LNGameFilterPanel {
         scrollView.isScrollEnabled = false
         container.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(titleLabel.snp.bottom).offset(12)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 10)
         }

+ 5 - 5
Lanu/Views/Game/MateFilter/LNGameMateFilterPanel.swift

@@ -83,7 +83,7 @@ extension LNGameMateFilterPanel {
         container.backgroundColor = .fill
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview()
         }
         
@@ -92,14 +92,14 @@ extension LNGameMateFilterPanel {
         scrollView.showsHorizontalScrollIndicator = false
         container.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(14)
+            make.edges.equalToSuperview().inset(14)
         }
         
         stackView.axis = .vertical
         stackView.spacing = 12
         scrollView.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.width.equalToSuperview()
         }
         
@@ -198,7 +198,7 @@ private class LNGameMateFilterItemView: UIView {
         titleLabel.textAlignment = .center
         addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(8)
+            make.horizontalEdges.equalToSuperview().inset(8)
             make.centerY.equalToSuperview()
         }
         
@@ -228,7 +228,7 @@ struct LNGameMateFilterPanelPreview: UIViewRepresentable {
         let view = LNGameMateFilterPanel()
         container.addSubview(view)
         view.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.height.equalToSuperview().multipliedBy(0.6)
         }

+ 3 - 3
Lanu/Views/Game/MateList/LNGameMateListCell.swift

@@ -157,7 +157,7 @@ extension LNGameMateListCell {
             .resizableImage(withCapInsets: .init(top: 95, left: 103, bottom: 30, right: 168))
         container.addSubview(bg)
         bg.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let avatar = buildAvatar()
@@ -217,7 +217,7 @@ extension LNGameMateListCell {
         
         container.addSubview(onlineView)
         onlineView.snp.makeConstraints { make in
-            make.directionalEdges.equalTo(avatar).inset(-2)
+            make.edges.equalTo(avatar).inset(-2)
         }
         
         playButton.setBackgroundImage(.primary_7, for: .normal)
@@ -416,7 +416,7 @@ extension LNGameMateListCell {
         bg.image = .init(named: "ic_game_mate_list_cell_bubble")
         container.addSubview(bg)
         bg.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             if let image = bg.image {
                 make.height.equalTo(image.size.height)
             }

+ 1 - 1
Lanu/Views/Game/Skill/LNSkillBottomMenuView.swift

@@ -170,7 +170,7 @@ extension LNSkillBottomMenuView {
         faceIc.image = .init(named: "ic_skill_chat_face")
         container.addSubview(faceIc)
         faceIc.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.leading.equalToSuperview()
             make.width.height.equalTo(24)
         }

+ 9 - 9
Lanu/Views/Game/Skill/LNSkillDetailViewController.swift

@@ -93,7 +93,7 @@ extension LNSkillDetailViewController {
         stackView.axis = .vertical
         view.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.bottom.equalTo(view.safeAreaLayoutGuide.snp.bottom)
         }
@@ -110,7 +110,7 @@ extension LNSkillDetailViewController {
         let fakeView = UIView()
         scrollView.addSubview(fakeView)
         fakeView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.width.equalToSuperview()
             make.top.equalToSuperview()
             make.height.equalTo(0)
@@ -119,14 +119,14 @@ extension LNSkillDetailViewController {
         let cover = buildCover()
         scrollView.addSubview(cover)
         cover.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let gameView = buildGameView()
         scrollView.addSubview(gameView)
         gameView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(cover.snp.bottom).offset(-35)
             make.bottom.equalToSuperview()
         }
@@ -134,7 +134,7 @@ extension LNSkillDetailViewController {
         let userInfoView = buildUserInfoView()
         scrollView.addSubview(userInfoView)
         userInfoView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalTo(gameView.snp.top).offset(-10)
         }
         
@@ -144,7 +144,7 @@ extension LNSkillDetailViewController {
         let navBar = buildFakeNavBar()
         view.addSubview(navBar)
         navBar.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
     }
@@ -209,7 +209,7 @@ extension LNSkillDetailViewController {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(gameNameLabel.snp.bottom).offset(10)
             make.height.equalTo(1)
         }
@@ -219,13 +219,13 @@ extension LNSkillDetailViewController {
         descLabel.numberOfLines = 0
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(line.snp.bottom).offset(10)
         }
         
         container.addSubview(tagView)
         tagView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(descLabel.snp.bottom).offset(14)
             make.height.equalTo(0).priority(.low)
         }

+ 1 - 1
Lanu/Views/Game/Skill/LNSkillPhotosView.swift

@@ -99,7 +99,7 @@ extension LNSkillPhotosView {
         stackView.spacing = 0
         scrollView.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
 }

+ 2 - 2
Lanu/Views/Game/Skill/LNSkillTagView.swift

@@ -37,7 +37,7 @@ class LNSkillTagView: UIView {
             container.addSubview(titleLabel)
             titleLabel.snp.makeConstraints { make in
                 make.centerY.equalToSuperview()
-                make.directionalHorizontalEdges.equalToSuperview().inset(10)
+                make.horizontalEdges.equalToSuperview().inset(10)
             }
             container.layoutIfNeeded()
             itemViews.append(container)
@@ -56,7 +56,7 @@ extension LNSkillTagView {
         stackView.itemSpacing = 10
         addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
 }

+ 1 - 1
Lanu/Views/Game/Skill/LNSkillVoiceBarView.swift

@@ -92,7 +92,7 @@ extension LNSkillVoiceBarView {
         }), for: .touchUpInside)
         addSubview(button)
         button.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         playStateIc.image = .init(named: "ic_voice_play")

+ 1 - 1
Lanu/Views/Home/GameTab/LNHomeGameTabItemView.swift

@@ -68,7 +68,7 @@ extension LNHomeGameTabItemView {
         cover.clipsToBounds = true
         addSubview(cover)
         cover.snp.makeConstraints { make in
-            make.directionalEdges.equalTo(selectedBorder).inset(1)
+            make.edges.equalTo(selectedBorder).inset(1)
         }
         
         nameLabel.textAlignment = .center

+ 1 - 1
Lanu/Views/Home/GameTab/LNMainGameTabView.swift

@@ -75,7 +75,7 @@ class LNHomeGameTabView: UIView {
 extension LNHomeGameTabView {
     private func handleSelectAt(_ itemView: LNHomeGameTabItemView, animated: Bool = true) {
         indicator.snp.remakeConstraints { make in
-            make.directionalHorizontalEdges.equalTo(itemView)
+            make.horizontalEdges.equalTo(itemView)
             make.bottom.equalToSuperview()
         }
         if animated {

+ 2 - 2
Lanu/Views/Home/LNHomeGameMatePanel.swift

@@ -53,7 +53,7 @@ extension LNHomeGameMatePanel {
             gameTab.delegate = self
             addSubview(gameTab)
             gameTab.snp.makeConstraints { make in
-                make.directionalHorizontalEdges.equalToSuperview().inset(16)
+                make.horizontalEdges.equalToSuperview().inset(16)
                 make.top.equalToSuperview()
                 make.height.equalTo(67)
             }
@@ -64,7 +64,7 @@ extension LNHomeGameMatePanel {
             gameTab.delegate = self
             addSubview(gameTab)
             gameTab.snp.makeConstraints { make in
-                make.directionalHorizontalEdges.equalToSuperview().inset(16)
+                make.horizontalEdges.equalToSuperview().inset(16)
                 make.top.equalToSuperview()
                 make.height.equalTo(78)
             }

+ 2 - 2
Lanu/Views/Home/LNHomeTopTabView.swift

@@ -92,7 +92,7 @@ extension LNHomeTopTabView {
         scrollView.showsVerticalScrollIndicator = false
         addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let fakeView = UIView()
@@ -111,7 +111,7 @@ extension LNHomeTopTabView {
         stackView.distribution = .equalSpacing
         scrollView.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
 }

+ 1 - 1
Lanu/Views/Home/LNHomeViewController.swift

@@ -158,7 +158,7 @@ extension LNHomeViewController {
         stackView.spacing = 0
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         return container

+ 1 - 1
Lanu/Views/IM/Chat/Cells/LNIMChatBaseMessageCell.swift

@@ -144,7 +144,7 @@ extension LNIMChatBaseMessageCell {
         holder.layer.cornerRadius = 12
         holder.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(8)
+            make.horizontalEdges.equalToSuperview().inset(8)
             make.top.equalToSuperview().offset(8)
             make.bottom.equalTo(stackView.snp.top).offset(-4)
         }

+ 1 - 1
Lanu/Views/IM/Chat/Cells/LNIMChatImageMessageCell.swift

@@ -40,7 +40,7 @@ class LNIMChatImageMessageCell: LNIMChatBaseMessageCell {
         imageIc.isUserInteractionEnabled = true
         container.addSubview(imageIc)
         imageIc.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.width.equalTo(266)
             make.height.equalTo(202)
         }

+ 2 - 2
Lanu/Views/IM/Chat/Cells/LNIMChatOrderMessageCell.swift

@@ -146,7 +146,7 @@ extension LNIMChatOrderMessageCell {
         container.layer.cornerRadius = 12
         contentView.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview()
             make.bottom.equalToSuperview().offset(-8)
         }
@@ -156,7 +156,7 @@ extension LNIMChatOrderMessageCell {
         mainStackView.spacing = 12
         container.addSubview(mainStackView)
         mainStackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.verticalEdges.equalToSuperview().inset(12)
         }
         

+ 2 - 2
Lanu/Views/IM/Chat/Cells/LNIMChatSystemMessageCell.swift

@@ -45,8 +45,8 @@ extension LNIMChatSystemMessageCell {
         contentLabel.textColor = .text_3
         container.addSubview(contentLabel)
         contentLabel.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview().inset(4)
-            make.directionalHorizontalEdges.equalToSuperview().inset(8)
+            make.verticalEdges.equalToSuperview().inset(4)
+            make.horizontalEdges.equalToSuperview().inset(8)
         }
     }
 }

+ 1 - 1
Lanu/Views/IM/Chat/Cells/LNIMChatTextMessageCell.swift

@@ -26,7 +26,7 @@ class LNIMChatTextMessageCell: LNIMChatBaseMessageCell {
         contextLabel.numberOfLines = 0
         container.addSubview(contextLabel)
         contextLabel.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
 }

+ 2 - 2
Lanu/Views/IM/Chat/Cells/LNIMChatUnknownMessageCell.swift

@@ -43,8 +43,8 @@ extension LNIMChatUnknownMessageCell {
         contentLabel.textColor = .text_3
         container.addSubview(contentLabel)
         contentLabel.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview().inset(4)
-            make.directionalHorizontalEdges.equalToSuperview().inset(8)
+            make.verticalEdges.equalToSuperview().inset(4)
+            make.horizontalEdges.equalToSuperview().inset(8)
         }
     }
 }

+ 5 - 5
Lanu/Views/IM/Chat/Cells/LNIMChatVoiceMessageCell.swift

@@ -67,7 +67,7 @@ class LNIMChatVoiceMessageCell: LNIMChatBaseMessageCell {
             indicator.backgroundColor = .init(hex: "#15E5E2")
         }
         waveProgress.snp.remakeConstraints { make in
-            make.leading.directionalVerticalEdges.equalTo(waveBg)
+            make.leading.verticalEdges.equalTo(waveBg)
             if duration == 0 || currentTime == 0 {
                 make.width.equalTo(0)
             } else {
@@ -100,7 +100,7 @@ class LNIMChatVoiceMessageCell: LNIMChatBaseMessageCell {
             indicator.backgroundColor = .init(hex: "#1789FF")
         }
         waveProgress.snp.remakeConstraints { make in
-            make.leading.directionalVerticalEdges.equalTo(waveBg)
+            make.leading.verticalEdges.equalTo(waveBg)
             make.width.equalTo(0)
         }
         
@@ -117,7 +117,7 @@ class LNIMChatVoiceMessageCell: LNIMChatBaseMessageCell {
         voiceView.spacing = 8
         container.addSubview(voiceView)
         voiceView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         controlIc.isUserInteractionEnabled = false
@@ -128,13 +128,13 @@ class LNIMChatVoiceMessageCell: LNIMChatBaseMessageCell {
         waveProgress.clipsToBounds = true
         waveBg.addSubview(waveProgress)
         waveProgress.snp.makeConstraints { make in
-            make.leading.directionalVerticalEdges.equalToSuperview()
+            make.leading.verticalEdges.equalToSuperview()
             make.width.equalTo(0)
         }
         
         waveProgress.addSubview(waveBlack)
         waveBlack.snp.makeConstraints { make in
-            make.leading.directionalVerticalEdges.equalToSuperview()
+            make.leading.verticalEdges.equalToSuperview()
         }
         
         indicator.backgroundColor = .text_3

+ 1 - 1
Lanu/Views/IM/Chat/Emoji/LNIMChatEmojiCell.swift

@@ -44,7 +44,7 @@ extension LNIMChatEmojiCell {
     private func setupViews() {
         contentView.addSubview(imageView)
         imageView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
 }

+ 2 - 2
Lanu/Views/IM/Chat/Emoji/LNIMChatEmojiPanel.swift

@@ -107,14 +107,14 @@ extension LNIMChatEmojiPanel {
         let collectionView = buildCollectionView()
         addSubview(collectionView)
         collectionView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let line = UIView()
         line.backgroundColor = .init(hex: "#DBDBDB")
         addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.height.equalTo(0.5)
         }

+ 7 - 7
Lanu/Views/IM/Chat/GameMate/LNIMChatGameMateOrderView.swift

@@ -148,7 +148,7 @@ extension LNIMChatGameMateOrderView {
         }
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview()
             make.top.equalToSuperview().offset(8)
         }
@@ -157,7 +157,7 @@ extension LNIMChatGameMateOrderView {
         stackView.spacing = 6
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.verticalEdges.equalToSuperview().inset(11)
         }
         
@@ -211,7 +211,7 @@ extension LNIMChatGameMateOrderView {
         replyTitleLabel.textColor = .text_5
         replyView.addSubview(replyTitleLabel)
         replyTitleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -265,7 +265,7 @@ extension LNIMChatGameMateOrderView {
         descLabel.textColor = .text_3
         textView.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(titleLabel.snp.bottom).offset(2)
         }
@@ -327,7 +327,7 @@ extension LNIMChatGameMateOrderView {
         line.backgroundColor = .fill_2
         extraView.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(-4)
+            make.horizontalEdges.equalToSuperview().inset(-4)
             make.top.equalToSuperview()
             make.height.equalTo(0.5)
         }
@@ -337,7 +337,7 @@ extension LNIMChatGameMateOrderView {
         extraLabel.numberOfLines = 0
         extraView.addSubview(extraLabel)
         extraLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(line.snp.bottom).offset(5)
             make.bottom.equalToSuperview().offset(-2)
         }
@@ -359,7 +359,7 @@ struct LNIMChatGameMateOrderViewPreview: UIViewRepresentable {
         let view = LNIMChatGameMateOrderView()
         container.addSubview(view)
         view.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.centerY.equalToSuperview()
         }
         

+ 6 - 6
Lanu/Views/IM/Chat/GameMate/LNIMChatGameMateSkillCell.swift

@@ -58,8 +58,8 @@ extension LNIMChatGameMateSkillCell {
         container.layer.borderColor = UIColor.fill.cgColor
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(4)
-            make.directionalVerticalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview().inset(4)
+            make.verticalEdges.equalToSuperview()
         }
         
         background.layer.cornerRadius = 11
@@ -68,7 +68,7 @@ extension LNIMChatGameMateSkillCell {
         background.alpha = 0.8
         container.addSubview(background)
         background.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(1).priority(.medium)
+            make.edges.equalToSuperview().inset(1).priority(.medium)
         }
         
         gameIc.layer.cornerRadius = 25
@@ -118,7 +118,7 @@ extension LNIMChatGameMateSkillCell {
         order.addSubview(orderTitle)
         orderTitle.snp.makeConstraints { make in
             make.centerY.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(17)
+            make.horizontalEdges.equalToSuperview().inset(17)
         }
         
         let infoView = UIView()
@@ -135,7 +135,7 @@ extension LNIMChatGameMateSkillCell {
         gameNameLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
         infoView.addSubview(gameNameLabel)
         gameNameLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -173,7 +173,7 @@ struct LNIMChatGameMateSkillCellPreview: UIViewRepresentable {
         let view = LNIMChatGameMateSkillCell()
         container.addSubview(view)
         view.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.centerY.equalToSuperview()
             make.height.equalTo(72)
         }

+ 3 - 3
Lanu/Views/IM/Chat/GameMate/LNIMChatGameMateSkillView.swift

@@ -181,7 +181,7 @@ extension LNIMChatGameMateSkillView {
         scrollView.delegate = self
         addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(14)
+            make.horizontalEdges.equalToSuperview().inset(14)
             make.bottom.equalToSuperview()
             make.top.equalToSuperview().offset(8)
             make.height.equalTo(72)
@@ -190,7 +190,7 @@ extension LNIMChatGameMateSkillView {
         let fakeView = UIView()
         scrollView.addSubview(fakeView)
         fakeView.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.leading.equalToSuperview()
             make.width.equalTo(0)
         }
@@ -199,7 +199,7 @@ extension LNIMChatGameMateSkillView {
         stackView.spacing = 0
         scrollView.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.height.equalToSuperview()
         }
         

+ 7 - 7
Lanu/Views/IM/Chat/InputMenu/LNIMChatInputMenuView.swift

@@ -47,11 +47,11 @@ extension LNIMChatInputMenuView: LNIMChatTextInputViewDelegate {
             guard granted else { return }
             
             textInput.snp.remakeConstraints { make in
-                make.directionalHorizontalEdges.equalToSuperview()
+                make.horizontalEdges.equalToSuperview()
                 make.top.equalTo(self.container.snp.bottom)
             }
             voiceInput.snp.remakeConstraints { make in
-                make.directionalEdges.equalToSuperview()
+                make.edges.equalToSuperview()
             }
             
             voiceInput.startRecord()
@@ -66,11 +66,11 @@ extension LNIMChatInputMenuView: LNIMChatTextInputViewDelegate {
 extension LNIMChatInputMenuView: LNIMChatVoiceInputViewDelegate {
     func onVoiceFinishInput() {
         voiceInput.snp.remakeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(container.snp.bottom)
         }
         textInput.snp.remakeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         UIView.animate(withDuration: 0.1) { [weak self] in
             guard let self else { return }
@@ -87,20 +87,20 @@ extension LNIMChatInputMenuView {
         addSubview(container)
         container.snp.makeConstraints { make in
             make.top.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
         }
         
         textInput.delegate = self
         container.addSubview(textInput)
         textInput.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         voiceInput.delegate = self
         container.addSubview(voiceInput)
         voiceInput.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(container.snp.bottom)
         }
     }

+ 1 - 1
Lanu/Views/IM/Chat/InputMenu/LNIMChatTextInputView.swift

@@ -203,7 +203,7 @@ extension LNIMChatTextInputView {
         let emoji = buildEmojiView()
         addSubview(emoji)
         emoji.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(inputMenu.snp.bottom).offset(10)
             make.bottom.equalToSuperview().priority(.medium)
             emojiHeight = make.height.equalTo(336).constraint

+ 2 - 2
Lanu/Views/IM/Chat/InputMenu/LNIMChatVoiceInputView.swift

@@ -87,14 +87,14 @@ extension LNIMChatVoiceInputView {
         let infoView = buildVoiceInfoView()
         addSubview(infoView)
         infoView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let controlView = buildVoiceControlView()
         addSubview(controlView)
         controlView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview().offset(-safeBottomInset)
             make.top.equalTo(infoView.snp.bottom)
         }

+ 1 - 1
Lanu/Views/IM/Chat/InputMenu/LNIMChatVoiceWaveView.swift

@@ -67,7 +67,7 @@ extension LNIMChatVoiceWaveView {
         stackView.distribution = .fill
         addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.trailing.equalToSuperview()
             make.width.equalTo(0).priority(.low)
         }

+ 2 - 2
Lanu/Views/IM/Chat/LNIMChatTopMenuView.swift

@@ -94,7 +94,7 @@ extension LNIMChatTopMenuView {
         let container = UIView()
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalToSuperview().offset(UIView.statusBarHeight)
             make.height.equalTo(44)
@@ -125,7 +125,7 @@ extension LNIMChatTopMenuView {
         }
         container.addSubview(infoStackView)
         infoStackView.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.leading.equalTo(backButton.snp.trailing).offset(8)
         }
         

+ 4 - 4
Lanu/Views/IM/Chat/LNIMChatViewController.swift

@@ -212,7 +212,7 @@ extension LNIMChatViewController {
         topMenu.viewModel = viewModel
         view.addSubview(topMenu)
         topMenu.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -220,7 +220,7 @@ extension LNIMChatViewController {
         stackView.spacing = 8
         view.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(topMenu.snp.bottom)
         }
         
@@ -236,7 +236,7 @@ extension LNIMChatViewController {
         bottomMenu.viewModel = viewModel
         view.addSubview(bottomMenu)
         bottomMenu.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
         }
         
@@ -254,7 +254,7 @@ extension LNIMChatViewController {
         tableView.contentInset = .init(top: 8, left: 0, bottom: 0, right: 0)
         view.addSubview(tableView)
         tableView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(stackView.snp.bottom)
             make.bottom.equalTo(bottomMenu.snp.top)
         }

+ 3 - 3
Lanu/Views/IM/Chat/UserMenu/LNIMChatUserMenuView.swift

@@ -43,7 +43,7 @@ extension LNIMChatUserMenuView {
         stackView.spacing = 0
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(10)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 10)
         }
@@ -232,9 +232,9 @@ extension LNIMChatUserMenuView {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.height.equalTo(1)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         return container

+ 3 - 3
Lanu/Views/IM/ConversationList/LNIMConversationCell.swift

@@ -93,7 +93,7 @@ extension LNIMConversationCell {
         
         contentView.addSubview(onlineView)
         onlineView.snp.makeConstraints { make in
-            make.directionalEdges.equalTo(avatar).inset(-2)
+            make.edges.equalTo(avatar).inset(-2)
         }
         
         let textView = buildTextView()
@@ -121,14 +121,14 @@ extension LNIMConversationCell {
         titleLabel.textColor = .text_5
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.top.equalToSuperview()
+            make.horizontalEdges.top.equalToSuperview()
         }
         
         messageLabel.font = .body_s
         messageLabel.textColor = .text_3
         container.addSubview(messageLabel)
         messageLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.bottom.equalToSuperview()
+            make.horizontalEdges.bottom.equalToSuperview()
             make.top.equalTo(titleLabel.snp.bottom).offset(5)
         }
         

+ 2 - 2
Lanu/Views/IM/ConversationList/LNIMConversationListController.swift

@@ -88,7 +88,7 @@ extension LNIMConversationListController {
         let topMenu = buildTopMenu()
         view.addSubview(topMenu)
         topMenu.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -97,7 +97,7 @@ extension LNIMConversationListController {
         stackView.spacing = 16
         view.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(topMenu.snp.bottom)
         }

+ 2 - 2
Lanu/Views/IM/ConversationList/LNIMNotificationPermissionView.swift

@@ -78,7 +78,7 @@ extension LNIMNotificationPermissionView {
         container.layer.cornerRadius = 12
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.verticalEdges.equalToSuperview()
             make.height.equalTo(50)
         }
@@ -139,7 +139,7 @@ extension LNIMNotificationPermissionView {
         textLabel.textColor = .text_5
         textView.addSubview(textLabel)
         textLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(titleLabel.snp.bottom).offset(2)
         }

+ 8 - 8
Lanu/Views/IM/Notify/Cell/LNIMOfficialMessageCell.swift

@@ -31,13 +31,13 @@ class LNIMOfficialMessageCell: UITableViewCell {
         if data.image.isEmpty {
             topCover.snp.remakeConstraints { make in
                 make.top.equalToSuperview()
-                make.directionalHorizontalEdges.equalToSuperview()
+                make.horizontalEdges.equalToSuperview()
                 make.height.equalTo(0)
             }
         } else {
             topCover.snp.remakeConstraints { make in
                 make.top.equalToSuperview()
-                make.directionalHorizontalEdges.equalToSuperview()
+                make.horizontalEdges.equalToSuperview()
                 make.height.equalTo(topCover.snp.width).multipliedBy(130.0/343)
             }
         }
@@ -59,7 +59,7 @@ extension LNIMOfficialMessageCell {
         container.backgroundColor = .fill
         contentView.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview()
             make.bottom.equalToSuperview().offset(-10)
         }
@@ -67,7 +67,7 @@ extension LNIMOfficialMessageCell {
         container.addSubview(topCover)
         topCover.snp.makeConstraints { make in
             make.top.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.height.equalTo(topCover.snp.width).multipliedBy(130.0/343)
         }
         
@@ -76,7 +76,7 @@ extension LNIMOfficialMessageCell {
         titleLabel.numberOfLines = 0
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(topCover.snp.bottom).offset(12)
         }
         
@@ -85,7 +85,7 @@ extension LNIMOfficialMessageCell {
         descLabel.numberOfLines = 0
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(titleLabel.snp.bottom).offset(6)
         }
         
@@ -93,7 +93,7 @@ extension LNIMOfficialMessageCell {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(descLabel.snp.bottom).offset(6)
             make.height.equalTo(0.5)
         }
@@ -101,7 +101,7 @@ extension LNIMOfficialMessageCell {
         let jumpView = UIView()
         container.addSubview(jumpView)
         jumpView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(line.snp.bottom)
             make.bottom.equalToSuperview()
             make.height.equalTo(41)

+ 1 - 1
Lanu/Views/IM/Notify/LNIMOfficialMessageViewController.swift

@@ -159,7 +159,7 @@ extension LNIMOfficialMessageViewController {
         tableView.delegate = self
         view.addSubview(tableView)
         tableView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.bottom.equalTo(view.safeAreaLayoutGuide.snp.bottom)
         }

+ 2 - 2
Lanu/Views/Login/LNLoginViewController.swift

@@ -26,7 +26,7 @@ extension LNLoginViewController {
         bg.image = .init(named: "ic_login_bg")
         view.addSubview(bg)
         bg.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
 #if DEBUG
@@ -41,7 +41,7 @@ extension LNLoginViewController {
         let google = buildGoogleLogin()
         view.addSubview(google)
         google.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(38)
+            make.horizontalEdges.equalToSuperview().inset(38)
             make.centerY.equalToSuperview().multipliedBy(1.5)
         }
         

+ 4 - 4
Lanu/Views/Login/Setup/LNBaseInfoSetupViewController.swift

@@ -177,14 +177,14 @@ extension LNBaseInfoSetupViewController {
         let navBar = buildFakeNavBar()
         view.addSubview(navBar)
         navBar.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let titleView = buildTitles()
         view.addSubview(titleView)
         titleView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(22)
+            make.horizontalEdges.equalToSuperview().inset(22)
             make.top.equalTo(fakeNavBar.snp.bottom).offset(22)
         }
         
@@ -192,7 +192,7 @@ extension LNBaseInfoSetupViewController {
         view.addSubview(baseInfo)
         baseInfo.snp.makeConstraints { make in
             make.centerY.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(22)
+            make.horizontalEdges.equalToSuperview().inset(22)
         }
         
         nextButton.setBackgroundImage(.primary_8, for: .normal)
@@ -283,7 +283,7 @@ extension LNBaseInfoSetupViewController {
         container.addSubview(avatar)
         avatar.snp.makeConstraints { make in
             make.width.height.equalTo(120)
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let editAvatar = UIButton()

+ 3 - 3
Lanu/Views/Login/Setup/LNGenderSetupViewController.swift

@@ -80,14 +80,14 @@ extension LNGenderSetupViewController {
         let navBar = buildFakeNavBar()
         view.addSubview(navBar)
         navBar.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let titles = buildTitles()
         view.addSubview(titles)
         titles.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(22)
+            make.horizontalEdges.equalToSuperview().inset(22)
             make.top.equalTo(fakeNavBar.snp.bottom).offset(22)
         }
         
@@ -95,7 +95,7 @@ extension LNGenderSetupViewController {
         view.addSubview(gender)
         gender.snp.makeConstraints { make in
             make.centerY.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         nextButton.setBackgroundImage(.primary_8, for: .normal)

+ 4 - 4
Lanu/Views/Login/Setup/LNInterestSetupViewController.swift

@@ -142,21 +142,21 @@ extension LNInterestSetupViewController {
         let navBar = buildFakeNavBar()
         view.addSubview(navBar)
         navBar.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let titleView = buildTitles()
         view.addSubview(titleView)
         titleView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(22)
+            make.horizontalEdges.equalToSuperview().inset(22)
             make.top.equalTo(fakeNavBar.snp.bottom).offset(22)
         }
         
         let listView = buildListView()
         view.addSubview(listView)
         listView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(horizentalSpace)
+            make.horizontalEdges.equalToSuperview().inset(horizentalSpace)
             make.top.equalTo(titleView.snp.bottom).offset(6)
         }
         
@@ -330,7 +330,7 @@ private class LNInterestItemCell: UICollectionViewCell {
         nameLabel.textAlignment = .center
         bg.addSubview(nameLabel)
         nameLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(6)
+            make.horizontalEdges.equalToSuperview().inset(6)
             make.bottom.equalToSuperview().offset(-6)
         }
     }

+ 2 - 2
Lanu/Views/Main/LNMainTabBar.swift

@@ -35,7 +35,7 @@ class LNMainTabBar: UITabBar {
         container.layer.masksToBounds = false
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(42)
+            make.horizontalEdges.equalToSuperview().inset(42)
             make.bottom.equalToSuperview().offset(-36)
             make.height.equalTo(60)
         }
@@ -46,7 +46,7 @@ class LNMainTabBar: UITabBar {
         blurView.clipsToBounds = true
         container.addSubview(blurView)
         blurView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let vibrancyEffect = UIVibrancyEffect(blurEffect: blurEffect)

+ 3 - 3
Lanu/Views/Order/Alerts/LNCreateOrderFailedPanel.swift

@@ -28,7 +28,7 @@ extension LNCreateOrderFailedPanel {
         bg.image = .init(named: "ic_order_bg")
         container.addSubview(bg)
         bg.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -48,7 +48,7 @@ extension LNCreateOrderFailedPanel {
         descLabel.textAlignment = .center
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(ic.snp.bottom).offset(16)
         }
         
@@ -65,7 +65,7 @@ extension LNCreateOrderFailedPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(descLabel.snp.bottom).offset(46)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 10)
             make.height.equalTo(47)

+ 2 - 2
Lanu/Views/Order/Alerts/LNCreateOrderSuccessPanel.swift

@@ -34,7 +34,7 @@ extension LNCreateOrderSuccessPanel {
         bg.image = .init(named: "ic_order_bg")
         container.addSubview(bg)
         bg.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -92,7 +92,7 @@ extension LNCreateOrderSuccessPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(descLabel.snp.bottom).offset(49)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 10)
             make.height.equalTo(47)

+ 1 - 1
Lanu/Views/Order/Create/LNCreateOrderFromSkillListPanel.swift

@@ -176,7 +176,7 @@ extension LNCreateOrderFromSkillListPanel {
         buttonView.layer.cornerRadius = 23.5
         container.addSubview(buttonView)
         buttonView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.verticalEdges.equalToSuperview()
             make.height.equalTo(47)
         }

+ 5 - 5
Lanu/Views/Order/Create/LNCreateOrderPanel.swift

@@ -135,7 +135,7 @@ extension LNCreateOrderPanel {
         stackView.spacing = 10
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalToSuperview().offset(20)
         }
         
@@ -183,7 +183,7 @@ extension LNCreateOrderPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(stackView.snp.bottom).offset(15)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 10)
             make.height.equalTo(47)
@@ -204,7 +204,7 @@ extension LNCreateOrderPanel {
         stackView.spacing = 0
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         stackView.addArrangedSubview(buildUserInfo())
@@ -246,7 +246,7 @@ extension LNCreateOrderPanel {
         skillTag.addSubview(gameNameLabel)
         gameNameLabel.snp.makeConstraints { make in
             make.centerY.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(14)
+            make.horizontalEdges.equalToSuperview().inset(14)
             make.width.lessThanOrEqualTo(82)
         }
         
@@ -262,7 +262,7 @@ extension LNCreateOrderPanel {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.height.equalTo(1)
             make.bottom.equalToSuperview()
         }

+ 4 - 4
Lanu/Views/Order/Create/LNCreateOrderViewController.swift

@@ -154,7 +154,7 @@ extension LNCreateOrderViewController {
         stackView.spacing = 10
         view.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(16)
         }
         
@@ -170,7 +170,7 @@ extension LNCreateOrderViewController {
         let menu = buildMenu()
         view.addSubview(menu)
         menu.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
         }
     }
@@ -263,7 +263,7 @@ extension LNCreateOrderViewController {
         line.backgroundColor = .fill_2
         infoView.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(11)
+            make.horizontalEdges.equalToSuperview().inset(11)
             make.bottom.equalToSuperview()
             make.height.equalTo(1)
         }
@@ -456,7 +456,7 @@ extension LNCreateOrderViewController {
         container.layer.cornerRadius = 23.5
         holder.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(16)
             make.bottom.equalToSuperview().offset(-view.safeBottomInset - 10)
         }

+ 2 - 2
Lanu/Views/Order/Detail/LNOrderDetailCardView.swift

@@ -66,7 +66,7 @@ extension LNOrderDetailCardView {
         stackView.spacing = curType == .normal ? 2 : 6
         addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.verticalEdges.equalToSuperview().inset(curType == .normal ? 8 : 10)
         }
         
@@ -148,7 +148,7 @@ extension LNOrderDetailCardView {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(10)
+            make.horizontalEdges.equalToSuperview().inset(10)
             make.centerY.equalToSuperview()
             make.height.equalTo(0.5)
         }

+ 7 - 7
Lanu/Views/Order/Detail/LNOrderDetailViewController.swift

@@ -191,14 +191,14 @@ extension LNOrderDetailViewController {
         
         view.addSubview(backgroundIc)
         backgroundIc.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let bottomMenu = buildBottomMenu()
         view.addSubview(bottomMenu)
         bottomMenu.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview().offset(-view.safeBottomInset - 10)
             make.height.equalTo(0).priority(.low)
         }
@@ -208,7 +208,7 @@ extension LNOrderDetailViewController {
         scrollView.showsHorizontalScrollIndicator = false
         view.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.bottom.equalTo(bottomMenu.snp.top)
         }
@@ -216,7 +216,7 @@ extension LNOrderDetailViewController {
         let fakeView = UIView()
         scrollView.addSubview(fakeView)
         fakeView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.width.equalToSuperview()
             make.height.equalTo(0)
@@ -225,7 +225,7 @@ extension LNOrderDetailViewController {
         let statusView = buildStatusView()
         scrollView.addSubview(statusView)
         statusView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(24)
+            make.horizontalEdges.equalToSuperview().inset(24)
             make.top.equalToSuperview().offset(44)
         }
          
@@ -234,7 +234,7 @@ extension LNOrderDetailViewController {
         stackView.spacing = 10
         scrollView.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview()
             make.top.equalTo(statusView.snp.bottom).offset(30)
         }
@@ -328,7 +328,7 @@ extension LNOrderDetailViewController {
         cover.isUserInteractionEnabled = false
         commentButton.addSubview(cover)
         cover.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(1)
+            make.edges.equalToSuperview().inset(1)
         }
         
         commentButton.isHidden = true

+ 3 - 3
Lanu/Views/Order/Detail/LNOrderRefundInfoView.swift

@@ -65,7 +65,7 @@ extension LNOrderRefundInfoView {
         holder.layer.cornerRadius = 12
         addSubview(holder)
         holder.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(titleLabel.snp.bottom).offset(8)
         }
         
@@ -74,7 +74,7 @@ extension LNOrderRefundInfoView {
         reasonLabel.numberOfLines = 0
         holder.addSubview(reasonLabel)
         reasonLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.verticalEdges.equalToSuperview().inset(10)
         }
         
@@ -92,7 +92,7 @@ extension LNOrderRefundInfoView {
         photosView.itemDistribution = .equalSpacing
         addSubview(photosView)
         photosView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview().offset(-16)
             make.top.equalTo(photoLabel.snp.bottom).offset(8)
         }

+ 3 - 3
Lanu/Views/Order/LNOrderCommentPanel.swift

@@ -70,7 +70,7 @@ extension LNOrderCommentPanel {
         titleLabel.textAlignment = .center
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(avatar.snp.bottom).offset(11)
         }
         
@@ -110,7 +110,7 @@ extension LNOrderCommentPanel {
         commentView.placeholderLabel.text = .init(key: "A00182")
         container.addSubview(commentView)
         commentView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(scoreView.snp.bottom).offset(12)
             make.height.equalTo(90)
         }
@@ -137,7 +137,7 @@ extension LNOrderCommentPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(commentView.snp.bottom).offset(25)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 15)
             make.height.equalTo(47)

+ 8 - 8
Lanu/Views/Order/OrderList/LNOrderListItemCell.swift

@@ -167,7 +167,7 @@ extension LNOrderListItemCell {
         container.layer.cornerRadius = 12
         contentView.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(6)
             make.bottom.equalToSuperview().offset(-6)
         }
@@ -175,7 +175,7 @@ extension LNOrderListItemCell {
         let top = buildTopView()
         container.addSubview(top)
         top.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(5)
         }
         
@@ -183,7 +183,7 @@ extension LNOrderListItemCell {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(11)
+            make.horizontalEdges.equalToSuperview().inset(11)
             make.top.equalTo(top.snp.bottom)
             make.height.equalTo(0.5)
         }
@@ -191,14 +191,14 @@ extension LNOrderListItemCell {
         let mid = buildMidView()
         container.addSubview(mid)
         mid.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(top.snp.bottom).offset(3)
         }
         
         let bottom = buildBottomView()
         container.addSubview(bottom)
         bottom.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(mid.snp.bottom).offset(3)
             make.bottom.equalToSuperview().offset(-5)
         }
@@ -334,7 +334,7 @@ extension LNOrderListItemCell {
         userNameLabel.font = .heading_h4
         textInfo.addSubview(userNameLabel)
         userNameLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -342,7 +342,7 @@ extension LNOrderListItemCell {
         gameLabel.textColor = .text_5
         textInfo.addSubview(gameLabel)
         gameLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(userNameLabel.snp.bottom).offset(2)
         }
@@ -396,7 +396,7 @@ struct LNOrderListItemCellPreview: UIViewRepresentable {
         let view = LNOrderListItemCell()
         container.addSubview(view)
         view.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.centerY.equalToSuperview()
             make.height.equalTo(133)
         }

+ 1 - 1
Lanu/Views/Order/OrderList/LNOrderListViewController.swift

@@ -127,7 +127,7 @@ extension LNOrderListViewController {
         
         view.addSubview(tableView)
         tableView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(6)
             make.bottom.equalToSuperview()
         }

+ 7 - 7
Lanu/Views/Order/OrderQR/LNOrderCustomView.swift

@@ -78,14 +78,14 @@ extension LNOrderCustomView {
         showView.isHidden = true
         addSubview(showView)
         showView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let editView = buildEditView()
         addSubview(editView)
         editView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
     }
     
@@ -97,14 +97,14 @@ extension LNOrderCustomView {
         container.layer.cornerRadius = 16
         editView.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(26)
         }
         
         let priceView = buildPriceView()
         container.addSubview(priceView)
         priceView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(16)
         }
         
@@ -112,7 +112,7 @@ extension LNOrderCustomView {
         line.backgroundColor = .fill_4
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(priceView.snp.bottom).offset(6)
             make.height.equalTo(0.5)
         }
@@ -120,7 +120,7 @@ extension LNOrderCustomView {
         let unit = buildEditUnitView()
         container.addSubview(unit)
         unit.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(line.snp.bottom).offset(6)
             make.bottom.equalToSuperview().offset(-12)
         }
@@ -149,7 +149,7 @@ extension LNOrderCustomView {
         }), for: .touchUpInside)
         editView.addSubview(generateButton)
         generateButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview().offset(-10)
             make.height.equalTo(47)
         }

+ 4 - 4
Lanu/Views/Order/OrderQR/LNOrderGenerateQRCodePanel.swift

@@ -77,27 +77,27 @@ extension LNOrderGenerateQRCodePanel {
         let skill = buildSkillView()
         container.addSubview(skill)
         skill.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
         let tab = buildTabView()
         container.addSubview(tab)
         tab.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(skill.snp.bottom)
         }
         
         container.addSubview(showView)
         showView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(tab.snp.bottom)
             make.bottom.equalToSuperview().offset(-36)
         }
         
         container.addSubview(customView)
         customView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(tab.snp.bottom)
             make.bottom.equalToSuperview().offset(-36)
         }

+ 2 - 2
Lanu/Views/Order/OrderQR/LNOrderQRCodeShowView.swift

@@ -85,7 +85,7 @@ extension LNOrderQRCodeShowView {
         
         container.addSubview(qrCodeIc)
         qrCodeIc.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(12)
+            make.edges.equalToSuperview().inset(12)
             make.width.height.equalTo(qrCodeSize)
         }
         
@@ -156,7 +156,7 @@ extension LNOrderQRCodeShowView {
         cover.isUserInteractionEnabled = false
         saveButton.insertSubview(cover, at: 0)
         cover.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(1.5)
+            make.edges.equalToSuperview().inset(1.5)
         }
         
         copyButton.layer.cornerRadius = 23.5

+ 1 - 1
Lanu/Views/Order/OrderQR/LNOrderQRTabView.swift

@@ -28,7 +28,7 @@ class LNOrderQRTabView: UIView {
             edit.isSelected = curType == .custom
             
             indicator.snp.remakeConstraints { make in
-                make.directionalEdges.equalTo(curType == .normal ? normal : edit)
+                make.edges.equalTo(curType == .normal ? normal : edit)
             }
             UIView.animate(withDuration: 0.25) { [weak self] in
                 guard let self else { return }

+ 1 - 1
Lanu/Views/Order/OrderQR/LNOrderShareImageGenerator.swift

@@ -151,7 +151,7 @@ extension LNOrderShareImageGenerator {
         tipsView.addSubview(tipsLabel)
         tipsLabel.snp.makeConstraints { make in
             make.verticalEdges.equalToSuperview().inset(6)
-            make.directionalHorizontalEdges.equalToSuperview().inset(21)
+            make.horizontalEdges.equalToSuperview().inset(21)
         }
         
         skillIc.layer.cornerRadius = 10

+ 8 - 8
Lanu/Views/Order/OrderRecords/LNOrderRecordCell.swift

@@ -140,7 +140,7 @@ extension LNOrderRecordCell {
         container.layer.cornerRadius = 12
         contentView.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(10)
             make.bottom.equalToSuperview()
         }
@@ -150,7 +150,7 @@ extension LNOrderRecordCell {
         stackView.spacing = 0
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalToSuperview().offset(2)
             make.bottom.equalToSuperview().offset(-8)
         }
@@ -235,7 +235,7 @@ extension LNOrderRecordCell {
         stackView.spacing = 4
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(8)
+            make.edges.equalToSuperview().inset(8)
         }
         
         let userView = UIView()
@@ -293,7 +293,7 @@ extension LNOrderRecordCell {
         requestLabel.setContentCompressionResistancePriority(.defaultHigh , for: .vertical)
         requestView.addSubview(requestLabel)
         requestLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(titleLabel.snp.bottom)
             make.bottom.equalToSuperview()
         }
@@ -430,7 +430,7 @@ extension LNOrderRecordCell {
         cover.isUserInteractionEnabled = false
         commitButton.insertSubview(cover, at: 0)
         cover.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(1)
+            make.edges.equalToSuperview().inset(1)
         }
         
         return menuView
@@ -460,7 +460,7 @@ extension LNOrderRecordCell {
         gameNameLabel.font = .heading_h4
         textInfo.addSubview(gameNameLabel)
         gameNameLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -468,7 +468,7 @@ extension LNOrderRecordCell {
         orderIdLabel.textColor = .text_5
         textInfo.addSubview(orderIdLabel)
         orderIdLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(gameNameLabel.snp.bottom).offset(2)
         }
@@ -522,7 +522,7 @@ struct LNOrderRecordCellPreview: UIViewRepresentable {
         let view = LNOrderRecordCell()
         container.addSubview(view)
         view.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.centerY.equalToSuperview()
             make.height.equalTo(133)
         }

+ 1 - 1
Lanu/Views/Order/OrderRecords/LNOrderRecordListViewController.swift

@@ -121,7 +121,7 @@ extension LNOrderRecordListViewController {
         
         view.addSubview(tableView)
         tableView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.bottom.equalToSuperview()
         }

+ 17 - 17
Lanu/Views/Order/Refund/LNOrderProtestViewController.swift

@@ -130,7 +130,7 @@ extension LNOrderProtestViewController {
         }), for: .touchUpInside)
         view.addSubview(submitButton)
         submitButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview().offset(-view.safeBottomInset - 10)
             make.height.equalTo(47)
         }
@@ -140,7 +140,7 @@ extension LNOrderProtestViewController {
         scrollView.showsHorizontalScrollIndicator = false
         view.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.bottom.equalTo(submitButton.snp.top)
         }
@@ -148,7 +148,7 @@ extension LNOrderProtestViewController {
         let fakeView = UIView()
         scrollView.addSubview(fakeView)
         fakeView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.width.equalToSuperview()
             make.height.equalTo(0)
@@ -157,14 +157,14 @@ extension LNOrderProtestViewController {
         let infoView = buildInfoView()
         scrollView.addSubview(infoView)
         infoView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(10)
         }
         
         let inputView = buildInputView()
         scrollView.addSubview(inputView)
         inputView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(infoView.snp.bottom).offset(10)
             make.bottom.equalToSuperview().offset(-16)
         }
@@ -185,7 +185,7 @@ extension LNOrderProtestViewController {
         stackView.spacing = 6
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalToSuperview().offset(2)
         }
         
@@ -214,13 +214,13 @@ extension LNOrderProtestViewController {
         let line = buildLine()
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(stackView.snp.bottom).offset(10)
         }
         
         container.addSubview(refundView)
         refundView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(line.snp.bottom).offset(10)
             make.bottom.equalToSuperview().offset(-12)
         }
@@ -265,7 +265,7 @@ extension LNOrderProtestViewController {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(10)
+            make.horizontalEdges.equalToSuperview().inset(10)
             make.centerY.equalToSuperview()
             make.height.equalTo(0.5)
         }
@@ -364,14 +364,14 @@ extension LNOrderProtestViewController {
         let textView = buildTextView()
         container.addSubview(textView)
         textView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(16)
         }
         
         let photoView = buildPhotoView()
         container.addSubview(photoView)
         photoView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(textView.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-16)
         }
@@ -390,7 +390,7 @@ extension LNOrderProtestViewController {
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
             make.top.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         let descLabel = UILabel()
@@ -401,14 +401,14 @@ extension LNOrderProtestViewController {
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
             make.top.equalTo(titleLabel.snp.bottom).offset(2)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         messageInputView.delegate = self
         messageInputView.maxInput = LNOrderManager.orderProtestMaxLength
         container.addSubview(messageInputView)
         messageInputView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(descLabel.snp.bottom).offset(8)
             make.bottom.equalToSuperview()
             make.height.equalTo(150)
@@ -427,7 +427,7 @@ extension LNOrderProtestViewController {
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
             make.top.equalToSuperview().offset(16)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         let descLabel = UILabel()
@@ -436,14 +436,14 @@ extension LNOrderProtestViewController {
         descLabel.textColor = .text_4
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(titleLabel.snp.bottom).offset(2)
         }
         
         imageUploadView.maxPhoto = maxUpload
         container.addSubview(imageUploadView)
         imageUploadView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(descLabel.snp.bottom).offset(16)
             make.bottom.equalToSuperview()
             make.height.equalTo(0).priority(.low)

+ 14 - 14
Lanu/Views/Order/Refund/LNOrderRefundViewController.swift

@@ -99,7 +99,7 @@ extension LNOrderRefundViewController {
         backgroundIc.image = .init(named: "ic_order_cancelled_bg")
         view.addSubview(backgroundIc)
         backgroundIc.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -120,7 +120,7 @@ extension LNOrderRefundViewController {
         }), for: .touchUpInside)
         view.addSubview(submitButton)
         submitButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview().offset(-view.safeBottomInset - 10)
             make.height.equalTo(47)
         }
@@ -130,7 +130,7 @@ extension LNOrderRefundViewController {
         scrollView.showsHorizontalScrollIndicator = false
         view.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.bottom.equalTo(submitButton.snp.top)
         }
@@ -138,7 +138,7 @@ extension LNOrderRefundViewController {
         let fakeView = UIView()
         scrollView.addSubview(fakeView)
         fakeView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.width.equalToSuperview()
             make.height.equalTo(0)
@@ -146,7 +146,7 @@ extension LNOrderRefundViewController {
          
         scrollView.addSubview(detailView)
         detailView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(10)
         }
         
@@ -155,7 +155,7 @@ extension LNOrderRefundViewController {
         container.layer.cornerRadius = 12
         scrollView.addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(detailView.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-16)
         }
@@ -163,14 +163,14 @@ extension LNOrderRefundViewController {
         let textView = buildTextView()
         container.addSubview(textView)
         textView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(16)
         }
         
         let photoView = buildPhotoView()
         container.addSubview(photoView)
         photoView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(textView.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-16)
         }
@@ -192,7 +192,7 @@ extension LNOrderRefundViewController {
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
             make.top.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         let descLabel = UILabel()
@@ -203,14 +203,14 @@ extension LNOrderRefundViewController {
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
             make.top.equalTo(titleLabel.snp.bottom).offset(2)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         messageInputView.delegate = self
         messageInputView.maxInput = LNOrderManager.orderRefundMaxLength
         container.addSubview(messageInputView)
         messageInputView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(descLabel.snp.bottom).offset(8)
             make.bottom.equalToSuperview()
             make.height.equalTo(150)
@@ -229,7 +229,7 @@ extension LNOrderRefundViewController {
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
             make.top.equalToSuperview().offset(16)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         let descLabel = UILabel()
@@ -238,14 +238,14 @@ extension LNOrderRefundViewController {
         descLabel.textColor = .text_4
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(titleLabel.snp.bottom).offset(2)
         }
         
         imageUploadView.maxPhoto = maxUpload
         container.addSubview(imageUploadView)
         imageUploadView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(descLabel.snp.bottom).offset(16)
             make.bottom.equalToSuperview()
             make.height.equalTo(0).priority(.low)

+ 2 - 2
Lanu/Views/Profile/Edit/LNEditBioPanel.swift

@@ -59,7 +59,7 @@ extension LNEditBioPanel {
         inputTextView.maxInput = 100
         container.addSubview(inputTextView)
         inputTextView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(titleLabel.snp.bottom).offset(16)
             make.height.equalTo(119)
         }
@@ -79,7 +79,7 @@ extension LNEditBioPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(inputTextView.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 5)
             make.height.equalTo(47)

+ 3 - 3
Lanu/Views/Profile/Edit/LNEditGenderPanel.swift

@@ -61,7 +61,7 @@ extension LNEditGenderPanel {
         }), for: .touchUpInside)
         container.addSubview(maleButton)
         maleButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(titleLabel.snp.bottom).offset(36)
             make.height.equalTo(46)
         }
@@ -99,7 +99,7 @@ extension LNEditGenderPanel {
         }), for: .touchUpInside)
         container.addSubview(femaleButton)
         femaleButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(maleButton.snp.bottom).offset(12)
             make.height.equalTo(46)
         }
@@ -144,7 +144,7 @@ extension LNEditGenderPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(femaleButton.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 5)
             make.height.equalTo(47)

+ 7 - 7
Lanu/Views/Profile/Edit/LNEditInterestPanel.swift

@@ -62,7 +62,7 @@ extension LNEditInterestPanel {
         background.image = .init(named: "ic_login_interest_bg")
         container.addSubview(background)
         background.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         
@@ -83,7 +83,7 @@ extension LNEditInterestPanel {
         descLabel.textAlignment = .center
         container.addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(titleLabel.snp.bottom).offset(6)
         }
         
@@ -92,7 +92,7 @@ extension LNEditInterestPanel {
         holder.layer.cornerRadius = 20
         container.addSubview(holder)
         holder.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(descLabel.snp.bottom).offset(12)
         }
         
@@ -101,7 +101,7 @@ extension LNEditInterestPanel {
         stackView.spacing = 12
         holder.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(14)
+            make.edges.equalToSuperview().inset(14)
         }
         buildCategoryViews().forEach {
             stackView.addArrangedSubview($0)
@@ -121,7 +121,7 @@ extension LNEditInterestPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(holder.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 5)
             make.height.equalTo(47)
@@ -149,7 +149,7 @@ extension LNEditInterestPanel {
             multiLineView.spacing = 10
             container.addSubview(multiLineView)
             multiLineView.snp.makeConstraints { make in
-                make.directionalHorizontalEdges.equalToSuperview()
+                make.horizontalEdges.equalToSuperview()
                 make.bottom.equalToSuperview()
                 make.top.equalTo(titleLabel.snp.bottom).offset(10)
             }
@@ -220,7 +220,7 @@ private class LNInterestItemView: UIView {
         addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
             make.center.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(11)
+            make.horizontalEdges.equalToSuperview().inset(11)
         }
     }
     

+ 4 - 4
Lanu/Views/Profile/Edit/LNEditNickNamePanel.swift

@@ -59,7 +59,7 @@ extension LNEditNickNamePanel {
         container.addSubview(inputHolder)
         inputHolder.snp.makeConstraints { make in
             make.top.equalTo(titleLabel.snp.bottom).offset(16)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         let holder = UIView()
@@ -67,7 +67,7 @@ extension LNEditNickNamePanel {
         holder.layer.cornerRadius = 8
         inputHolder.addSubview(holder)
         holder.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.height.equalTo(46)
         }
@@ -90,7 +90,7 @@ extension LNEditNickNamePanel {
         }), for: .editingChanged)
         holder.addSubview(inputField)
         inputField.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.centerY.equalToSuperview()
         }
         
@@ -120,7 +120,7 @@ extension LNEditNickNamePanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(12)
+            make.horizontalEdges.equalToSuperview().inset(12)
             make.top.equalTo(inputHolder.snp.bottom).offset(16)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 5)
             make.height.equalTo(47)

+ 2 - 2
Lanu/Views/Profile/Edit/LNEditProfilePhotoWallView.swift

@@ -80,7 +80,7 @@ extension LNEditProfilePhotoWallView {
         photoWallCountLabel.text = .init(key: "A00190", 0, 9)
         addSubview(photoWallCountLabel)
         photoWallCountLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(10)
         }
         
@@ -91,7 +91,7 @@ extension LNEditProfilePhotoWallView {
         descLabel.numberOfLines = 0
         addSubview(descLabel)
         descLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(photoWallCountLabel.snp.bottom).offset(4)
         }
         

+ 6 - 6
Lanu/Views/Profile/Edit/LNEditProfileViewController.swift

@@ -143,7 +143,7 @@ extension LNEditProfileViewController {
         view.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
             make.top.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalTo(view.safeAreaLayoutGuide.snp.bottom)
         }
         
@@ -152,7 +152,7 @@ extension LNEditProfileViewController {
         stackView.spacing = 24
         scrollView.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
             make.width.equalToSuperview()
         }
         
@@ -235,7 +235,7 @@ extension LNEditProfileViewController {
         titleLabel.text = .init(key: "A00203")
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(10)
         }
         
@@ -278,7 +278,7 @@ extension LNEditProfileViewController {
         titleLabel.text = .init(key: "A00204")
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview().offset(10)
         }
         
@@ -287,7 +287,7 @@ extension LNEditProfileViewController {
         stackView.spacing = 22
         container.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(titleLabel.snp.bottom).offset(10)
             make.bottom.equalToSuperview()
         }
@@ -366,7 +366,7 @@ extension LNEditProfileViewController {
         let line = buildLine()
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview()
         }
         

+ 2 - 2
Lanu/Views/Profile/Mine/LNMineFunctionView.swift

@@ -61,7 +61,7 @@ extension LNMineFunctionView {
         stackView.alignment = .top
         addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(titleLabel.snp.bottom).offset(22)
             make.bottom.equalToSuperview().offset(-16)
         }
@@ -116,7 +116,7 @@ extension LNMineFunctionView {
         titleLabel.numberOfLines = 0
         container.addSubview(titleLabel)
         titleLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalTo(imageView.snp.bottom).offset(8)
             make.bottom.equalToSuperview()
         }

+ 1 - 1
Lanu/Views/Profile/Mine/LNMineQRCodeShareView.swift

@@ -48,7 +48,7 @@ extension LNMineQRCodeShareView {
         background.isUserInteractionEnabled = false
         addSubview(background)
         background.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview().inset(1)
+            make.edges.equalToSuperview().inset(1)
         }
         
         let qrCode = UIImageView()

+ 5 - 5
Lanu/Views/Profile/Mine/LNMineUserInfoView.swift

@@ -53,7 +53,7 @@ extension LNMineUserInfoView {
         container.layer.cornerRadius = 12
         addSubview(container)
         container.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalToSuperview().offset(16)
         }
@@ -89,7 +89,7 @@ extension LNMineUserInfoView {
         let relation = buildRelation()
         container.addSubview(relation)
         relation.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview().offset(-16)
             make.top.equalTo(userInfo.snp.bottom).offset(16)
         }
@@ -151,7 +151,7 @@ extension LNMineUserInfoView {
         followLabel.textColor = .text_3
         followView.addSubview(followLabel)
         followLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(followCountLabel.snp.bottom).offset(2)
         }
@@ -182,7 +182,7 @@ extension LNMineUserInfoView {
         fansLabel.textColor = .text_3
         fansView.addSubview(fansLabel)
         fansLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(fansCountLabel.snp.bottom).offset(2)
         }
@@ -196,7 +196,7 @@ extension LNMineUserInfoView {
         nameLabel.textColor = .text_5
         container.addSubview(nameLabel)
         nameLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
         }
         

+ 1 - 1
Lanu/Views/Profile/Mine/LNMineViewController.swift

@@ -61,7 +61,7 @@ extension LNMineViewController {
         stackView.spacing = 16
         view.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(44 + UIView.statusBarHeight)
         }
         

+ 5 - 5
Lanu/Views/Profile/Post/LNPostShareImageGenerator.swift

@@ -91,14 +91,14 @@ extension LNPostShareImageGenerator {
         let post = buildPost()
         container.addSubview(post)
         post.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(59)
         }
         
         let album = buildSkillView()
         container.addSubview(album)
         album.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalToSuperview().offset(-152)
             make.height.equalTo(100)
         }
@@ -148,7 +148,7 @@ extension LNPostShareImageGenerator {
         let info = buildUserInfo()
         container.addSubview(info)
         info.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(12)
         }
         
@@ -157,7 +157,7 @@ extension LNPostShareImageGenerator {
         postView.clipsToBounds = true
         container.addSubview(postView)
         postView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(44)
             make.height.equalTo(postView.snp.width).multipliedBy(317.0/311.0)
         }
@@ -167,7 +167,7 @@ extension LNPostShareImageGenerator {
         bioLabel.numberOfLines = 3
         container.addSubview(bioLabel)
         bioLabel.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(22)
+            make.horizontalEdges.equalToSuperview().inset(22)
             make.top.equalTo(postView.snp.bottom).offset(14)
             make.bottom.equalToSuperview().offset(-20)
         }

+ 2 - 2
Lanu/Views/Profile/Post/LNPostShareSkillItemView.swift

@@ -42,7 +42,7 @@ class LNPostShareSkillItemView: UIView {
         nameBg.clipsToBounds = true
         addSubview(nameBg)
         nameBg.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.bottom.equalToSuperview()
             make.top.equalTo(bg.snp.bottom).offset(-9)
             make.height.equalTo(21)
@@ -55,7 +55,7 @@ class LNPostShareSkillItemView: UIView {
         nameBg.addSubview(nameLabel)
         nameLabel.snp.makeConstraints { make in
             make.center.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(6)
+            make.horizontalEdges.equalToSuperview().inset(6)
         }
     }
     

+ 10 - 10
Lanu/Views/Profile/Post/LNPostShareViewController.swift

@@ -101,13 +101,13 @@ extension LNPostShareViewController {
         scrollView.showsVerticalScrollIndicator = false
         view.addSubview(scrollView)
         scrollView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let fakeView = UIView()
         scrollView.addSubview(fakeView)
         fakeView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview()
+            make.horizontalEdges.equalToSuperview()
             make.top.equalToSuperview()
             make.width.equalToSuperview()
             make.height.equalTo(0)
@@ -116,7 +116,7 @@ extension LNPostShareViewController {
         let post = buildPost()
         scrollView.addSubview(post)
         post.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(32)
         }
         
@@ -124,7 +124,7 @@ extension LNPostShareViewController {
         scrollView.addSubview(skill)
         skill.snp.makeConstraints { make in
             make.top.equalTo(post.snp.bottom)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.height.equalTo(100)
         }
         
@@ -167,7 +167,7 @@ extension LNPostShareViewController {
         }), for: .touchUpInside)
         view.addSubview(share)
         share.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.bottom.equalTo(view.safeAreaLayoutGuide.snp.bottom).offset(-4)
             make.height.equalTo(47)
         }
@@ -181,7 +181,7 @@ extension LNPostShareViewController {
         let info = buildUserInfo()
         container.addSubview(info)
         info.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(12)
         }
          
@@ -190,7 +190,7 @@ extension LNPostShareViewController {
         postView.clipsToBounds = true
         container.addSubview(postView)
         postView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(44)
             make.height.equalTo(postView.snp.width).multipliedBy(317.0/311.0)
         }
@@ -202,7 +202,7 @@ extension LNPostShareViewController {
         bio.text = myGameMateInfo?.intro ?? ""
         container.addSubview(bio)
         bio.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(22)
+            make.horizontalEdges.equalToSuperview().inset(22)
             make.top.equalTo(postView.snp.bottom).offset(14)
             make.bottom.equalToSuperview().offset(-20)
         }
@@ -350,7 +350,7 @@ extension LNPostShareViewController {
         stackView.spacing = 10
         scrollView.addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         var albumItemViews: [LNSharePostAlbumItemView] = []
@@ -413,7 +413,7 @@ private class LNSharePostAlbumItemView: UIView {
         selectedBorder.isHidden = true
         addSubview(selectedBorder)
         selectedBorder.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         imageView.clipsToBounds = true

+ 3 - 3
Lanu/Views/Profile/Post/LNPostSkillSelectPanel.swift

@@ -85,7 +85,7 @@ extension LNPostSkillSelectPanel {
         }), for: .touchUpInside)
         container.addSubview(confirmButton)
         confirmButton.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalTo(stackView.snp.bottom).offset(10)
             make.bottom.equalToSuperview().offset(-safeBottomInset - 5)
             make.height.equalTo(47)
@@ -154,9 +154,9 @@ extension LNPostSkillSelectPanel {
         line.backgroundColor = .fill_2
         container.addSubview(line)
         line.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.height.equalTo(1)
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
         }
         
         return container

+ 3 - 3
Lanu/Views/Profile/Profile/LNProfileBottomMenu.swift

@@ -102,7 +102,7 @@ extension LNProfileBottomMenu {
         stackView.spacing = 10
         addSubview(stackView)
         stackView.snp.makeConstraints { make in
-            make.directionalHorizontalEdges.equalToSuperview().inset(16)
+            make.horizontalEdges.equalToSuperview().inset(16)
             make.top.equalToSuperview().offset(16)
             make.bottom.equalToSuperview().offset(-4)
         }
@@ -168,7 +168,7 @@ extension LNProfileBottomMenu {
         chatAnimateCover.image = .primary_8
         chatButton.addSubview(chatAnimateCover)
         chatAnimateCover.snp.makeConstraints { make in
-            make.directionalEdges.equalToSuperview()
+            make.edges.equalToSuperview()
         }
         
         let container = UIView()
@@ -182,7 +182,7 @@ extension LNProfileBottomMenu {
         faceIc.image = .init(named: "ic_skill_chat_face")
         container.addSubview(faceIc)
         faceIc.snp.makeConstraints { make in
-            make.directionalVerticalEdges.equalToSuperview()
+            make.verticalEdges.equalToSuperview()
             make.leading.equalToSuperview()
             make.width.height.equalTo(24)
         }

+ 1 - 1
Lanu/Views/Profile/Profile/LNProfileNaviBarView.swift

@@ -229,7 +229,7 @@ extension LNProfileNaviBarView {
         editButton.addSubview(stackView)
         stackView.snp.makeConstraints { make in
             make.centerY.equalToSuperview()
-            make.directionalHorizontalEdges.equalToSuperview().inset(9)
+            make.horizontalEdges.equalToSuperview().inset(9)
         }
         
         editIc.image = .init(named: "ic_edit_clear")?.withRenderingMode(.alwaysTemplate)

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio