How to share UserDefaults between Apps and Targets with App Groups in Swift 4.2

Поделиться
HTML-код
  • Опубликовано: 13 окт 2024

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

  • @rebeloper
    @rebeloper  5 лет назад +3

    How do you use UserDefaults?

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

    Hello Alex, you show how you can share strings, which is very good, how can you share data i.e jpeg images, I am thinking here updating widget from main app. Good tutorial Jeff

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

      Hey Jeff. It's a bit more complicated than a comment answer. Let me show you on a mentoring session: rebeloper.com/mentoring

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

      @@rebeloper Hello Alex, have sent reply in mail, thanks Jeff

  • @md.ashikurrahman5822
    @md.ashikurrahman5822 Год назад

    Hello, will this process work for “Device Activity Report Extension” Target?

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

      It should work. Let me know how it goes.
      Stop using Spacer in SwiftUI (and what to use instead) 👇
      ruclips.net/video/S6bufNjIteQ/видео.html&ab_channel=Rebeloper-RebelDeveloper

  • @brenodemelogomes1270
    @brenodemelogomes1270 5 лет назад

    Alex you are simply incredible

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

    thx bro, by the way you look like tom hanks :)

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

      LOL. I get that a lot. Next check out WWDC23: You're NOT Ready for this WWDC23 Wish List! 👇
      ruclips.net/video/msjk6CJpcY8/видео.html&ab_channel=Rebeloper-RebelDeveloper

  • @AlexandraRusu-f3b
    @AlexandraRusu-f3b Год назад

    Is it possible to use it for widgets? how?

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

      Some widgets support it some don't. Yuo need to test.
      Did you wonder if will AI replace programmers? Check out my take on it 👇
      ruclips.net/video/9NlECBGI-OM/видео.html&ab_channel=Rebeloper-RebelDeveloper

  • @VarunBansal7
    @VarunBansal7 4 года назад

    Can I use App Groups to store files that need to be shared across Targets. If yes, would this be possible without a developer account, because i read somewhere that you need to define app groups in your developer account as well?

    • @rebeloper
      @rebeloper  4 года назад

      Yes, you can store shared files across targets, and yes you have to have a developer account first. Have you taken my survey? Your responses will be put to good use as I figure out how I can best serve you and the Rebeloper community with my future services. forms.gle/ed76fuuR52ab8Rcc8

    • @arslankhalid2919
      @arslankhalid2919 4 года назад

      Hello sir... I am not sure you will answer me or not. But I am having a big issue. please suggest me. I am trying to send data from today Widget Extension of iPhone app to watch interface controller using WCSession method sendMessage(), but that is not working at all in Widget. But it works perfect from another controller when app is open. Please can you help me out this?

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

    You're a legend.

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

      Thanks. Glad you enjoyed it.
      If you liked this video you will love my latest live stream about SwiftUI and Firebase Push Notifications: ruclips.net/video/r1d8AFz97og/видео.html

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

    thanks

    • @rebeloper
      @rebeloper  11 месяцев назад

      You're welcome!
      🚨 A Subscriber Sent Me a Junior Swift Interview Challenge, Let's Solve It 👇
      ruclips.net/video/supzAhPiDZ8/видео.html&ab_channel=Rebeloper-RebelDeveloper

  • @dennis.denjoo
    @dennis.denjoo 3 года назад

    It’s possible to open the shared UserDefaults file on real device? I want to check the content. A container download not contains the shared UserDefaults file.

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

      It should be...
      BTW if you liked this video you will love my newest tutorial about async/await in SwiftUI: ruclips.net/video/ZC2ljzBv8uA/видео.html

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

    hola. amigo , una duda cono limpias los apps groups, o los user defauls al cerrar sesion en una app

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

      Use this extension:
      extension UserDefaults {
      static func resetDefaults() {
      if let bundleID = Bundle.main.bundleIdentifier {
      UserDefaults.standard.removePersistentDomain(forName: bundleID)
      }
      }
      }
      Next check out the FUTURE of SwiftUI Navigation View: ruclips.net/video/pGqoV31qtsA/видео.html

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

      @@rebeloper muchas gracias 👏😃

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

      Welcome! BTW do you know EVERYTHING You Need to KNOW About SwiftUI TabView? 👉 ruclips.net/video/4ywuzr3NDiM/видео.html

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

    thanks a lot :)

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

      You are welcome.
      Question: Do you want to write clean code? Watch this: ruclips.net/video/rndiYu8If-I/видео.html

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

    Great video thx

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

      Glad you enjoyed it. Mat! Do you love SwiftUI? Let me tell you the 7 things I HATE about SwiftUI: ruclips.net/video/N2i28zxjfvs/видео.html

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

      ​@@rebeloper hi, I have mixed feeling about SwiftUI, for smaller project it's very handy but when it comes to project with high complexity I would not use it.

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

      What parts do you feel SwiftUI could not handle?

  • @Waasys
    @Waasys 4 года назад

    Dude what's going on with your cursor

    • @rebeloper
      @rebeloper  4 года назад

      It's the recording software messing it up LOL. BTW take a look at my latest Core Data tutorial about NSFetchedResultsController: ruclips.net/video/AcWgH5jgwQc/видео.html

  • @wiwi-yb
    @wiwi-yb 3 года назад

    Thanks

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

      Welcome. BTW if you liked this video you will love *Swift Encryption with Crypto Manager* ruclips.net/video/PCKQ6HXIFo4/видео.html