AdvancedOptionsViewController in Demo App project isn't functional #2023
Replies: 8 comments 1 reply
-
Hi @glennposadas! Thank you for opening the issue!
Yes in theory it should. But we don't have many customers with Obj-C projects, so maybe you can find minor problems. But if you do, please open an issue here and we will get that fixed for sure 🙂 Best, |
Beta Was this translation helpful? Give feedback.
-
Thanks, Nuno!
…On Tue, Mar 8, 2022 at 8:07 PM Nuno Vieira ***@***.***> wrote:
Hi @glennposadas <https://github.com/glennposadas>!
Thank you for opening the issue!
We will investigate this as soon as we can and will get back to you 👍
Also, I have a side question. The Stream can be possibly integrated into
an Objective-C project, yes?
Yes in theory it should. But we don't have many customers with Obj-C
projects, so maybe you can find minor problems. But if you do, please open
an issue here and we will get that fixed for sure 🙂
Best,
Nuno
—
Reply to this email directly, view it on GitHub
<#1830 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7MNFY3YMW4WZBYLNA2GG3U647HVANCNFSM5QEAKBSA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hey, @glennposadas Did you find any issues with the Objective-C integration? I am going to transfer this issue to a Discussion to see if there is more appetite to enable the advanced settings. Of course, in the meantime, you can easily swap out the API Keys / Tokens to switch the Demo app to your own Stream application. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hey @adamrushy and @nuno-vieira I just experienced a seemingly tough Objc integration problem, so I came here and found my own thread. Basically, our project is Objective-C based, of course there have been a lof of Swift codes and even libraries already, but this one seems impossible to solve. I have been able to use the chat by having Swift extensions of my Objective-C controllers. But this problem comes... I need to remove the subtitle of the navBar (
This does not work. I know you clearly mentioned in this documentation link: https://getstream.io/chat/docs/sdk/ios/uikit/views/channel-header-view/ that the way to customized the title container is to subclass it, like so:
Subclassing gives me this error: Any other way to do this? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @glennposadas! Keep in mind we have 2 headers, the Can you show the full message of the compilation error? Does the compilation error happen for Best, |
Beta Was this translation helpful? Give feedback.
-
Hi @nuno-vieira , thanks for replying. Yes, I am aware of those 2 headers, my bad. BTW, a side question, can we wrap the chat vc in a navigationController and add a close button at the left bar button items without subclassing? Adding a bar button item doesn't seem to work, I assume it needs a custom component again just like this title customization. |
Beta Was this translation helpful? Give feedback.
-
Hi @glennposadas! Yes, it looks like it is not possible to subclass swift classes from ObjC, according to the docs: https://developer.apple.com/documentation/swift/migrating-your-objective-c-code-to-swift#:~:text=Because%20you%20can%E2%80%99t%20subclass%20Swift%20classes%20in%20Objective%2DC Unfortunately, currently, the UI SDK relies a lot on subclassing, so it could be difficult to use it in an ObjC project indeed.
Because of this ObjC limitation, it is better that you handle navigation in your app and don't rely on Stream's Routers. You can use the |
Beta Was this translation helpful? Give feedback.
-
Hi @glennposadas! You can also make the subclasses in Swift, and then use them in your Objc code. Any reason why you could not do this? Best, |
Beta Was this translation helpful? Give feedback.
-
The controller just doesn't work. I'm trying to learn how to use stream chat by using my own keys and tokens so I thought this advanced option is a good thing but isn't completed yet.
Also, I have a side question. The Stream can be possibly integrated into an Objective-C project, yes?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions