Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftUI support #19

Open
gwangpa opened this issue Aug 16, 2022 · 2 comments
Open

SwiftUI support #19

gwangpa opened this issue Aug 16, 2022 · 2 comments

Comments

@gwangpa
Copy link

gwangpa commented Aug 16, 2022

Hi there,

I tried to use this SDK for SwiftUI project but it doesn't seem to work

This is what I did briefly

import SwiftUI

struct MyView: View {
  var body: some View {
    Text("Hello world")
      .onAppear {
         CBTracker.shared().trackView(self, viewId: #view_id, title: #title)
      }
  }
}

And app crashed when I call the trackView(:viewId:title) with this error

2022-08-16 11:15:20.775438+1000 App[18288:236085] -[__SwiftValue bounds]: unrecognized selector sent to instance 0x600001a95c20
2022-08-16 11:15:20.783073+1000 App[18288:236085] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__SwiftValue bounds]: unrecognized selector sent to instance 0x600001a95c20'

Or am I missing something?

I wonder if you have plan to support SwiftUI?

Cheers,
Dan

@rabufeti
Copy link

rabufeti commented Aug 16, 2023

I've the same issue
Is there any update on this?

@oiledCode
Copy link

oiledCode commented Jan 28, 2025

The issue persist, The SDK needs a UIView, what this view is used for? Do you plan to support Swiftui?
Edit:
I think the only way to communicate is to contact the support and ask if this repository is maintained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants