Skip to content

Commit cbf2615

Browse files
committed
兼容工具检查
1 parent 2978ca2 commit cbf2615

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

SwiftPamphletApp/HomeUI/DataLink.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ struct DataLink: Identifiable {
1919
enum ShowType {
2020
case content,detail
2121
}
22-
23-
@MainActor @ViewBuilder
24-
static func viewToShow(
22+
23+
@MainActor @ViewBuilder static func viewToShow(
2524
for title: String?,
2625
selectInfo:Binding<IOInfo?>,
2726
selectDev:Binding<DeveloperModel?>,

SwiftPamphletApp/HomeUI/HomeiOSView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ struct TaskCaseView: View {
3939
.onAppear {
4040
Perf.showTime("UI更新视图")
4141
}
42-
TaskCaseAnimationView(isBad: false)
43-
.onAppear {
44-
Perf.showTime("动画视图")
45-
}
42+
// TaskCaseAnimationView(isBad: false)
43+
// .onAppear {
44+
// Perf.showTime("动画视图")
45+
// }
4646
TaskCaseBigImageView(isBad: false)
4747
.onAppear {
4848
Perf.showTime("大图处理视图")

SwiftPamphletApp/ViewComponet/ViewComponent.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ struct WebUIView: NSViewRepresentable {
150150
var baseURLStr: String = ""
151151

152152
func makeCoordinator() -> Coordinator {
153-
Coordinator()
153+
return Coordinator()
154154
}
155155

156156
func makeNSView(context: Context) -> some WKWebView {
@@ -215,7 +215,7 @@ struct WebUIViewWithSave: NSViewRepresentable {
215215
@Binding var isStop: Bool
216216

217217
func makeCoordinator() -> Coordinator {
218-
Coordinator()
218+
return Coordinator()
219219
}
220220

221221
func makeNSView(context: Context) -> some WKWebView {
@@ -283,7 +283,7 @@ struct WebUIView: UIViewRepresentable {
283283
var baseURLStr: String = ""
284284

285285
func makeCoordinator() -> Coordinator {
286-
Coordinator()
286+
return Coordinator()
287287
}
288288

289289
func makeUIView(context: Context) -> WKWebView {
@@ -332,7 +332,7 @@ struct WebUIViewWithSave: UIViewRepresentable {
332332
@Binding var isStop: Bool
333333

334334
func makeCoordinator() -> Coordinator {
335-
Coordinator()
335+
return Coordinator()
336336
}
337337

338338
func makeUIView(context: Context) -> WKWebView {

0 commit comments

Comments
 (0)