title: Setting value to info.plist file from Swift
body: <p>I want to change/modify some value in <code>info.plist</code> from Swift programmatically. For example I want to change "<code>NSAllowsArbitaryLoads</code>" to 0.
  This is code what I am using for editing the value:</p>
  
  <pre><code>func editPlist(){
      var infoPlistPath = Bundle.main.path(forResource: "Info", ofType: "plist")
  
      var infoPlistDict = NSMutableDictionary(contentsOfFile: playersDictionaryPath!)
  
      var nsAppKey = infoPlistDict?.object(forKey: "NSAppTransportSecurity") as! NSDictionary
  
      print(nsAppKey["NSAllowsArbitraryLoads"])
      nsAppKey["NSAllowsArbitraryLoads"] = 0
  }
  </code></pre>
  
  <p>In reality I want to change my exported UTIs image in Swift programmatically. I want to change it for each object that I want to share via <code>UIActivityController</code>.</p>
  
  <p>P.S. : I am using Swift 3 in Xcode 8.</p>