Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import SwiftUI
- import UIKit
- struct LoadingView: UIViewRepresentable {
- func makeUIView(context: UIViewRepresentableContext<ProgressView>) -> UIActivityIndicatorView {
- let activityIndicator = UIActivityIndicatorView(style: .medium)
- return activityIndicator
- }
- func updateUIView(_ uiView: UIActivityIndicatorView, context: UIViewRepresentableContext<ProgressView>) {
- uiView.startAnimating()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement