change stuff

This commit is contained in:
Stossy11 2025-01-19 06:11:56 +11:00
parent 1c6c083163
commit ec29829296
3 changed files with 5 additions and 21 deletions

View File

@ -36,21 +36,5 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "7E7EAEC7-2878-43F7-8791-DED96ED532ED"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "MeloNX/App/Views/ContentView.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "264"
endingLineNumber = "264"
landmarkName = "start(displayid:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>

View File

@ -12,9 +12,6 @@ import SwiftUI
func waitforcontroller() { func waitforcontroller() {
if let window = theWindow { if let window = theWindow {
// Function to recursively search for GCControllerView // Function to recursively search for GCControllerView
func findGCControllerView(in view: UIView) -> UIView? { func findGCControllerView(in view: UIView) -> UIView? {
// Check if current view is GCControllerView // Check if current view is GCControllerView
@ -44,11 +41,13 @@ func waitforcontroller() {
Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { timer in Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { timer in
if findGCControllerView(in: window) == nil { if findGCControllerView(in: window) == nil {
window.addSubview(containerView) window.addSubview(containerView)
window.bringSubviewToFront(containerView)
timer.invalidate()
} else { } else {
timer.invalidate() timer.invalidate()
} }
window.bringSubviewToFront(containerView)
} }
} }
@ -59,6 +58,7 @@ class TransparentHostingContainerView: UIView {
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
// Check if the point is within the subviews of this container // Check if the point is within the subviews of this container
let view = super.hitTest(point, with: event) let view = super.hitTest(point, with: event)
print(view)
// Return nil if the touch is outside visible content (passes through to views below) // Return nil if the touch is outside visible content (passes through to views below)
return view === self ? nil : view return view === self ? nil : view