Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
17b67d99
Commit
17b67d99
authored
Jul 13, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capture progression commit for Swift 2.3
parent
d5096568
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Sources/iOS/CapturePreview.swift
+3
-3
Sources/iOS/CaptureSession.swift
+0
-0
Sources/iOS/CaptureView.swift
+0
-0
No files found.
Sources/iOS/CapturePreview.swift
View file @
17b67d99
...
@@ -43,14 +43,14 @@ public class CapturePreview : MaterialView {
...
@@ -43,14 +43,14 @@ public class CapturePreview : MaterialView {
:name: captureDevicePointOfInterestForPoint
:name: captureDevicePointOfInterestForPoint
*/
*/
public
func
captureDevicePointOfInterestForPoint
(
point
:
CGPoint
)
->
CGPoint
{
public
func
captureDevicePointOfInterestForPoint
(
point
:
CGPoint
)
->
CGPoint
{
return
(
layer
as!
AVCaptureVideoPreviewLayer
)
.
captureDevicePointOfInterest
ForPoint
(
point
)
return
(
layer
as!
AVCaptureVideoPreviewLayer
)
.
captureDevicePointOfInterest
(
for
:
point
)
}
}
/**
/**
:name: pointForCaptureDevicePointOfInterest
:name: pointForCaptureDevicePointOfInterest
*/
*/
public
func
pointForCaptureDevicePointOfInterest
(
point
:
CGPoint
)
->
CGPoint
{
public
func
pointForCaptureDevicePointOfInterest
(
point
:
CGPoint
)
->
CGPoint
{
return
(
layer
as!
AVCaptureVideoPreviewLayer
)
.
pointForCaptureDevicePoint
OfInterest
(
point
)
return
(
layer
as!
AVCaptureVideoPreviewLayer
)
.
pointForCaptureDevicePoint
(
ofInterest
:
point
)
}
}
/**
/**
...
@@ -65,7 +65,7 @@ public class CapturePreview : MaterialView {
...
@@ -65,7 +65,7 @@ public class CapturePreview : MaterialView {
:name: preparePreviewLayer
:name: preparePreviewLayer
*/
*/
private
func
preparePreviewLayer
()
{
private
func
preparePreviewLayer
()
{
layer
.
backgroundColor
=
Color
.
black
.
CG
Color
layer
.
backgroundColor
=
Color
.
black
.
cg
Color
layer
.
masksToBounds
=
true
layer
.
masksToBounds
=
true
(
layer
as!
AVCaptureVideoPreviewLayer
)
.
videoGravity
=
AVLayerVideoGravityResizeAspectFill
(
layer
as!
AVCaptureVideoPreviewLayer
)
.
videoGravity
=
AVLayerVideoGravityResizeAspectFill
}
}
...
...
Sources/iOS/CaptureSession.swift
View file @
17b67d99
This diff is collapsed.
Click to expand it.
Sources/iOS/CaptureView.swift
View file @
17b67d99
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment