Hi! this is TDCIAN!
Let's find out about checking network connection status in SwiftUI!
Look at these codes!
(1) NetworkManager.swift
(2) ContentView.swift
(3) In simulator
When network is connected
When network is not connected
Full source code: https://github.com/TDCIAN/NetworkManagerSwiftUI
Reference
'iOS > SwiftUI' 카테고리의 다른 글
[iOS / SwiftUI] Use Deep Link in SwiftUI (0) | 2022.01.11 |
---|---|
[iOS / SwiftUI] Bottom Sheet Drawer Use with Gesture (0) | 2022.01.07 |