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
f9213969
Unverified
Commit
f9213969
authored
Nov 10, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory: updates to memory management for Bar types
parent
7f94c146
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
Material.xcodeproj/project.pbxproj
+0
-0
Sources/iOS/Bar.swift
+6
-14
No files found.
Material.xcodeproj/project.pbxproj
View file @
f9213969
This diff is collapsed.
Click to expand it.
Sources/iOS/Bar.swift
View file @
f9213969
...
...
@@ -102,7 +102,7 @@ open class Bar: View {
}
/// ContentView that holds the any desired subviews.
open
fileprivate
(
set
)
var
contentView
:
UIView
open
fileprivate
(
set
)
lazy
var
contentView
=
UIView
()
/// Left side UIViews.
open
var
leftViews
:
[
UIView
]
{
...
...
@@ -141,7 +141,6 @@ open class Bar: View {
public
required
init
?(
coder
aDecoder
:
NSCoder
)
{
leftViews
=
[]
rightViews
=
[]
contentView
=
UIView
()
super
.
init
(
coder
:
aDecoder
)
}
...
...
@@ -154,10 +153,14 @@ open class Bar: View {
public
override
init
(
frame
:
CGRect
)
{
leftViews
=
[]
rightViews
=
[]
contentView
=
UIView
()
super
.
init
(
frame
:
frame
)
}
/// Convenience initializer.
public
convenience
init
()
{
self
.
init
(
frame
:
.
zero
)
}
/**
A convenience initializer with parameter settings.
- Parameter leftViews: An Array of UIViews that go on the left side.
...
...
@@ -185,7 +188,6 @@ open class Bar: View {
var
lc
=
0
var
rc
=
0
/*
grid
.
begin
()
grid
.
views
.
removeAll
()
...
...
@@ -257,7 +259,6 @@ open class Bar: View {
contentView
.
grid
.
commit
()
divider
.
reload
()
*/
}
/**
...
...
@@ -273,14 +274,5 @@ open class Bar: View {
autoresizingMask
=
.
flexibleWidth
interimSpacePreset
=
.
interimSpace3
contentEdgeInsetsPreset
=
.
square1
prepareContentView
()
}
}
extension
Bar
{
/// Prepares the contentView.
fileprivate
func
prepareContentView
()
{
//contentView = UIView()
contentView
.
backgroundColor
=
nil
}
}
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