Working Swift UIProgressView Example

Can anyone provide a working UIProgressView Example (with all files) using Swift that actually works in XCode 7.1 Beta 3 or greater for compiling iOS 9.1 or greater? What I am attempting to do is parse XML files and load CoreData NSManagedObjectContext with a UIProgressView being displayed during the initial running of the app. But I cannot seem to get UIProgressView to update from within my ReadXMLFiles object class even using a delegate method for the UI to update from. It appears that the Swift function performSelectorOnMainThread(Selector("updateProgressBar:"), withObject: NSNumber(float: progress) is not working nor does dispatch_async work either.


Please test first any suggestions as it appears to be a bug as indicated by others posting regarding UIProgressView and performSelectorOnMainThread.


Thanks for any help here.

Working Swift UIProgressView Example
 
 
Q