100Years 1 tháng trước cách đây
mục cha
commit
28e4cc49ae

+ 2 - 2
AIEmoji.xcodeproj/project.pbxproj

@@ -2432,7 +2432,7 @@
 				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 2;
 				DEVELOPMENT_TEAM = 65UD255J84;
 				ENABLE_USER_SCRIPT_SANDBOXING = NO;
 				GENERATE_INFOPLIST_FILE = YES;
@@ -2471,7 +2471,7 @@
 				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 2;
 				DEVELOPMENT_TEAM = 65UD255J84;
 				ENABLE_USER_SCRIPT_SANDBOXING = NO;
 				GENERATE_INFOPLIST_FILE = YES;

BIN
AIEmoji/Assets.xcassets/PTP/style/ptp_style_SingleFigurine.imageset/ptp_style_SingleFigurine@2x.png


BIN
AIEmoji/Assets.xcassets/PTP/style/ptp_style_SingleFigurine.imageset/ptp_style_SingleFigurine@3x.png


+ 2 - 0
AIEmoji/Business/AIChat/TSChatViewController/TSChatViewController/TSChatViewController.swift

@@ -115,6 +115,8 @@ class TSChatViewController: MessagesViewController, MessagesDataSource {
         flowLayout.minimumLineSpacing = 16
         messagesCollectionView.collectionViewLayout = flowLayout
         messagesCollectionView.backgroundColor = .clear
+        messagesCollectionView.showsVerticalScrollIndicator = false
+        messagesCollectionView.showsHorizontalScrollIndicator = false
         messagesCollectionView.register(TSTextMessageContentCell.self)
         messagesCollectionView.messagesLayoutDelegate = self
         messagesCollectionView.messagesDisplayDelegate = self

+ 3 - 1
AIEmoji/Business/TSPTPGeneratorVC/TSAIPhotoGeneratorBaseVC/TSAIPhotoGeneratorBaseVC.swift

@@ -73,6 +73,7 @@ class TSAIPhotoGeneratorBaseVC: TSBaseVC {
             guard let self = self else { return }
             clickRegenerateBtn()
         }
+//        regenerateBtn.titleLabel?.numberOfLines = 0
         return regenerateBtn
     }()
 
@@ -129,7 +130,8 @@ class TSAIPhotoGeneratorBaseVC: TSBaseVC {
         regenerateBtn.snp.makeConstraints { make in
             make.top.equalTo(bottomBtnTop)
             make.leading.equalTo(16)
-            make.width.equalTo(86)
+//            make.width.equalTo(86)
+            make.width.equalTo(regenerateBtn.intrinsicContentSize.width)
             make.height.equalTo(44)
         }
         

+ 1 - 1
AIEmoji/Business/TSPurchaseMembershipVC/TSPurchaseVC.swift

@@ -416,7 +416,7 @@ struct PurchaseView :View {
                     ZStack {
                         Color.hex("#FFBD59")
                         Text("Continue")
-                            .font(.system(size: 16))
+                            .font(.font(size: 16,weight: .medium))
                             .foregroundColor(.hex("#111111"))
                         
                     }.frame(maxWidth: .infinity ,minHeight: 48.0)

+ 3 - 10
AIEmoji/Business/TSTextGeneralPictureVC/TSTTPInputVC/TSTTPInputVC.swift

@@ -12,7 +12,8 @@ class TSTTPInputVC: TSBaseVC {
             if cusStackView.viewH > 0{
                 return cusStackView.viewH
             }
-            return 489.0+136.0
+            return 605.0
+//            return 489.0+136.0
         }
     }
     
@@ -83,14 +84,6 @@ class TSTTPInputVC: TSBaseVC {
         return creatBtnView
     }()
     
-    //###################################### Generate History ######################################
-    lazy var historyTitleView: TSTitleView = {
-        let historyTitleView = TSTitleView()
-        historyTitleView.titleLab.text = "Generate History".localized
-        return historyTitleView
-    }()
-    
-
 
     override func createView() {
         view.backgroundColor = .clear
@@ -109,7 +102,7 @@ class TSTTPInputVC: TSBaseVC {
         cusStackView.addSubviewToStack(promptTextView)
         cusStackView.addSubviewToStack(promptStyleView)
         cusStackView.addSubviewToStack(ratioStyleView)
-        
+        cusStackView.addSpacing(length: 16)//增加 16 的间隔
         cusStackView.addSubviewToStack(creatBtnView)
         creatBtnView.snp.makeConstraints { make in
             make.height.equalTo(creatBtnView.viewH)

+ 8 - 7
AIEmoji/Business/TSTextGeneralPictureVC/TSTTPInputVC/View/TSPromptTextView.swift

@@ -84,16 +84,17 @@ class TSPromptTextView : TSBaseView{
     
     override func creatUI() {
         
-        contentView.addSubview(robotImageView)
-        robotImageView.snp.makeConstraints { make in
-            make.top.equalTo(0)
-            make.leading.equalTo(16)
-            make.width.height.equalTo(82)
-        }
+//        contentView.addSubview(robotImageView)
+//        robotImageView.snp.makeConstraints { make in
+//            make.top.equalTo(0)
+//            make.leading.equalTo(16)
+//            make.width.height.equalTo(82)
+//        }
         
         contentView.addSubview(textBgView)
         textBgView.snp.makeConstraints { make in
-            make.top.equalTo(57)
+//            make.top.equalTo(57)
+            make.top.equalTo(16)
             make.leading.equalTo(16)
             make.trailing.equalTo(-16)
             make.height.equalTo(182.0)

+ 1 - 0
AIEmoji/Business/TSTextGeneralPictureVC/TSTTPInputVC/View/TSTTPRatioView.swift

@@ -96,6 +96,7 @@ extension TSTTPRatioView: UICollectionViewDataSource ,UICollectionViewDelegate {
 
     public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
         if let model = dataArray.safeObj(At: indexPath.item){
+            self.styleCollectionView.selectItem(at: indexPath, animated: true, scrollPosition: .centeredHorizontally)
             selectedValueBlock?(model)
         }
     }

+ 1 - 0
AIEmoji/Business/TSTextGeneralPictureVC/TSTTPInputVC/View/TSTTPStyleView.swift

@@ -101,6 +101,7 @@ extension TSTTPStyleView: UICollectionViewDataSource ,UICollectionViewDelegate {
     public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
         if let model = dataArray.safeObj(At: indexPath.item){
             currentIndexPath = indexPath
+            self.styleCollectionView.selectItem(at: self.currentIndexPath, animated: true, scrollPosition: .centeredHorizontally)
             selectedValueBlock?(model)
         }
     }