Thanks for the reply it got rid of the scope and top code wrappers issue. I have a yellow warning now here
and also I'm not sure where to put the code to do with separating the view and view controller. Where it says
it has 2 errors saying:
UIViewRepresentable requires the types some view and Never be equivalent
Type WebVuew does not conform to protocol UIViewRepresentable
Thanks so much this works now, however I have noticed in previews the app is full screen but when I launch in simulator or on an iPhone via usb nothing loads apart from black screen unless I click stop on xcode it will then load on the iPhone itself. And the other thing is it is not full screen on the iPhone it seems to have shrunk
Thanks for the reply it got rid of the scope and top code wrappers issue. I have a yellow warning now here
and also I'm not sure where to put the code to do with separating the view and view controller. Where it says
it has 2 errors saying:
UIViewRepresentable requires the types some view and Never be equivalent
Type WebVuew does not conform to protocol UIViewRepresentable
Thanks so much this works now, however I have noticed in previews the app is full screen but when I launch in simulator or on an iPhone via usb nothing loads apart from black screen unless I click stop on xcode it will then load on the iPhone itself. And the other thing is it is not full screen on the iPhone it seems to have shrunk