Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
# 版本变更日志
**MyLayout**的所有版本的变更日志都将会在这里记录.

## [V2.0.0](https://github.com/youngsoft/MyLinearLayout/releases/tag/2.0.0)(2026/03/15)
### Add
1. 为流式布局MyFlowLayout添加新的`maxLines`属性和`arrangedLines`属性。前者用来设置最大可显示的行列数,后者用来获取当前的行列数,具体例子详见[FLLTest10ViewController](https://github.com/youngsoft/MyLinearLayout/blob/master/MyLayoutDemo/FLLTest10ViewController.m)中的demo.
2. 添加弹性布局MyFlexLayout对`space-evenly`属性值的支持。

### Update
1. 系统大重构,对布局特性做进一步的抽象。将原先的fetchLayoutSizeClass方法改名为fetchLayoutTraitsInSizeClass,并且返回为一个id<MyViewTraits> 或者派生接口。布局中的所有属性都可以用id<MyViewTraits>中的属性来描述和设置。
2. 优化MyLayoutDragger的实现,添加了一个MyLayoutDraggerDelegate协议接口,以便支持实际的拖放操作逻辑处理。
3. 删除对系统过期对象id<UILayoutSupport> 的支持,在MyLayoutPos中的此种位置类型值不再被支持!! 请用 @(MyLayoutPos.safeAreaMargin)
4. 对布局中的关于间距的命名由space统一改名为spacing。这里可能会造成一些错误编译提示,请正确命名:

旧命名|新命名
-------|---------------
subviewSpace | subviewSpacing
subviewHSpace|subviewHSpacing
subviewVSpace|subviewVSpacing
MyPathSpaceType|MyPathSpacingType
MyPathSpace|MyPathSpacing
MyPathLayout.spaceType|MyPathLayout.spacingType
kMyGridSpace|kMyGridSpacing
MySubviewsShrinkType.MySubviewsShrink_Space | MySubviewsShrinkType.MySubviewsShrink_spacing
MySubviewsShrinkType.MySubviewsShrink_SizeAndSpace | MySubviewsShrinkType.MySubviewsShrink_SizeAndSpacing

5. 将MyFlexLayout中的horz_space和vert_space名字改为horz_spacing和vert_spacing
6. 将MyGridLayout中的space改为spacing

### Fixed
1. 修复相对布局MyRelativeLayout中子视图设置visibility为Gone时的尺寸评估错误的缺陷。



## [V1.9.9](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.9.9)(2022/12/22)
### Add
1. 扩充了栅格布局MyGridLayout中行列的自适应尺寸计算的能力。在老版本中如果某个格子的行高为自适应,那么这个格子的子格子只能是行。新版本中自适应行高的格子可以拆分为列子格子,同样自适应列宽的格子可以拆分为行子格子。
Expand Down
4 changes: 2 additions & 2 deletions MyLayout.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

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

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

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


end
40 changes: 25 additions & 15 deletions MyLayout.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
219 changes: 164 additions & 55 deletions MyLayout/Lib/MyBaseLayout.h

Large diffs are not rendered by default.

Loading