NSArray+Extension.swift 383 B

123456789101112131415161718
  1. //
  2. // NSArray+Extension.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by kdanmobile on 2023/10/27.
  6. //
  7. import Foundation
  8. extension NSArray{
  9. func removeObjects(arr:[Any], set: IndexSet) -> [Any] {
  10. var newArr: NSMutableArray = arr as! NSMutableArray
  11. // let removeA = newArr.objects(at: set)
  12. newArr.removeObjects(at: set)
  13. return newArr as! [Any]
  14. }
  15. }