didSet{
if enable {
icon.connetedView.isHidden = false
+ bottonView.alpha = 1
}
else{
icon.connetedView.isHidden = true
+ bottonView.alpha = 0.5
}
}
}
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
PcmSound.sharedInstance().delegate = sdk
CCAiManager.preparePlayBlueTooth()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
CCAiManager.preparePlayBlueTooth()
}
override func navleftViewTapped() {
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
override func navleftViewTapped() {
CCAiManager.stopPlay()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
override func navleftViewTapped() {
if toolBar.recordBtn.isSelected {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
PcmSound.sharedInstance().delegate = sdk
CCAiManager.preparePlayBlueTooth()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
CCAiManager.stopPlay()
}
override func navleftViewTapped() {
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
override func navleftViewTapped() {
if toolBar.recordBtn.isSelected {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
override func navleftViewTapped() {
if toolBar.recordBtn.isSelected {
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
PcmSound.sharedInstance().delegate = sdk
CCAiManager.preparePlayBlueTooth()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
CCAiManager.preparePlayBlueTooth()
}
override func navleftViewTapped() {
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
override func navleftViewTapped() {
JoyGemSIManager.shared().stop()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
override func navleftViewTapped() {
if toolBar.recordBtn.isSelected {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
PcmSound.sharedInstance().delegate = sdk
CCAiManager.preparePlayBlueTooth()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
CCAiManager.stopPlay()
}
override func navleftViewTapped() {
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
override func navleftViewTapped() {
if toolBar.recordBtn.isSelected {
class BaseNC: UINavigationController {
override init(rootViewController: UIViewController) {
super.init(rootViewController: rootViewController)
- fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ if #available(iOS 26.0, *) {
+ navigationController?.interactiveContentPopGestureRecognizer?.isEnabled = true
+ } else {
+ // Fallback on earlier versions
+ }
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
- fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ if #available(iOS 26.0, *) {
+ navigationController?.interactiveContentPopGestureRecognizer?.isEnabled = true
+ } else {
+ // Fallback on earlier versions
+ }
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return topViewController?.preferredStatusBarStyle ?? .lightContent
@objc func logAction(){
App.shared.goToPage(LogVC())
}
+ func enablePopGesture(){
+ navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ if #available(iOS 26.0, *) {
+ navigationController?.interactiveContentPopGestureRecognizer?.isEnabled = true
+ } else {
+ // Fallback on earlier versions
+ }
+ }
+ func disablePopGesture(){
+ navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ if #available(iOS 26.0, *) {
+ navigationController?.interactiveContentPopGestureRecognizer?.isEnabled = false
+ } else {
+ // Fallback on earlier versions
+ }
+ }
}
extension BaseVC: BaseNavigationBarDelegate {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
if isBingding{
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = false
+ disablePopGesture()
}
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
if isBingding{
- navigationController?.fd_fullscreenPopGestureRecognizer?.isEnabled = true
+ enablePopGesture()
}
}
// override func navRightViewTapped() {