Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CoreImageHelpers/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<array>
<string>armv7</string>
</array>
<key>NSCameraUsageDescription</key>
<string>Needs access to camera</string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
6 changes: 4 additions & 2 deletions CoreImageHelpers/coreImageHelpers/ImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class MetalImageView: MTKView
fatalError("Device doesn't support Metal")
}

isPaused = true
enableSetNeedsDisplay = false
framebufferOnly = false
}

Expand All @@ -56,11 +58,11 @@ class MetalImageView: MTKView
{
didSet
{
renderImage()
draw()
}
}

func renderImage()
override func draw(_ rect: CGRect)
{
guard let
image = image,
Expand Down