Skip to content

Commit 2112205

Browse files
authored
Merge pull request #160 from youngsoft/2.0.0-draft
2.0.0 draft
2 parents 7820aa4 + e094962 commit 2112205

118 files changed

Lines changed: 3345 additions & 3185 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
# 版本变更日志
22
**MyLayout**的所有版本的变更日志都将会在这里记录.
33

4+
## [V2.0.0](https://github.com/youngsoft/MyLinearLayout/releases/tag/2.0.0)(2026/03/15)
5+
### Add
6+
1. 为流式布局MyFlowLayout添加新的`maxLines`属性和`arrangedLines`属性。前者用来设置最大可显示的行列数,后者用来获取当前的行列数,具体例子详见[FLLTest10ViewController](https://github.com/youngsoft/MyLinearLayout/blob/master/MyLayoutDemo/FLLTest10ViewController.m)中的demo.
7+
2. 添加弹性布局MyFlexLayout对`space-evenly`属性值的支持。
8+
9+
### Update
10+
1. 系统大重构,对布局特性做进一步的抽象。将原先的fetchLayoutSizeClass方法改名为fetchLayoutTraitsInSizeClass,并且返回为一个id<MyViewTraits> 或者派生接口。布局中的所有属性都可以用id<MyViewTraits>中的属性来描述和设置。
11+
2. 优化MyLayoutDragger的实现,添加了一个MyLayoutDraggerDelegate协议接口,以便支持实际的拖放操作逻辑处理。
12+
3. 删除对系统过期对象id<UILayoutSupport> 的支持,在MyLayoutPos中的此种位置类型值不再被支持!! 请用 @(MyLayoutPos.safeAreaMargin)
13+
4. 对布局中的关于间距的命名由space统一改名为spacing。这里可能会造成一些错误编译提示,请正确命名:
14+
15+
旧命名|新命名
16+
-------|---------------
17+
subviewSpace | subviewSpacing
18+
subviewHSpace|subviewHSpacing
19+
subviewVSpace|subviewVSpacing
20+
MyPathSpaceType|MyPathSpacingType
21+
MyPathSpace|MyPathSpacing
22+
MyPathLayout.spaceType|MyPathLayout.spacingType
23+
kMyGridSpace|kMyGridSpacing
24+
MySubviewsShrinkType.MySubviewsShrink_Space | MySubviewsShrinkType.MySubviewsShrink_spacing
25+
MySubviewsShrinkType.MySubviewsShrink_SizeAndSpace | MySubviewsShrinkType.MySubviewsShrink_SizeAndSpacing
26+
27+
5. 将MyFlexLayout中的horz_space和vert_space名字改为horz_spacing和vert_spacing
28+
6. 将MyGridLayout中的space改为spacing
29+
30+
### Fixed
31+
1. 修复相对布局MyRelativeLayout中子视图设置visibility为Gone时的尺寸评估错误的缺陷。
32+
33+
34+
435
## [V1.9.9](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.9.9)(2022/12/22)
536
### Add
637
1. 扩充了栅格布局MyGridLayout中行列的自适应尺寸计算的能力。在老版本中如果某个格子的行高为自适应,那么这个格子的子格子只能是行。新版本中自适应行高的格子可以拆分为列子格子,同样自适应列宽的格子可以拆分为行子格子。

MyLayout.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "MyLayout"
19-
s.version = "1.9.10"
19+
s.version = "2.0.0"
2020
s.summary = "MyLayout is an iOS UI framework integrates the functions with Android,AutoLayout,SizeClass,HTML CSS float and flexbox,UIView UITableView."
2121

2222
s.description = <<-DESC
@@ -90,7 +90,7 @@ Pod::Spec.new do |s|
9090
#s.exclude_files = "Classes/Exclude"
9191

9292
s.public_header_files = "MyLayout/Lib/*.h"
93-
s.private_header_files = "MyLayout/Lib/{*Inner.h,MyLayoutDelegate.h,MyLayoutMath.h,MyGridNode.h,MyLayoutSizeClass.h}"
93+
s.private_header_files = "MyLayout/Lib/{*Inner.h,MyLayoutDelegate.h,MyLayoutMath.h,MyGridNode.h,MyLayoutTraitsImpl.h}"
9494

9595

9696
end

MyLayout.xcodeproj/project.pbxproj

Lines changed: 25 additions & 15 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

MyLayout/Lib/MyBaseLayout.h

Lines changed: 164 additions & 55 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)