OnChange is not called after push new page with UINavigationController

I’m working on a mixed project (SwiftUI + UIKit), so I have to use the UINavigationController as the root controller of my window. (or I cannot push any UIKitViewController)

The root is like this:

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        guard let windowScene = scene as? UIWindowScene else {
            return
        }
        
        let window = UIWindow(windowScene: windowScene)
        window.makeKeyAndVisible()
        window.overrideUserInterfaceStyle = .light
        self.window = window

        //UIKit Navigation as root
        let rootHubView = AnyView(SwiftUIView1())
        let rootHubVC = UIHostingController(rootView: rootHubView)
        let rootNavC = UINavigationController(rootViewController: rootHubVC)
        window.rootViewController = rootNavC
}

Inside the SwiftUIView1, it has a StateObject

class TestingState: ObservableObject, Equatable {
    static func == (lhs: TestingState, rhs: TestingState) -> Bool {
        lhs.currentJourneyLevel == lhs.currentJourneyLevel
    }
    
    @Published var currentJourneyLevel: Int {
        willSet {
            debugPrint("##### currentJourneyLevel will be set from (currentJourneyLevel) to (newValue)")
        }
    }
    
    init() {
        currentJourneyLevel = 1
    }
}

struct SwiftUIView1: View {
    @StateObject private var testingState = TestingState()
    @State var isActived = false {
        didSet {
            debugPrint("##### isActived: (isActived)")
        }
    }

    var body: some View {
        VStack (spacing: 30) {
            Button("NextPage") {
                testingState.currentJourneyLevel = 2
            }
            
            NavigationLink(
                destination: SwiftUIView1(state: testingState),
                isActive: $isActived
            ) { EmptyView() }
        }
        .onChange(of: testingState.currentJourneyLevel) { currentJourneyLevel in
            debugPrint("##### currentJourneyLevel is onChange to: (currentJourneyLevel)")
            isActived = currentJourneyLevel == 2
        }
        .navigationTitle("SwiftUIView1")
        .navigationBarTitleDisplayMode(.inline)
    }
}

And inside SwiftUIView2, it has another button to set the currentJourneyLevel back to 1 to pop it to the first view, like this:

struct SwiftUIView2: View {
    private var state: TestingState

    init(state: TestingState) {
        self.state = state
    }
    
    var body: some View {
        ZStack {
            VStack(spacing: 10) {
                Button("Back") {
                    state.currentJourneyLevel = 1
                }
            }
            .navigationTitle("SwiftUIView2")
        }
    }
}

Once I click the NextPage button, is working as expected, currentJourneyLevel changed to 2 and then the onChange block be called, finally the isActived will be set to true, this is the log:

"##### currentJourneyLevel will be set from 1 to 2"
"##### currentJourneyLevel is onChange to: 2"
"##### isActived: true"

The problem is:
When I’m trying to get back from the second view, the onChange block is not called by the system as expected.

From the log I can see the the value of currentJourneyLevel has been changed correctly, but seems like the system observer is not working, it doesn’t call the onChange method as it should be.

"##### currentJourneyLevel will be set from 2 to 1"

However, if I changed to navigation to pure SwiftUI one like this:

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        guard let windowScene = scene as? UIWindowScene else {
            return
        }
        
        let window = UIWindow(windowScene: windowScene)
        window.makeKeyAndVisible()
        window.overrideUserInterfaceStyle = .light
        self.window = window
        
        //Pure SwiftUI Navigation
        let rootHubView = NSContainerView()
        let rootHubVC = UIHostingController(rootView: rootHubView)
        window.rootViewController = rootHubVC
        
        //UIKit Navigation as root
//        let rootHubView = AnyView(RootHubPlugin().getHubPage())
//        let rootHubVC = UIHostingController(rootView: rootHubView)
//        let rootNavC = UINavigationController(rootViewController: rootHubVC)
//        window.rootViewController = rootNavC
    }
struct NSContainerView: View {
    var body: some View {
        NavigationView {
            AnyView(RootHubPlugin().getHubPage())
        }
    }
}

Everything will be working smoothly like this:
Click NextPage button:

"##### currentJourneyLevel will be set from 1 to 2"
"##### currentJourneyLevel is onChange to: 2"
"##### isActived: true"

Click Back button:

"##### currentJourneyLevel will be set from 2 to 1"
"##### currentJourneyLevel is onChange to: 1"
"##### isActived: false"

So,
what should I do to make the onChange block working with UIKitNavigationController?
Or if I just made any mistake?

Any suggestions will be greatly appreciated

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật