BonnierNews / react-native-3d-model-view

A React Native view for displaying 3D models
MIT License
215 stars 57 forks source link

new is unavailable 'init' has been explicitly marked unavailable here #51

Open SMKH-PRO opened 2 years ago

SMKH-PRO commented 2 years ago

Hi, I am unable to use this on iOS,

My XCODE version is 12.5.1 and the swift version was 5, I also tried with swift 4 and swift 4.2 but that only made things worst.

I think this is happening because this project is using an older version of swift, although I am not completely sure as I am not a swift developer, this is an amazing library I wish I could contribute to it but I am not a swift developer, I hope someone can contribute and fix these issues with an iOS side of this library.

I have attached images of the error:

Pods/RECT3DModel/core/RECT3DModellO.m

initWithName:@"baseMaterial" scatteringFunction:scatteringFunction]; MDLMaterialProperty* baseColor = [MDLMaterialProperty new]; - error: new is unavailable