12345678910111213141516171819202122232425262728293031323334 |
- //
- // TSAIUploadPhotoVC+Video.swift
- // TSLiveWallpaper
- //
- // Created by 100Years on 2025/6/19.
- //
- extension TSAIUploadPhotoVC {
-
- func creatTextView() -> TSAIUploadPhotoTextView {
- let textView = TSAIUploadPhotoTextView()
- textView.placeholderTextView.textViewTextChanged = { [weak self] text in
- guard let self = self else { return }
- additionalPrompt = text
- updateSubmitBtnEnabled()
- }
- return textView
- }
-
- }
- extension TSAIUploadPhotoVC {
- func setUpVideoUploadView(){
- uploadImageViewMaxHeight = k_ScreenHeight-212-k_Height_safeAreaInsetsBottom()-k_Nav_Height
-
- cusStackView.addSubviewToStack(uploadImageBgView)
- uploadImageBgView.snp.makeConstraints { make in
- make.width.equalTo(k_ScreenWidth)
- make.height.equalTo(k_ScreenHeight-212-k_Height_safeAreaInsetsBottom()-k_Nav_Height)
- }
- cusStackView.addSpacing(length: 32)
- cusStackView.addSubviewToStack(self.textView)
- }
- }
|