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

Поділитися
Вставка
  • Опубліковано 31 січ 2025

КОМЕНТАРІ • 30

  • @seanallen
    @seanallen  4 роки тому +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 роки тому +3

    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 роки тому +1

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

    • @sachinkaxhyap
      @sachinkaxhyap Місяць тому

      everybody hates storyboard thing

  • @andresmade2853
    @andresmade2853 4 роки тому +1

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

    • @seanallen
      @seanallen  4 роки тому

      Happy to hear that, Andres.

  • @radaarshinkovska1295
    @radaarshinkovska1295 2 роки тому

    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.

  • @protaotogamer1503
    @protaotogamer1503 4 роки тому +1

    Epic video as usual

  • @sandhyaraut5092
    @sandhyaraut5092 2 роки тому +1

    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.

  • @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?

  • @chrispy104k
    @chrispy104k 4 роки тому +1

    Now that's welcome addition. 👍

  • @zidaantumbi8378
    @zidaantumbi8378 3 роки тому

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

  • @idc20627
    @idc20627 2 роки тому +1

    Exactly what I fucking needed, thank you jedi master!

    • @seanallen
      @seanallen  2 роки тому

      Haha, glad it was helpful!

  • @relax_music668
    @relax_music668 3 роки тому

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

  • @Adhi-bn6qe
    @Adhi-bn6qe 2 роки тому

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

  • @anvithkakkera7196
    @anvithkakkera7196 4 роки тому

    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  4 роки тому +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...

  • @glennadams7047
    @glennadams7047 4 роки тому +2

    Nice!

  • @guitaripod
    @guitaripod 4 роки тому +1

    Can this do sfsafarivc things?

    • @seanallen
      @seanallen  4 роки тому

      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 4 роки тому

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

  • @shivaskanthan6144
    @shivaskanthan6144 4 роки тому

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

    • @seanallen
      @seanallen  4 роки тому +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.

  • @kel_
    @kel_ 2 роки тому

    niceee