diff --git a/DarockBili.dynamic/AppMain.swift b/DarockBili.dynamic/AppMain.swift index 2c62ea61a..ff06a2ec8 100644 --- a/DarockBili.dynamic/AppMain.swift +++ b/DarockBili.dynamic/AppMain.swift @@ -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 = "" diff --git a/DarockBili.xcodeproj/xcshareddata/xcschemes/MeowBili Watch App.xcscheme b/DarockBili.xcodeproj/xcshareddata/xcschemes/MeowBili Watch App.xcscheme index 9560a1529..b0ddc571d 100644 --- a/DarockBili.xcodeproj/xcshareddata/xcschemes/MeowBili Watch App.xcscheme +++ b/DarockBili.xcodeproj/xcshareddata/xcschemes/MeowBili Watch App.xcscheme @@ -95,8 +95,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" - allowLocationSimulation = "YES" - notificationPayloadFile = "PushNotificationPayload.apns"> + allowLocationSimulation = "YES">