SwiftUI Network Monitoring... It's EASY Now!

  Рет қаралды 2,320

Rebeloper - Rebel Developer

Rebeloper - Rebel Developer

Күн бұрын

Пікірлер: 18
@rebeloper
@rebeloper 2 жыл бұрын
The One-Person Business Model (How To Productize Yourself) 👉kzbin.info/www/bejne/m3iZYWafppt6ptk
@0soft
@0soft Жыл бұрын
Why not make isConnected @Published? What is the reason to do that boilerplate code with objectWillChange?
@rebeloper
@rebeloper Жыл бұрын
That will also work. And now with the new @Observable macro it will be much simpler :) 10 Amazing SwiftUI One Liners - SHOULD YOU Use Them? 👇 kzbin.info/www/bejne/gHSkkHp-mdmNrrs&ab_channel=Rebeloper-RebelDeveloper
@backendesign
@backendesign 5 ай бұрын
Nice tutorial Sir! Could you please create a video on AsyncImage caching.
@rebeloper
@rebeloper 3 ай бұрын
Considering it, stay tuned! Have you seen my latest video? 👉 NavigationStack vs. NavigationCoordinator: You Won’t Believe the Difference! kzbin.info/www/bejne/bZfFaHaOqd5on5Y
@vittyfiorentini238
@vittyfiorentini238 2 жыл бұрын
Hello, thanks for your tutorial, I really appreciated it. I would to know, if i have to check if the connection is available ( with the network monitoring) before calling firebase to download data in view did load. Thank you so much. Respect from Italy❤‍🔥
@rebeloper
@rebeloper 2 жыл бұрын
You should fetch data only on the ContentView (that is presented only if there's a connection). BTW where are you storing your code? If it's on your local machine than you have to check out what is GitHub 👇 kzbin.info/www/bejne/nKStaoyHiduFh9E
@_mattaeus_
@_mattaeus_ Жыл бұрын
Out of curiosity, any reason you didn’t opt for an @published var instead?
@rebeloper
@rebeloper Жыл бұрын
Could you point to a timestamp? Thanks, Also here are the Best Coding Habits to Adopt in 2023 👇 kzbin.info/www/bejne/boCZfmqlpJqlns0
@_mattaeus_
@_mattaeus_ Жыл бұрын
@@rebeloper I am talking about your choice of using a regular var for isConnected and use object will change instead of a published varies you see in 5:39
@rebeloper
@rebeloper Жыл бұрын
@Publised will also work. I just like to not give unnecessary powers to my properties. Till than take a look at my lates video about 30 Xcode Keyboard Shortcuts You NEED to Know: kzbin.info/www/bejne/eYjNeXxpq79_ic0
@holycrosscv
@holycrosscv 2 жыл бұрын
Thanks for another great video. I am getting an error: " 'sConnected' is inaccessible due to 'internal' protection level" Any idea? Thanks!
@holycrosscv
@holycrosscv 2 жыл бұрын
Ah ha, marking the class as Public is not enough. the var isConnected must be marked as public as well. Lesson learned.
@rebeloper
@rebeloper 2 жыл бұрын
"isConnected" has to be declared as public: github.com/rebeloper/NetworkMonitor/blob/main/Sources/NetworkMonitor/NetworkMonitor.swift BTW where are you storing your code? If it's on your local machine than you have to check out what is GitHub 👇 kzbin.info/www/bejne/nKStaoyHiduFh9E
@lincolndickerson1293
@lincolndickerson1293 2 жыл бұрын
This is much better than what I used to do. Is it possible to specific information like if it is cell service, wifi network name… or is that still locked down tight?
@rebeloper
@rebeloper 2 жыл бұрын
Not possible at the moment as far as I can tell. BTW where are you storing your code? If it's on your local machine than you have to check out what is GitHub 👇 kzbin.info/www/bejne/nKStaoyHiduFh9E
@lincolndickerson1293
@lincolndickerson1293 2 жыл бұрын
@@rebeloper I have been using GitHub and Bitbucket for well over a decade but thanks for the tip though.
@rebeloper
@rebeloper 2 жыл бұрын
Nice! Question: Is MVVM Good for SwiftUI? 👇 kzbin.info/www/bejne/gnmwhnyZbM-kldk
SwiftUI In-App Subscriptions with RevenueCat 2022
49:36
CodeWithChris
Рет қаралды 33 М.
Networking Connectivity in iOS Using NWPathMonitor
13:38
azamsharp
Рет қаралды 2,9 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 29 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 5 МЛН
Make Sure You Always Get the Best Error Alerts!
18:29
Rebeloper - Rebel Developer
Рет қаралды 1,2 М.
The SECRET to Effortless SwiftUI Navigation Revealed
29:14
Rebeloper - Rebel Developer
Рет қаралды 1,4 М.
How to Implement Map Integration in SwiftUI - Step by Step for Beginners (2023)
45:16
Why I don't do MVVM anymore
10:56
Flo writes Code
Рет қаралды 7 М.
Swift - Result Type - Cleaner Network Calls
12:07
Sean Allen
Рет қаралды 20 М.
Checking Network Connection With SwiftUI || Offline Mode
15:29
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Why RevenueCat is the BEST for iOS Subscriptions! 🚀 Paywalls Made Easy in SwiftUI!
18:47
6 things I wish I knew about SwiftUI when I started
5:28
Rebeloper - Rebel Developer
Рет қаралды 1,9 М.
Request User Location With SwiftUI
26:13
AppStuff
Рет қаралды 10 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН