Skip to content

Commit

Permalink
优化对iOS11的支持,增加基线对齐功能,修复诸多BUG,优化DEMO目录结构
Browse files Browse the repository at this point in the history
  • Loading branch information
欧柏泉 committed Nov 7, 2017
1 parent e002e3d commit f4f548c
Show file tree
Hide file tree
Showing 34 changed files with 1,308 additions and 382 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@

---

## [V1.1.3](https://github.com/youngsoft/TangramKit/releases/tag/1.1.3)(2017/11/08)

#### Added
1. 添加了对**基线对齐baseline**的支持[issue:#43](https://github.com/youngsoft/MyLinearLayout/issues/43),目前只有**水平线性布局(TGLinearLayout)****相对布局(TGRelativeLayout)**支持基线对齐。
1.**TGGravity**中添加了`TGGravity.vert.baseline`的枚举定义来支持线性布局的基线对齐,并且在线性布局中添加了一个属性:`tg_baselineBaseView`来指定某个基线基准视图。同时在布局视图的tg_gravity属性中支持对`TGGravity.vert.baseline`的设置。具体例子参考:[LLTest1ViewController](https://github.com/youngsoft/TangramKit/blob/master/TangramKitDemo/linerLayoutDemo/LLTest1ViewController.swift)

2. 在UIView的扩展属性中增加了一个扩展属性:`tg_baseline`。你可以在相对布局中的子视图使用这个属性来进行基线对齐的设置。具体例子请参考:[RLTest1ViewController](https://github.com/youngsoft/TangramKit/blob/master/TangramKitDemo/linerLayoutDemo/RLTest1ViewController.swift)

2. **TGLayoutPos**中增加了一个特殊的值`tg_safeAreaMargin`用来支持对iOS11应用的适配。
3. 添加对所有设备完美适配的例子,具体看各个DEMO。

#### Change
1. 优化DEMO的目录结构。以便展示更加合理和查找方便。
2. 支持在XCODE8下编译MyLayout的能力。[issue:#54](https://github.com/youngsoft/MyLinearLayout/issues/54)
3. 优化在iPhoneX的横屏下UITableViewCell的动态高度的计算的问题,请参考[AllTest1TableViewCell.swift](https://github.com/youngsoft/TangramKit/blob/master/TangramKitDemo/IntegratedDemo/AllTestModel&View/AllTest1TableViewCell.swift)

#### Fixed
1. 修复各种布局下均分尺寸时可能会中间留出一个像素空间的问题。
2. 修复相对布局下某个子视图固定,其他子视图均分剩余尺寸的问题[BUG#53](https://github.com/youngsoft/MyLinearLayout/issues/53)
3. 优化V1.4.3版本中insetsPaddingFromSafeArea的默认属性设置导致UITableView的中的cell往下偏移,以及iOS11下的多余偏移的问题。
4. 修复表格布局TGTableLayout中的添加行方法`tg_addRow`的列参数设置为整数时无法显示列宽或者列高的问题。
5. 修复了一个当子视图不设置任何约束时,在进行布局时可能出现错误的问题。
6. 修复了路径布局中的子视图在执行动画时可能会产生崩溃的问题。




## [V1.1.2](https://github.com/youngsoft/TangramKit/releases/tag/1.1.2)(2017/9/23)

#### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ To integrate TangramKit into your Xcode project using CocoaPods, specify it in y
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'TangramKit', '~> 1.1.2'
pod 'TangramKit', '~> 1.1.3'
```

Then, run the following command:
Expand Down
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ $ gem install cocoapods
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'TangramKit', '~> 1.1.2'
pod 'TangramKit', '~> 1.1.3'
```

然后运行如下命令:
Expand Down
2 changes: 1 addition & 1 deletion TangramKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "TangramKit"
s.version = "1.1.2"
s.version = 1.1.3
s.summary = "TangramKit is A powerful iOS UI framework. It integrated the Android layout,AutoLayout,SizeClass, HTML/CSS float and flexbox functions."

s.description = <<-DESC
Expand Down
9 changes: 7 additions & 2 deletions TangramKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
1890A2251EDF96C800D61C1A /* TGRelativeLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 681BD90C1E0B92E100403A1F /* TGRelativeLayout.swift */; };
1890A2261EDF96C800D61C1A /* TGTableLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 681BD90D1E0B92E100403A1F /* TGTableLayout.swift */; };
18BCBD461E1336D900AC7766 /* AllTest8ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18BCBD451E1336D900AC7766 /* AllTest8ViewController.swift */; };
20B6C6E71FA40AEC001D51C7 /* DetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20B6C6E61FA40AEC001D51C7 /* DetailViewController.swift */; };
681BD8DF1E0B91A500403A1F /* TangramKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 681BD8DD1E0B91A500403A1F /* TangramKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
681BD90F1E0B92E100403A1F /* TangramKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 681BD9011E0B92E100403A1F /* TangramKit.swift */; };
681BD9111E0B92E100403A1F /* TGBaseLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 681BD9021E0B92E100403A1F /* TGBaseLayout.swift */; };
Expand Down Expand Up @@ -100,6 +101,7 @@
18270C241C954B3C00CBCC92 /* TangramKitDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TangramKitDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
184243071E327F0800E2CCE1 /* FLLTest5ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FLLTest5ViewController.swift; sourceTree = "<group>"; };
18BCBD451E1336D900AC7766 /* AllTest8ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AllTest8ViewController.swift; sourceTree = "<group>"; };
20B6C6E61FA40AEC001D51C7 /* DetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DetailViewController.swift; sourceTree = "<group>"; };
681BD8DB1E0B91A500403A1F /* TangramKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TangramKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
681BD8DD1E0B91A500403A1F /* TangramKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TangramKit.h; sourceTree = "<group>"; };
681BD8DE1E0B91A500403A1F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -250,6 +252,7 @@
68F035E71E0B7D2700CEBAEF /* AppDelegate.swift */,
68F035E81E0B7D2700CEBAEF /* CFTool.swift */,
68F0363B1E0B7D2700CEBAEF /* ViewController.swift */,
20B6C6E61FA40AEC001D51C7 /* DetailViewController.swift */,
68F035FC1E0B7D2700CEBAEF /* Images.xcassets */,
68F035E91E0B7D2700CEBAEF /* LaunchScreen.storyboard */,
68F036AE1E0B800000CEBAEF /* TangramKitPrefix.pch */,
Expand Down Expand Up @@ -444,6 +447,7 @@
TargetAttributes = {
18270C231C954B3C00CBCC92 = {
CreatedOnToolsVersion = 7.2;
DevelopmentTeam = Q5MFLFRY64;
LastSwiftMigration = 0900;
SystemCapabilities = {
com.apple.BackgroundModes = {
Expand Down Expand Up @@ -530,6 +534,7 @@
68F036731E0B7D2700CEBAEF /* RLTest2ViewController.swift in Sources */,
18058AAF1E63B4EA00EAECDC /* FLLTest6ViewController.swift in Sources */,
68F036501E0B7D2700CEBAEF /* AllTest2ViewController.swift in Sources */,
20B6C6E71FA40AEC001D51C7 /* DetailViewController.swift in Sources */,
184243081E327F0800E2CCE1 /* FLLTest5ViewController.swift in Sources */,
68F0363D1E0B7D2700CEBAEF /* CFTool.swift in Sources */,
68F036581E0B7D2700CEBAEF /* AllTest2TableViewCell.swift in Sources */,
Expand Down Expand Up @@ -729,7 +734,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = Q5MFLFRY64;
FRAMEWORK_SEARCH_PATHS = "";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = TangramKit/TangramKitDemo/TangramKitPrefix.pch;
Expand All @@ -750,7 +755,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = Q5MFLFRY64;
FRAMEWORK_SEARCH_PATHS = "";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = TangramKit/TangramKitDemo/TangramKitPrefix.pch;
Expand Down
2 changes: 1 addition & 1 deletion TangramKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.2</string>
<string>1.1.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
Loading

0 comments on commit f4f548c

Please sign in to comment.