You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CGLayout.podspec
+4-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
Pod::Spec.newdo |s|
10
10
s.name='CGLayout'
11
-
s.version='0.5.3'
11
+
s.version='0.5.5'
12
12
s.summary='Constraint-based autolayout system written on Swift. Not Autolayout wrapper.'
13
13
14
14
# This description is used to generate tags and improve search results.
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
# * Write the description between the DESC delimiters below.
18
18
# * Finally, don't worry about the indent, CocoaPods strips it!
19
19
20
-
s.description='Powerful autolayout framework, that can manage UIView, CALayer and not rendered views. Has cross-hierarchy coordinate space. Implementation performed on rect-based constraints. Fast, asynchronous, declarative, cacheable, extensible.'
20
+
s.description='Powerful autolayout framework, that can manage UIView(NSView), CALayer and not rendered views. Has cross-hierarchy coordinate space. Implementation performed on rect-based constraints. Fast, asynchronous, declarative, cacheable, extensible. Supported iOS, macOS, tvOS.'
// TODO: !! Implement behavior on remove view from hierarchy (Unwrapped LayoutItem, break result in ConstraintsItem). Probably need add `isActive` property.
14
19
// TODO: ! Add support UITraitCollection
15
-
// TODO: !!! Add MacOS, tvOS support
20
+
// TODO: !! Optimization for macOS API
16
21
// TODO: !!! Resolve problem with create offset for adjusted views.
17
22
// TODO: ! Add CGRect.integral
18
23
@@ -155,9 +160,17 @@ public protocol LayoutItem: class, LayoutCoordinateSpace {
155
160
weak varsuperItem:LayoutItem?{get}
156
161
// TODO: Add subItems if will be need create layout sub elements. For instance, stack view.
157
162
}
158
-
extensionUIView:AdjustableLayoutItem{
159
-
public weak varsuperItem:LayoutItem?{return superview }
160
-
}
163
+
#if os(iOS) || os(tvOS)
164
+
extensionUIView:AdjustableLayoutItem{
165
+
public weak varsuperItem:LayoutItem?{return superview }
166
+
}
167
+
#endif
168
+
#if os(macOS)
169
+
extensionNSView:LayoutItem{
170
+
public weak varsuperItem:LayoutItem?{return superview }
171
+
}
172
+
extensionNSControl:AdjustableLayoutItem{}
173
+
#endif
161
174
extensionCALayer:LayoutItem{
162
175
public weak varsuperItem:LayoutItem?{return superlayer }
0 commit comments