Skip to content

Commit

Permalink
set the project main class to public to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckDeck committed Jun 29, 2020
1 parent 3007443 commit 7d4e4b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ViewChaos.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7d4e4b0

Please sign in to comment.