Read and Write file to iCloud using SwiftUI

Has anyone been able to write/read a file to icloud using SwiftUI? I have seen links where this has been done using UIkit on older versions of Swift and IOS. Not sure how to do it though in SwiftUI with current vesion of Swift 5 and IOS 15