SwiftUI Search Bar - Searchable

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

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

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

    Go deeper with SwiftUI in my iOS Dev Courses at seanallen.teachable.com

  • @mehekpalrecha4262
    @mehekpalrecha4262 10 หลายเดือนก่อน +1

    SO SO SO simple. I just love how this video isn't 5 million hours long and gets to the point! Thanks Sean😁

    • @seanallen
      @seanallen  10 หลายเดือนก่อน

      I do my best to respect the viewers time. Glad you appreciate it!

  • @soheilpakgohar6630
    @soheilpakgohar6630 ปีที่แล้ว +4

    I'll die for such a video that's short and very very useful with smart details , tnx Sean

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

      Glad you liked it, Soheil.

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

    This computed property you have shown is extremely useful in how to keep track of the filter. Thank you.

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

      Glad it was helpful, Nilesh!

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

    What a great tutorial, and it's amazing to see how quick and simple it was to do!
    Thanks for all your hard work Sean! 🙏🏼

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

    Simple and to the point. Perfect!

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

      Glad you liked it!

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

    String() is a clean way of declaring an empty string

  • @Sweezy23
    @Sweezy23 11 หลายเดือนก่อน +1

    Great tutorial! Do you have a video on how to insert the profile images you had for each follower?

    • @seanallen
      @seanallen  11 หลายเดือนก่อน +1

      I don't have a video specifically for AsyncImage, but it is part of my SwiftUI Fundamentals course here. Specifically, the "Appetizers" app section towards the end - th-cam.com/video/b1oC7sLIgpI/w-d-xo.html

    • @Sweezy23
      @Sweezy23 11 หลายเดือนก่อน +1

      @@seanallen Thank you, I really appreciate it!

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

    that was amazing and straight to the point. Thanks Sean!

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

      Happy to help.

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

    Exactly what I need right now! And this is so simple! Thanks a lot!

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

    This was super helpful. Thank you!

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

      Glad it was helpful!

  • @karanjeetsingh6167
    @karanjeetsingh6167 11 หลายเดือนก่อน

    Hey Sean, great tutorial. How can I implement searchable on a list that is nested inside a Modal Sheet?

  • @folahanmikolawole8219
    @folahanmikolawole8219 3 หลายเดือนก่อน

    Hi Sean, is it possible to customize the searchbar placement?
    say under a custom navbar or something of the sorts

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

    Hi, thanks for given help. I tried to rebuild your example. What does the codable Follower-Struct look like?

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

      Hey Peter - It's has 3 properties. login: String, avatarUrl: String, and id = UUID(). The object itself conforms to two protocols. Codable and Identifiable. Identifiable (and the above id property) is for the List in the UI.

  • @demetrepanjakidze4403
    @demetrepanjakidze4403 10 หลายเดือนก่อน +1

    Great video. understood this well

    • @seanallen
      @seanallen  10 หลายเดือนก่อน

      Glad it was helpful!

  •  ปีที่แล้ว

    That's a wonderful tutorial! Thanks a lot. But I wonder how to limit search time if the requested data was brought by API. For example how can we make calls only 2 at one second?

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

    Thanks Sean 👏

  • @jerrick.warren
    @jerrick.warren ปีที่แล้ว

    Always on time bro

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

    wow thank u, very easy too understand

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

      You are welcome 😊

  • @АлишерРизабаев-ш8ж
    @АлишерРизабаев-ш8ж ปีที่แล้ว +2

    Thank you very much motivation me for IOS developer in my Future ......I from Uzbekistan all Assalyamu Aleykum....thank you:)

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

      Happy to help!

  • @ahmetyasinatakan
    @ahmetyasinatakan 9 หลายเดือนก่อน

    How can i change searchBar's bacground color after using .searcahble method? My app's backgroundColor is black. Because of that the search bar doesn't appear.

  • @Spacer-l3j
    @Spacer-l3j 7 หลายเดือนก่อน +1

    i find .searchable super buggy and causes significant memory loss... hope they fix this...

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

    Sean! I have been wrecking my head on how to make the Search Bar sticky in SwiftUI meaning that when you scroll down the list the searchbar remains visible at the top of the screen. All Apple ios apps like the Phone app and Podcast app have this feature but because those have been build using UIKit this is relatively easy to implement . In SwiftUI though this turns out to be a lot more complicated if not impossible? Do you know how to achieve this by any chance?

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

      Give this value a shot for the placement parameter in .searchable - .navigationBarDrawer(displayMode: .always). Here's a link to the docs - developer.apple.com/documentation/swiftui/searchfieldplacement

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

      @@seanallen awesome, will try first thing tomorrow! 🙏🏻

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

    Anyone knows if it is possible to create the navigation bar, search field, and list animation like the one in the video using Flutter?

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

    This is an excellent video Sean thank you. I wonder do you do any design tutorials? Please cover some custom icons like creating your own “home” icon (because I hate the standard SF symbol icon). I can even send you an svg example to start with. Also, interpolation, like how the search bar disappears as you scroll to the bottom but reappears when you nudge the screen up a little bit. Your videos are very much function over form which is great. I appreciate all of it.

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

    🔥

  • @SamuraiJack1881
    @SamuraiJack1881 3 หลายเดือนก่อน

    where is the Followers brother

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

    1st

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

    Searchable is great