Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- Returns an array of flanges found connected to the view
- - Parameters:
- - view: the view to check fro connected flanges
- - Returns: [BaseView]]
- */
- static func flangesOnPillarView(_ view: BaseView) -> [BaseView] {
- var flanges : [BaseView] = []
- if let pillarView = view as? PillarEquipmentView {
- let foundFlanges = pillarView.arrayOfSetView.filter({EquipmentChecker.imageType(for: $0.load.setsubi.equipment) == .flange})
- flanges = foundFlanges
- }
- return flanges
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement