Skip to content

Conversation

@hermanbanken
Copy link

@hermanbanken hermanbanken commented Sep 14, 2022

  • fix UIViewController init: the view controller couldn't be easily instantiated from code. By adding this empty init() it becomes much easier to do.
  • make it a Swift Package: no need for Cocoapods in 2022

Thanks for your library!

Copy link
Owner

@sebromero sebromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I never saw this PR. Thank you for the contribution! Looks good except of the indentation on two lines.

videoPreviewLayer.videoGravity = AVLayerVideoGravity.resizeAspectFill
view.layer.addSublayer(videoPreviewLayer)
view.bringSubview(toFront: highlightView)
view.bringSubviewToFront(highlightView)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
view.bringSubviewToFront(highlightView)
view.bringSubviewToFront(highlightView)

let contextOptions = [CIContextOption.useSoftwareRenderer : false]
#else
let contextOptions = [kCIContextUseSoftwareRenderer : true]
let contextOptions = [CIContextOption.useSoftwareRenderer : true]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let contextOptions = [CIContextOption.useSoftwareRenderer : true]
let contextOptions = [CIContextOption.useSoftwareRenderer : true]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants