Advertisement
Guest User

Untitled

a guest
Jan 15th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.59 KB | None | 0 0
  1.     /**
  2.      Returns an array of flanges found connected to the view
  3.      
  4.      - Parameters:
  5.          - view: the view to check fro connected flanges
  6.      
  7.      - Returns: [BaseView]]
  8.     */
  9.     static func flangesOnPillarView(_ view: BaseView) -> [BaseView] {
  10.         var flanges : [BaseView] = []
  11.        
  12.         if let pillarView = view as? PillarEquipmentView {
  13.             let foundFlanges = pillarView.arrayOfSetView.filter({EquipmentChecker.imageType(for: $0.load.setsubi.equipment) == .flange})
  14.             flanges = foundFlanges
  15.         }
  16.        
  17.         return flanges
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement