TSAIUploadPhotoVC+Video.swift 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // TSAIUploadPhotoVC+Video.swift
  3. // TSLiveWallpaper
  4. //
  5. // Created by 100Years on 2025/6/19.
  6. //
  7. extension TSAIUploadPhotoVC {
  8. func creatTextView() -> TSAIUploadPhotoTextView {
  9. let textView = TSAIUploadPhotoTextView()
  10. textView.placeholderTextView.textViewTextChanged = { [weak self] text in
  11. guard let self = self else { return }
  12. additionalPrompt = text
  13. updateSubmitBtnEnabled()
  14. }
  15. return textView
  16. }
  17. }
  18. extension TSAIUploadPhotoVC {
  19. func setUpVideoUploadView(){
  20. uploadImageViewMaxHeight = k_ScreenHeight-212-k_Height_safeAreaInsetsBottom()-k_Nav_Height
  21. cusStackView.addSubviewToStack(uploadImageBgView)
  22. uploadImageBgView.snp.makeConstraints { make in
  23. make.width.equalTo(k_ScreenWidth)
  24. make.height.equalTo(k_ScreenHeight-212-k_Height_safeAreaInsetsBottom()-k_Nav_Height)
  25. }
  26. cusStackView.addSpacing(length: 32)
  27. cusStackView.addSubviewToStack(self.textView)
  28. }
  29. }