Skip to content

Commit

Permalink
兼容工具检查
Browse files Browse the repository at this point in the history
  • Loading branch information
ming1016 committed Nov 16, 2024
1 parent 2978ca2 commit cbf2615
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions SwiftPamphletApp/HomeUI/DataLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ struct DataLink: Identifiable {
enum ShowType {
case content,detail
}

@MainActor @ViewBuilder
static func viewToShow(

@MainActor @ViewBuilder static func viewToShow(
for title: String?,
selectInfo:Binding<IOInfo?>,
selectDev:Binding<DeveloperModel?>,
Expand Down
8 changes: 4 additions & 4 deletions SwiftPamphletApp/HomeUI/HomeiOSView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ struct TaskCaseView: View {
.onAppear {
Perf.showTime("UI更新视图")
}
TaskCaseAnimationView(isBad: false)
.onAppear {
Perf.showTime("动画视图")
}
// TaskCaseAnimationView(isBad: false)
// .onAppear {
// Perf.showTime("动画视图")
// }
TaskCaseBigImageView(isBad: false)
.onAppear {
Perf.showTime("大图处理视图")
Expand Down
8 changes: 4 additions & 4 deletions SwiftPamphletApp/ViewComponet/ViewComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ struct WebUIView: NSViewRepresentable {
var baseURLStr: String = ""

func makeCoordinator() -> Coordinator {
Coordinator()
return Coordinator()
}

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

func makeCoordinator() -> Coordinator {
Coordinator()
return Coordinator()
}

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

func makeCoordinator() -> Coordinator {
Coordinator()
return Coordinator()
}

func makeUIView(context: Context) -> WKWebView {
Expand Down Expand Up @@ -332,7 +332,7 @@ struct WebUIViewWithSave: UIViewRepresentable {
@Binding var isStop: Bool

func makeCoordinator() -> Coordinator {
Coordinator()
return Coordinator()
}

func makeUIView(context: Context) -> WKWebView {
Expand Down

0 comments on commit cbf2615

Please sign in to comment.