Spaces:
Runtime error
Runtime error
Download client/macos/Runner/MainFlutterWindow.swift from Anuj-Panthri/hapticlink: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/Anuj-Panthri/hapticlink/resolve/main/client/macos/Runner/MainFlutterWindow.swift
- Command line
-
hf download hf://spaces/Anuj-Panthri/hapticlink/client/macos/Runner/MainFlutterWindow.swift
-
curl -L -o MainFlutterWindow.swift https://huggingface.co/spaces/Anuj-Panthri/hapticlink/resolve/main/client/macos/Runner/MainFlutterWindow.swift
393 Bytes
| import Cocoa | |
| import FlutterMacOS | |
| class MainFlutterWindow: NSWindow { | |
| override func awakeFromNib() { | |
| let flutterViewController = FlutterViewController.init() | |
| let windowFrame = self.frame | |
| self.contentViewController = flutterViewController | |
| self.setFrame(windowFrame, display: true) | |
| RegisterGeneratedPlugins(registry: flutterViewController) | |
| super.awakeFromNib() | |
| } | |
| } | |