coronalabs / corona

Solar2D Game Engine main repository (ex Corona SDK)
https://solar2d.com/
MIT License
2.54k stars 273 forks source link

[IOS]: Run CoronaCards with Metal #612

Closed ArkeshGKalathiya closed 1 year ago

ArkeshGKalathiya commented 1 year ago

Describe the bug I have integrated CoronaCards with Flutter SDK, and there is weird bug whenever app is brought into foreground, it shows black flash.

I searched forum, and there is one bug regarding this and the solution is to use Metal backend.

So is there any way to use CoronaCards with Metal? ( I checked and it uses GLKView )

ArkeshGKalathiya commented 1 year ago

@Shchvova

Shchvova commented 1 year ago

CoronaCards-angle.framework.zip Hello. Please see if this works for you at all. You can rename framework and file in it to be a drop-in replacement.

ArkeshGKalathiya commented 1 year ago

@Shchvova Thanks for getting back so quickly.

I have following errors when integrating the file.

Screenshot 2023-08-26 at 8 31 36 AM

And here is my podspec configuration

Screenshot 2023-08-26 at 8 33 24 AM
ArkeshGKalathiya commented 1 year ago

@Shchvova

It's been resolved now. I had to do extra step regarding renaming. For anyone else stumbling into this in future, here it is.

Just rename shortcut inside framework to CoronaCards as well. ( If you are renaming from CoronaCards-angle to CoronaCards )

Screenshot 2023-08-26 at 8 40 05 AM
Shchvova commented 1 year ago

That is what I meant by renaming file inside ;)

Shchvova commented 1 year ago

I will add it to the next build. For now use the file I attached.