ios - Added site is not blocked with content blocker -
hi writing simple content blocker app. in app want allow user add website wants block , block reasons content blocker doesn't block newly added website reasons. used sfcontentblockermanager.reloadcontentblocker(withidentifier: blockeridentifier) prints success reasons doesn't work. import uikit import cartography import swiftyjson import safariservices protocol myprotocol{ func deletesite(num:int) } class viewcontroller: uiviewcontroller, uitableviewdelegate, uitableviewdatasource, myprotocol { var tableview: uitableview = uitableview() var arr = [string]() func deletesite(num: int) { if let path = bundle.main.path(forresource: "blockerlist", oftype: "json"){ guard let data = nsdata(contentsof: url(fileurlwithpath: path)) else{ return } // json(data: data data)[num] = nil var jsonobj = json(data: data data) // jsonobj.arrayobject?.remove(at: num) print(jsonobj) if jsonobj != js...