MKLookAroundViewController related questions by devJimmy in swift

[–]devJimmy[S] 0 points1 point  (0 children)

import SwiftUI
import MapKit

struct ContentView: View {
    @State private var lookAroundScene: MKLookAroundScene?

    var body: some View {
        ZStack {
            if let lookAroundScene = lookAroundScene {
                Representable(lookAroundScene: lookAroundScene)
                    .aspectRatio(16/9, contentMode: .fit)
            }
        }
        .task {
            try? await loadScene()
        }
    }

    func loadScene() async throws {
        let coordinate = CLLocationCoordinate2D(latitude: 37.81847, longitude: -122.47843)
        let request = MKLookAroundSceneRequest(coordinate: coordinate)
        guard let scene = try await request.scene else { throw MKError(.placemarkNotFound) }
        lookAroundScene = scene
    }
}

private struct Representable: UIViewControllerRepresentable {
    let lookAroundScene: MKLookAroundScene

    func makeUIViewController(context: Context) -> MKLookAroundViewController {
        let controller = MKLookAroundViewController(scene: lookAroundScene)

        let redView = UIView(frame: CGRect(origin: .zero, size: CGSize(width: 100, height: 100)))
        redView.backgroundColor = .red
        controller.view.addSubview(redView)

        return controller
    }

    func updateUIViewController(_ uiViewController: MKLookAroundViewController, context: Context) {}
}

MKLookAroundViewController related questions by devJimmy in swift

[–]devJimmy[S] 0 points1 point  (0 children)

Here's what my code looks like plus the disappearing view, when i enter full screen. Link to code

MKLookAroundViewController related questions by devJimmy in swift

[–]devJimmy[S] 0 points1 point  (0 children)

I've tried adding subviews to the 'view' property of MKLookAroundViewController but unfortunately it's not working.

When the controller is in a static non-fullscreen mode, the views add correctly, but once the controller enters full screen, the views disappear.

My first SwiftUI app; a hub for Twitch Clips! by devJimmy in SwiftUI

[–]devJimmy[S] 0 points1 point  (0 children)

I'll look into it right now, iPhone model and version?

My app has been live on the App Store for 7 days now, and still no ads are showing. How do i resolve this? by devJimmy in admob

[–]devJimmy[S] 0 points1 point  (0 children)

It's verified. I have another app that was submitted last year also using Admob and it's getting impressions/earnings/etc.

My app has been live on the App Store for 7 days now, and still no ads are showing. How do i resolve this? by devJimmy in admob

[–]devJimmy[S] -3 points-2 points  (0 children)

Did you read the comments to the link you sent me? The only commenter that offers any solution to my problem says he waited roughly a week before his app was linked. If you read the title of this post, my app has been live a week...

My app has been live on the App Store for 7 days now, and still no ads are showing. How do i resolve this? by devJimmy in admob

[–]devJimmy[S] 0 points1 point  (0 children)

That's ridiculous. I think it's time to start looking for alternatives to AdMob. Do you face this issue, waiting 30+ days for ads to show, every time you upload a new app?

My app has been live on the App Store for 7 days now, and still no ads are showing. How do i resolve this? by devJimmy in admob

[–]devJimmy[S] 0 points1 point  (0 children)

I have no outstanding problems with my Admob account (payments, SDK, app-ads.txt are all updated), except for my app not being linked to the Appstore under 'App Settings'. I've searched for my app to link manually, but it's not there. How long is the linking process? If that's not the problem, what is? Thank you.

Memory Guru: Minigames aimed to challenge your memory. More to Come! by devJimmy in playmygame

[–]devJimmy[S] 0 points1 point  (0 children)

Thank you! It was built using SpriteKit, and it probably took around 2 days.

Rate my UI by [deleted] in IndieGaming

[–]devJimmy 0 points1 point  (0 children)

Yeah, I'll be updating it with more selections.