You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Foundation
import Capacitor
/**
* StatusBar plugin. Requires "View controller-based status bar appearance" to
* be "YES" in Info.plist
*/
@objc(StatusBarPlugin)publicclass StatusBarPlugin:CAPPlugin,CAPBridgedPlugin{publicletidentifier="StatusBarPlugin"publicletjsName="StatusBar"publicletpluginMethods:[CAPPluginMethod]=[CAPPluginMethod(name:"setStyle", returnType: CAPPluginReturnPromise),CAPPluginMethod(name:"setBackgroundColor", returnType: CAPPluginReturnPromise),CAPPluginMethod(name:"show", returnType: CAPPluginReturnPromise),CAPPluginMethod(name:"hide", returnType: CAPPluginReturnPromise),CAPPluginMethod(name:"getInfo", returnType: CAPPluginReturnPromise),CAPPluginMethod(name:"setOverlaysWebView", returnType: CAPPluginReturnPromise)]privatevarstatusBar:StatusBar? // not import
privateletstatusBarVisibilityChanged="statusBarVisibilityChanged"privateletstatusBarOverlayChanged="statusBarOverlayChanged"overridepublicfunc load(){guardlet bridge = bridge else{return}
statusBar =StatusBar(bridge: bridge, config:statusBarConfig())}privatefunc statusBarConfig()->StatusBarConfig{varconfig=StatusBarConfig()
config.overlaysWebView =getConfig().getBoolean("overlaysWebView", config.overlaysWebView)
if let colorConfig =getConfig().getString("backgroundColor"),let color =UIColor.capacitor.color(fromHex: colorConfig){
config.backgroundColor = color
/@capacitor/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift:20:28:
error: cannot find type 'StatusBar' in scope
private var statusBar: StatusBar?
^~~~~~~~~
/@capacitor/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift:29:39:
error: cannot find type 'StatusBarConfig' in scope
private func statusBarConfig() -> StatusBarConfig {
^~~~~~~~~~~~~~~
/@capacitor/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift:125:33:
error: cannot find type 'StatusBarInfo' in scope
private func toDict(_ info: StatusBarInfo) -> [String: Any] {
^~~~~~~~~~~~~
warning: Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because
it does not specify any outputs. To address this issue, either add output dependencies to the script
phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the
script phase. (in t
The text was updated successfully, but these errors were encountered:
this line
capacitor-plugins/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift
Line 20 in 9fa6354
The text was updated successfully, but these errors were encountered: