Create SwiftUI Widgets in iOS 14 (Xcode 12, Swift, 2020) - iOS Development

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • In this video we will learn how to create, configure, and update iOS 14 widgets in SwiftUI. We will be working in Xcode 12 with the latest version of Swift. Learn to create intent configuration widgets for your app in iOS 14 to bring the experience to the home screen. We will also touch on WidgetKit to learn how to keep your widget up to date.
    💻 Source Code: / iosacademy
    🎥 Subscribe for more: www.youtube.co...
    😎 Like my teaching style? Check out some of my most popular courses! courses.iosaca...
    #swiftUI #widgets #iOSDeveloper
    Join this channel to get access to perks, code, groups, and more:
    / @iosacademy
    Join the iOS Academy Community: iosacademy.io/
    ** Get Skillshare free for 2 Months and learn iOS
    www.skillshare...
    ** Manage all your investments from app earnings on Betterment!
    bit.ly/3eBwlI9
    ** Grow your own RUclips tech channel with TubeBuddy:
    www.tubebuddy....

Комментарии • 46

  • @iOSAcademy
    @iOSAcademy  3 года назад +1

    Like my teaching style? Check out the all new SwiftUI for Beginners course: ios-academy.teachable.com/p/swiftui-for-beginners

  • @cameraguyVR70
    @cameraguyVR70 3 года назад +7

    BEST, i repeat BEST version of widgetkit from youtube. literally the rest are hard to follow nor well explained. This is clear and it works and gets the basics right. congrats man. love it!

    • @iOSAcademy
      @iOSAcademy  3 года назад

      Thank you! Glad you liked it

  • @medoalmouhtadi930
    @medoalmouhtadi930 3 года назад +3

    Sorry to sneak up on you in this comment section's video but I really really would love you if you continue on the instagram series more regularly... I also want to give a recommendation, if you feel like those series are not rewarding you much then I highly recommend that you continue the series only for learner or coder members only. Trust me, people that go through all the series because they have some business startup or some goal, they will fund you instantly. I would be first in line... I see a high success potential for your channel! Don't let me down, I love your content.

  • @aviadsabag8193
    @aviadsabag8193 3 года назад +3

    I swear I couldnt be an iOS dev without you, everything im searching you already got in the air lol, keep it up bro!

    • @iOSAcademy
      @iOSAcademy  3 года назад

      Haha Im super happy I can help!

  • @gdhpsk8723
    @gdhpsk8723 3 года назад +3

    I was wondering if you were gonna do a video on this... and here it is! I like these kinds of vids

  • @software-sage
    @software-sage 3 года назад +1

    Amazing video!
    If you are having trouble with creating the app group, you have to manually create it in Certificaties, IDs, and Bundles in your Apple Developer Account for that app. I couldn't register a new one like you showed in the video.

  • @omerkaraca7375
    @omerkaraca7375 2 года назад +1

    Most useful video regarding iOS widget. Thanks

  • @tariqAlmazyad
    @tariqAlmazyad 3 года назад +1

    so glad to see SwiftUI content .

  • @ziomalxxz
    @ziomalxxz 2 года назад +1

    any ideas why preview (SwiftUI) doesn't work with widget extension? when it builds an app with a widget it gets an error SendProcessControlEvent toPid:encounterd error :'(

  • @danuff
    @danuff 3 года назад +1

    THANK YOU, THANK YOU and THANK YOU!!!

  • @circle9001
    @circle9001 3 года назад

    This is awesome and super helpful( just like all of your videos). Really appreciate it.

  • @georgiyonchev1194
    @georgiyonchev1194 3 года назад

    Great video! Can you show us how via the widget a user can update data into the app itself?

  • @edldsplpilot
    @edldsplpilot 3 года назад +1

    Perfect video

  • @motiv8labs303
    @motiv8labs303 3 года назад +1

    So helpful! Quick question when we archive and submit to the app store do we use the widget or the main app? Thanks!

    • @iOSAcademy
      @iOSAcademy  3 года назад

      main app!

    • @motiv8labs303
      @motiv8labs303 3 года назад

      @@iOSAcademy Thanks for replying! I did this, data fetching is working on my simulator and real device but the moment I go to testflight it doesn't work. Tried everything including setting dead stripping to no, and unchecking bitcode content.

  • @donnyc2165
    @donnyc2165 3 года назад

    Do you have a video on intent configuration yet?

  • @lucasribolli
    @lucasribolli 2 года назад

    Nice video! Is there a way to add button to widgets in home screen? I would like to update UserDefault storage when click in a button

  • @tylerwilson3027
    @tylerwilson3027 3 года назад

    I wonder if you could use KVO to watch the UserDefault changes in the Widget, instead of calling the reloadAllTimelines...

  • @iansorensen5755
    @iansorensen5755 3 года назад

    How can I have the current time always update with the current time? I'm building a widget app that shows the time but it doesn't update. Thanks!

  • @ios_engineer
    @ios_engineer 3 года назад

    Hello, what is the mechanism and route for the data being passed from viewcontroller app to widget, ie. is TCP data and does it go to a remote server and back again, or is an inter process mechanism, shared memory etc. On the use of a widget, it does have some use for headline data to be presented to user.

  • @vietsublyrics104
    @vietsublyrics104 2 года назад

    Widget getTimeLine not called on second install of app
    1. Add widget.
    2. Uninstall app.
    3. Reinstall app.
    4. Add widget.
    Widget seems to be cached on previous install, please help me to solve it. Thanks a lot!

  • @philip7899
    @philip7899 2 года назад

    How is he quickly reloading the widget at 8:47 ? I'm trying to edit the widget but I have to wait 1 minute to rebuild the app by pressing the play button in Xcode each time.

  • @tkurban
    @tkurban 3 года назад

    how do you make a collapsibletext? idk if that make sense but basically like click to show more info kinda of a thing

  • @rizwansayyed5043
    @rizwansayyed5043 Год назад

    Hey can please HELP MEE!!!!!
    I want to create a lock screen widget and i create it. But i just need one additional thing i want that when clicked on widget the widget should not open the app (Which it is opening). It should run certain that like making a call to the api.
    Can please any one help me how i can achieve this task i have searched all over the internet but didn't found any solution.
    PLEASE HELP MEE!!!!!

  • @BenjaminAnoh
    @BenjaminAnoh 3 года назад

    My app has a different bundle for the widget, does it mean I will need to submit the widget separately on the App Store?

  • @carloscardona548
    @carloscardona548 3 года назад

    is there a way to do it without groups? (do you need apple developer account?)

    • @chasingmachinebirds7657
      @chasingmachinebirds7657 3 года назад

      You just need to use an unique name here. You can try using group.carloscardona.widgetcache.

  • @andrewiglinski148
    @andrewiglinski148 2 года назад

    Awesome video dude but for facks sake put your dock on auto-hide. I had this going in fullscreen on my second monitor while I was working and I kept trying to wiggle my mouse just to get the dock to disappear lol.

  • @aird1893
    @aird1893 Год назад

    Hey - how can we opt out of dark mode for widgets? any lead?

    • @iOSAcademy
      @iOSAcademy  Год назад +1

      dont use semantic colors

    • @aird1893
      @aird1893 Год назад

      @@iOSAcademy hey - thanks - I figured it out :)
      Many thanks

  • @pachipalabhanuchandra1161
    @pachipalabhanuchandra1161 3 года назад

    Create a generic protocol named StackProtocol which consists of following methods which can perform
    operations on a stack of any data-type (e.g. String, Int, etc.):
    push(item)  which will add an item in stack
    pop()  which will return an item from stack
    count()  which will count and return number of items in stack
    Create a generic class named CustomStack which can be used to represent a stack of any data-type. It
    will conform to StackProtocol and has a private stored property in form of array to store the items of
    a stack. Use proper error handling such that an error is thrown if we try to access an element from
    empty stack or add an element when stack is full. (Note: assume that maximum size of stack is: 5).
    Also create an extension of CustomStack which contains a method to calculate and return the average
    of all elements of stack if elements are numeric.
    Can u give the code for this

  • @documentzhou1334
    @documentzhou1334 3 года назад

    不够全面,很多细节没讲到

  • @jacobdorflinger
    @jacobdorflinger 3 года назад

    2nd

  • @girlsexy5848
    @girlsexy5848 3 года назад

    *iOS Academy* I like your video