From 7d4e4b02ea0bba18bfa2e68f083ba27f2fafc67c Mon Sep 17 00:00:00 2001 From: DuckDeck <3421902@qq.com> Date: Mon, 29 Jun 2020 16:36:02 +0800 Subject: [PATCH] set the project main class to public to debug --- Sources/ViewChaos.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ViewChaos.swift b/Sources/ViewChaos.swift index 60dcce1..ae7351a 100644 --- a/Sources/ViewChaos.swift +++ b/Sources/ViewChaos.swift @@ -39,8 +39,8 @@ extension UIApplication{ } } -class ViewChaosStart: SelfAware { - static func awake() { +public class ViewChaosStart: SelfAware { + public static func awake() { #if DEBUG print("启动ViewChaos") Chaos.hookMethod(UIWindow.self, originalSelector: #selector(UIWindow.makeKeyAndVisible), swizzleSelector: #selector(UIWindow.vcMakeKeyAndVisible))