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
3cb09fa1
Unverified
Commit
3cb09fa1
authored
Oct 31, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
development: issue-571, update that removes contentEdgeInsetsPreset setting in prepare method
parent
124ec56c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
Sources/iOS/Button.swift
+0
-1
Sources/iOS/Capture/CaptureController.swift
+8
-0
Sources/iOS/View.swift
+1
-1
No files found.
Sources/iOS/Button.swift
View file @
3cb09fa1
...
...
@@ -248,7 +248,6 @@ open class Button: UIButton {
*/
open
func
prepare
()
{
contentScaleFactor
=
Device
.
scale
contentEdgeInsetsPreset
=
.
none
prepareVisualLayer
()
}
...
...
Sources/iOS/Capture/CaptureController.swift
View file @
3cb09fa1
...
...
@@ -54,6 +54,14 @@ open class CaptureController: ToolbarController, CaptureDelegate, CaptureSession
@IBInspectable
open
private(set)
lazy
var
capture
:
Capture
=
Capture
()
open
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
return
UIInterfaceOrientationMask
.
portrait
}
open
override
var
preferredInterfaceOrientationForPresentation
:
UIInterfaceOrientation
{
return
UIInterfaceOrientation
.
portrait
}
/**
Prepares the view instance when intialized. When subclassing,
it is recommended to override the prepare method
...
...
Sources/iOS/View.swift
View file @
3cb09fa1
...
...
@@ -174,7 +174,7 @@ open class View: UIView {
*/
open
func
prepare
()
{
contentScaleFactor
=
Device
.
scale
backgroundColor
=
Color
.
white
backgroundColor
=
.
white
prepareVisualLayer
()
}
...
...
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