Create WebView in SwiftUI (2020) Xcode 12, SwiftUI 2, iOS Development Beginners

preview_player
Показать описание
In this video we will learn how to create a web view in swiftUI. SwiftUI does not natively support a web view so it is essential we know how to create our own custom version of it. We will be using UIViewRepresentable to do so and learning how to load our own URLs. Additionally, we will do this in a componentized fashion to make the object/webview reusable. As always we will be working in SwiftUI 2 and Xcode 12.

#swiftUI #webview #iOSDeveloper

Join this channel to get access to perks, code, groups, and more:

** Get Skillshare free for 2 Months and learn iOS

** Manage all your investments from app earnings on Betterment!

** Grow your own Youtube tech channel with TubeBuddy:
Рекомендации по теме
Комментарии
Автор

Thank you so much!
You really helped me a lot!
Finally I found a solution how to add a WebView in swiftUI.
I'm not an iOS developer, just developing a small weather widget for myself :)

YevhenZatsepin
Автор

This is great! Is there a way to implement the back and forward swiping gestures on WKWebView using this method? I cannot seem to get it to work

BasamAlasaly
Автор

Thank you so much! great tutorial!
Any idea how to alter this code a little to make links (from the website itself) with target="_blank" to open in safari?

azz
Автор

Hi.. It is very good and very helpful content, I am using the social login option on my website but in WebView app that is not working, can you please make a tutorial to resolve this issue..
pls pls its a request.

jamalahmad
Автор

great tutorial, it worked when i was displaying the webview as the only component in a screen, however i added it to a screen that has a bunch of content(so the webview takes half of the screen) and it doesnt show. any help?

coucoseth
Автор

Very good, here's my issue. I can get the webview to work for things like google.com but the site I wanna use is not working. I confirmed the address is accessible in my browser but is not working when pasted into the URL. What could be causing this?

HeereAtTheWall
Автор

Hi i need to intercepd page navigation complete event in SwiftUI and wkwebView how can i do that?

nicolamariamanes
Автор

When I followed your tutorial for WebView on Mac, it does not work. Firstly, I had to set "Outgoing Connections (client)". After then, I have still got the below error and I can see only blank page:

2021-05-04 22:48:22.027025+0100 wsv_client[2413:60022] [Process] 0x7f978e897220 - [pageProxyID=5, webPageID=6, PID=2416] frameID = 3, domain = NSURLErrorDomain, code = -1022


How can I resolve this?

joneskim
Автор

hey good video. are you still doing quiz app part 2?

AndrewwTheo
welcome to shbcf.ru