SwiftUI Link - Open Website in Safari | iOS 14 | Xcode 12.4

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

ความคิดเห็น • 29

  • @seanallen
    @seanallen  3 ปีที่แล้ว +2

    If you enjoy my teaching/presentation style, I've started creating my own iOS Development courses at seanallen.teachable.com. You can watch the first ~10% of each course for free to get a feel for them.

  • @bernardoesteves8055
    @bernardoesteves8055 3 ปีที่แล้ว +2

    Coming from C language and after doing some baby steps in python and decided to start learning swift but hated the storyboard thing.
    came across your channel and literally binge watched this whole playlist of SwiftUI tutorials.
    Excellent work, loved your teaching style.
    Thank you Sean!

    • @seanallen
      @seanallen  3 ปีที่แล้ว

      Thanks for the kind words, Bernardo. I just started my shift to SwiftUI content this year, so there's plenty more to come!

  • @andresmade2853
    @andresmade2853 3 ปีที่แล้ว +1

    Nice. I love these short video. Straight to the point

    • @seanallen
      @seanallen  3 ปีที่แล้ว

      Happy to hear that, Andres.

  • @chrispy104k
    @chrispy104k 3 ปีที่แล้ว +1

    Now that's welcome addition. 👍

  • @idc20627
    @idc20627 2 ปีที่แล้ว +1

    Exactly what I fucking needed, thank you jedi master!

    • @seanallen
      @seanallen  2 ปีที่แล้ว

      Haha, glad it was helpful!

  • @glennadams7047
    @glennadams7047 3 ปีที่แล้ว +2

    Nice!

  • @protaotogamer1503
    @protaotogamer1503 3 ปีที่แล้ว +1

    Epic video as usual

    • @seanallen
      @seanallen  3 ปีที่แล้ว

      Thanks Ahaan.

  • @radaarshinkovska1295
    @radaarshinkovska1295 ปีที่แล้ว

    Great tutorial, thank you. I have question about photo access on iPhone. I can upload image on my site in Safari, but I can't do that from my iPhone.

  • @HerrvonBoedefeld349
    @HerrvonBoedefeld349 ปีที่แล้ว

    Hi, I am looking for a way to open a hyperlink by button from a view controller, not the home view controller. Everything I have tried so far only works on the home view controller, but not on any other child page. Could you make a video with a solution?

  • @kel_
    @kel_ 2 ปีที่แล้ว

    niceee

  • @Adhi-bn6qe
    @Adhi-bn6qe 2 ปีที่แล้ว

    How can I redirect to the webpage when anything user inputs in text field??

  • @relax_music668
    @relax_music668 2 ปีที่แล้ว

    VeryGood,Hello Teacher,How swiftui app open other app?

  • @GamerNigga78
    @GamerNigga78 ปีที่แล้ว

    I don't have the LinkView thingy.

  • @sandhyaraut5092
    @sandhyaraut5092 2 ปีที่แล้ว

    Hi, what if it is a multiline text and a part of that text is a hyperlink and rest is normal string in iOS 14 version.

  • @zidaantumbi8378
    @zidaantumbi8378 3 ปีที่แล้ว

    Hey! How can I move the 2nd option of the button to the top? (1st time Swifter haha)

  • @shivaskanthan6144
    @shivaskanthan6144 3 ปีที่แล้ว

    Hmm would be nice if we could open the URL within our app instead of in Safari :)

    • @seanallen
      @seanallen  3 ปีที่แล้ว +3

      You'd have to drop down to UIKit using a UIViewControllerRepresentable and SafariViewController. But if you want pure SwiftUI... you can't as of yet.

  • @anvithkakkera7196
    @anvithkakkera7196 3 ปีที่แล้ว

    For the feature you were showing with the links to safari, would you recommend actually force-unwrapping it in real-time? If you would not recommend it, how would I unwrap it with an if-let statement?

    • @seanallen
      @seanallen  3 ปีที่แล้ว +2

      if you're hardcoding a well-known site like apple.com, then I think it's fine to force unwrap. If you have an app where you are displaying URLs that are downloaded from a server and a network call, that's an example where unwrapping the optional is a must. You could use any unwrapping method that fits in with your implementation. If-let, guard, nil coalescing, etc...

  • @guitaripod
    @guitaripod 3 ปีที่แล้ว +1

    Can this do sfsafarivc things?

    • @seanallen
      @seanallen  3 ปีที่แล้ว

      No, this is different than SafariViewController. For example, SVC will keep the user in your app and pull up a modal screen. This takes the user out of your app and into safari (with a back link to your app). There is an active debate on which is the better UX, but that's how the SwiftUI version works.

    • @guitaripod
      @guitaripod 3 ปีที่แล้ว

      @@seanallen would be cool to have a parameter were you could choose.