mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
something
This commit is contained in:
@@ -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: "")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user