被拆掉的 NSHostingView 还会再建一次 View

Đang mở
#5,474 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Kyle-Ye đang làm issue này rồi.

Từ ngày 6/11/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, swift
Lĩnh vực
content, documentation

Hướng nghiên cứu

This is a blog-post submission to the iOS Weekly newsletter, not a code change: the body carries an ios-blog-radar-submission:v1:... marker, which points at the repo's submission intake rather than at any source file. Start by reading the linked article (https://onevcat.com/2026/10/nested-hosting-view) and locating how past submission issues in iOS-Weekly are triaged into the weekly draft. Done means the item is either accepted with an entry and issue link, or closed with a short reason; the technical content about NSHostingView teardown is the author's, not the contributor's, to write.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

链接

https://onevcat.com/2026/10/nested-hosting-view

理由

调用 dismantleNSView 之后,里面的宿主竟然还能再建视图,把共享 surface 抢走。Onevcat 从白屏一路追到嵌套 NSHostingView 的布局循环,日志、二分和最小复现都值得看。修复同时处理宿主拆除与所有权恢复;至于 .task 为何触发这条内部路径,作者仍没找到公开解释。

Ngôn ngữ chính
JavaScript
Star
5k
Fork
429
Merge trung bình
33 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SwiftOldDriver/iOS-Weekly

Tất cả issue của SwiftOldDriver/iOS-Weekly

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.