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
a57d9892
Unverified
Commit
a57d9892
authored
Nov 04, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editor: updated Capture to asynchronously change cameras
parent
a9eafa58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Sources/iOS/Capture/Capture.swift
+4
-1
Sources/iOS/CharacterAttribute.swift
+2
-2
No files found.
Sources/iOS/Capture/Capture.swift
View file @
a57d9892
...
...
@@ -1122,7 +1122,10 @@ extension Capture {
*/
@objc
fileprivate
func
handleChangeCameraButton
(
button
:
UIButton
)
{
changeCamera
()
DispatchQueue
.
main
.
async
{
[
weak
self
]
in
self
?
.
changeCamera
()
}
delegate
?
.
capture
?(
capture
:
self
,
didPressChangeCamera
:
button
)
}
...
...
Sources/iOS/CharacterAttribute.swift
View file @
a57d9892
...
...
@@ -129,7 +129,7 @@ extension NSMutableAttributedString {
- Parameter range: A NSRange.
*/
open
func
addAttribute
(
characterAttribute
:
CharacterAttribute
,
value
:
Any
,
range
:
NSRange
)
{
addAttribute
(
characterAttribute
.
rawValue
,
value
:
value
,
range
:
range
)
addAttribute
(
CharacterAttributeToValue
(
attribute
:
characterAttribute
)
,
value
:
value
,
range
:
range
)
}
/**
...
...
@@ -138,6 +138,6 @@ extension NSMutableAttributedString {
- Parameter range: A NSRange.
*/
open
func
removeAttribute
(
characterAttribute
:
CharacterAttribute
,
range
:
NSRange
)
{
removeAttribute
(
characterAttribute
.
rawValue
,
range
:
range
)
removeAttribute
(
CharacterAttributeToValue
(
attribute
:
characterAttribute
)
,
range
:
range
)
}
}
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