Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-native-geek-image-editor
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
react-native-geek-image-editor
Commits
e09d11d7
Commit
e09d11d7
authored
Mar 18, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5d5c3dfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
22 deletions
+2
-22
ImageEditorManger.m
ios/ImageEditorManger.m
+1
-9
YBImageBrowser.m
ios/YBImageBrowser/YBImageBrowser.m
+1
-13
No files found.
ios/ImageEditorManger.m
View file @
e09d11d7
...
@@ -63,15 +63,7 @@ ImageEditorManger *imageEditorManager = nil;
...
@@ -63,15 +63,7 @@ ImageEditorManger *imageEditorManager = nil;
}];
}];
[
self
.
browser
.
defaultToolViewHandler
.
sheetView
.
actions
addObject
:
edit
];
[
self
.
browser
.
defaultToolViewHandler
.
sheetView
.
actions
addObject
:
edit
];
}
}
UIEdgeInsets
safeInsets
=
UIEdgeInsetsMake
(
0
,
0
,
0
,
0
);
[
self
.
browser
showToView
:
rootView
containerRect
:
rootView
.
bounds
.
size
];
if
(
@available
(
iOS
11
.
0
,
*
))
{
safeInsets
=
rootView
.
safeAreaInsets
;
NSLog
(
@" safe insets %.2f, %.2f"
,
safeInsets
.
top
,
safeInsets
.
bottom
);
}
else
{
}
CGSize
size
=
rootView
.
bounds
.
size
;
[
self
.
browser
showToView
:
rootView
containerRect
:
CGRectMake
(
safeInsets
.
left
,
safeInsets
.
top
,
size
.
width
-
safeInsets
.
left
-
safeInsets
.
right
,
size
.
height
-
safeInsets
.
top
-
safeInsets
.
bottom
)];
}
}
#pragma mark - private
#pragma mark - private
...
...
ios/YBImageBrowser/YBImageBrowser.m
View file @
e09d11d7
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
@property
(
nonatomic
,
strong
)
YBIBScreenRotationHandler
*
rotationHandler
;
@property
(
nonatomic
,
strong
)
YBIBScreenRotationHandler
*
rotationHandler
;
@property
(
nonatomic
,
assign
)
BOOL
transitioning
;
@property
(
nonatomic
,
assign
)
BOOL
transitioning
;
@property
(
nonatomic
,
strong
)
UIView
*
maskView
;
@end
@end
@implementation
YBImageBrowser
{
@implementation
YBImageBrowser
{
...
@@ -148,14 +146,6 @@
...
@@ -148,14 +146,6 @@
}
}
}
}
-
(
UIView
*
)
maskView
{
if
(
!
_maskView
)
{
_maskView
=
[[
UIView
alloc
]
init
];
_maskView
.
backgroundColor
=
UIColor
.
blackColor
;
}
return
_maskView
;
}
#pragma mark - public
#pragma mark - public
-
(
void
)
show
{
-
(
void
)
show
{
...
@@ -168,9 +158,7 @@
...
@@ -168,9 +158,7 @@
-
(
void
)
showToView
:
(
UIView
*
)
view
containerRect
:
(
CGRect
)
rect
{
-
(
void
)
showToView
:
(
UIView
*
)
view
containerRect
:
(
CGRect
)
rect
{
[
self
.
rotationHandler
startObserveStatusBarOrientation
];
[
self
.
rotationHandler
startObserveStatusBarOrientation
];
[
view
addSubview
:
self
.
maskView
];
[
view
addSubview
:
self
];
self
.
maskView
.
frame
=
view
.
frame
;
[
self
.
maskView
addSubview
:
self
];
self
.
frame
=
rect
;
self
.
frame
=
rect
;
self
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
self
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
...
...
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