Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import SwiftUI
  2. import UIKit
  3.  
  4. struct LoadingView: UIViewRepresentable {
  5. func makeUIView(context: UIViewRepresentableContext<ProgressView>) -> UIActivityIndicatorView {
  6. let activityIndicator = UIActivityIndicatorView(style: .medium)
  7. return activityIndicator
  8. }
  9.  
  10. func updateUIView(_ uiView: UIActivityIndicatorView, context: UIViewRepresentableContext<ProgressView>) {
  11. uiView.startAnimating()
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement