something

This commit is contained in:
eevee
2024-06-02 14:54:25 +03:00
parent 400a28924a
commit e258ebc35b
23 changed files with 461 additions and 381 deletions
@@ -0,0 +1,29 @@
import SwiftUI
import UIKit
class EeveeSettingsViewController: SPTPageViewController {
let frame: CGRect
init(_ frame: CGRect) {
self.frame = frame
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func viewDidLoad() {
super.viewDidLoad()
self.title = "EeveeSpotify"
let hostingController = UIHostingController(rootView: EeveeSettingsView())
hostingController.view.frame = frame
view.addSubview(hostingController.view)
addChild(hostingController)
hostingController.didMove(toParent: self)
}
}
@@ -0,0 +1,21 @@
import UIKit
class SPTPageViewController: UIViewController {
override func conforms(to aProtocol: Protocol) -> Bool {
if NSStringFromProtocol(aProtocol) ~= "SPTPageController" {
return true
}
return super.conforms(to: aProtocol)
}
@objc func spt_pageIdentifier() -> String? {
return "EeveeSpotify"
}
@objc func spt_pageURI() -> NSURL? {
return NSURL(string: "")
}
}