Skip to content

Commit

Permalink
Merge pull request AFathi#98 from bartosy-ymija/swift_5
Browse files Browse the repository at this point in the history
Add SCNTechnique retaining support
  • Loading branch information
AFathi committed Nov 21, 2019
2 parents b87b020 + 3b74f31 commit e01e55f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ARVideoKit/Sources/RecordAR.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ import PhotosUI
}
}
}
/**
A boolean that indicates whether render engine should retain SCNTechnique used in the view. Default is `false`.
*/
@objc public var retainTechnique: Bool = false {
didSet {
if retainTechnique {
guard let techniqueSupportingView = view as? SCNTechniqueSupport else {
return
}
renderEngine?.technique = techniqueSupportingView.technique
} else {
renderEngine?.technique = nil
}
}
}

//MARK: - Public initialization methods
/**
Expand Down

0 comments on commit e01e55f

Please sign in to comment.