Skip to content

Commit

Permalink
Merge pull request #297 from Darock-Studio/fix/watch
Browse files Browse the repository at this point in the history
fixed compiling issue about watchOS
  • Loading branch information
WindowsMEMZ authored Mar 3, 2024
2 parents 227e9cd + 2724458 commit efb7e37
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions DarockBili.dynamic/AppMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,16 @@ struct AppMainView: View {
}
}

public func tipWithText(_ text: String, symbol: String = "", time: Double = 3.0) {
pShowTipText = text
pShowTipSymbol = symbol
pTipBoxOffset = 7
Timer.scheduledTimer(withTimeInterval: time, repeats: false) { timer in
pTipBoxOffset = 80
timer.invalidate()
}
}

#if !os(watchOS)
func signalErrorRecord(_ errorNum: Int32, _ errorSignal: String) {
var symbols = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
notificationPayloadFile = "PushNotificationPayload.apns">
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
Expand Down

0 comments on commit efb7e37

Please sign in to comment.