Commit 82ad94e1 authored by pete谢兆麟's avatar pete谢兆麟

动画

parent 96ca62d1
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
04013E382CF84B29001A8E40 /* YHSelectViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04013E372CF84B29001A8E40 /* YHSelectViewModel.swift */; }; 04013E382CF84B29001A8E40 /* YHSelectViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04013E372CF84B29001A8E40 /* YHSelectViewModel.swift */; };
04013E3A2CF85086001A8E40 /* YHSelectCategoryModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04013E392CF85086001A8E40 /* YHSelectCategoryModel.swift */; }; 04013E3A2CF85086001A8E40 /* YHSelectCategoryModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04013E392CF85086001A8E40 /* YHSelectCategoryModel.swift */; };
04013E3C2CF86BB5001A8E40 /* YHSelectMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04013E3B2CF86BB5001A8E40 /* YHSelectMenuView.swift */; }; 04013E3C2CF86BB5001A8E40 /* YHSelectMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04013E3B2CF86BB5001A8E40 /* YHSelectMenuView.swift */; };
04013E3E2CF87F3A001A8E40 /* zhibo.json in Resources */ = {isa = PBXBuildFile; fileRef = 04013E3D2CF87F3A001A8E40 /* zhibo.json */; };
040450CF2CC8A0F400D1CFE5 /* YHResignDocumentMultiLineTipsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 040450CE2CC8A0F400D1CFE5 /* YHResignDocumentMultiLineTipsCell.swift */; }; 040450CF2CC8A0F400D1CFE5 /* YHResignDocumentMultiLineTipsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 040450CE2CC8A0F400D1CFE5 /* YHResignDocumentMultiLineTipsCell.swift */; };
0408C3632BEC7C6900DB1E25 /* YHVideoPlayerControlView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0408C3622BEC7C6900DB1E25 /* YHVideoPlayerControlView.swift */; }; 0408C3632BEC7C6900DB1E25 /* YHVideoPlayerControlView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0408C3622BEC7C6900DB1E25 /* YHVideoPlayerControlView.swift */; };
0409BEEB2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0409BEEA2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift */; }; 0409BEEB2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0409BEEA2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift */; };
...@@ -1075,6 +1076,7 @@ ...@@ -1075,6 +1076,7 @@
04013E372CF84B29001A8E40 /* YHSelectViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectViewModel.swift; sourceTree = "<group>"; }; 04013E372CF84B29001A8E40 /* YHSelectViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectViewModel.swift; sourceTree = "<group>"; };
04013E392CF85086001A8E40 /* YHSelectCategoryModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectCategoryModel.swift; sourceTree = "<group>"; }; 04013E392CF85086001A8E40 /* YHSelectCategoryModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectCategoryModel.swift; sourceTree = "<group>"; };
04013E3B2CF86BB5001A8E40 /* YHSelectMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectMenuView.swift; sourceTree = "<group>"; }; 04013E3B2CF86BB5001A8E40 /* YHSelectMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectMenuView.swift; sourceTree = "<group>"; };
04013E3D2CF87F3A001A8E40 /* zhibo.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = zhibo.json; sourceTree = "<group>"; };
040450CE2CC8A0F400D1CFE5 /* YHResignDocumentMultiLineTipsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignDocumentMultiLineTipsCell.swift; sourceTree = "<group>"; }; 040450CE2CC8A0F400D1CFE5 /* YHResignDocumentMultiLineTipsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignDocumentMultiLineTipsCell.swift; sourceTree = "<group>"; };
0408C3622BEC7C6900DB1E25 /* YHVideoPlayerControlView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHVideoPlayerControlView.swift; sourceTree = "<group>"; }; 0408C3622BEC7C6900DB1E25 /* YHVideoPlayerControlView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHVideoPlayerControlView.swift; sourceTree = "<group>"; };
0409BEEA2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPrincipleProfileListCell.swift; sourceTree = "<group>"; }; 0409BEEA2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPrincipleProfileListCell.swift; sourceTree = "<group>"; };
...@@ -5502,6 +5504,7 @@ ...@@ -5502,6 +5504,7 @@
A5DF3D4A2BF9A304003D5F03 /* jsons */ = { A5DF3D4A2BF9A304003D5F03 /* jsons */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
04013E3D2CF87F3A001A8E40 /* zhibo.json */,
A5F9EA022C647D32005BCA73 /* tabbar */, A5F9EA022C647D32005BCA73 /* tabbar */,
043BA8822C24360C006EF02D /* people_rotate */, 043BA8822C24360C006EF02D /* people_rotate */,
043BA87C2C2435D4006EF02D /* people_launch */, 043BA87C2C2435D4006EF02D /* people_launch */,
...@@ -5734,6 +5737,7 @@ ...@@ -5734,6 +5737,7 @@
A51044182B493675006B60BB /* README.md in Resources */, A51044182B493675006B60BB /* README.md in Resources */,
A5EE42012C216C78005BBA5D /* img_0.png in Resources */, A5EE42012C216C78005BBA5D /* img_0.png in Resources */,
04F0ABF32C364F9400518C30 /* home.json in Resources */, 04F0ABF32C364F9400518C30 /* home.json in Resources */,
04013E3E2CF87F3A001A8E40 /* zhibo.json in Resources */,
04564D5D2CF49F0A004456E4 /* live_room_test_bg.png in Resources */, 04564D5D2CF49F0A004456E4 /* live_room_test_bg.png in Resources */,
04943BE82CF0A0B500BF2255 /* submit_page_scroll.gif in Resources */, 04943BE82CF0A0B500BF2255 /* submit_page_scroll.gif in Resources */,
A5573EDB2B317C0000D98EC0 /* Assets.xcassets in Resources */, A5573EDB2B317C0000D98EC0 /* Assets.xcassets in Resources */,
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
import UIKit import UIKit
import Lottie
class YHSelectLookView: UIView { class YHSelectLookView: UIView {
static let viewH : CGFloat = 92.0 static let viewH : CGFloat = 92.0
...@@ -99,6 +100,7 @@ extension YHSelectLookView: UICollectionViewDelegate, UICollectionViewDataSource ...@@ -99,6 +100,7 @@ extension YHSelectLookView: UICollectionViewDelegate, UICollectionViewDataSource
class YHSelectLookViewCell: UICollectionViewCell { class YHSelectLookViewCell: UICollectionViewCell {
static let cellReuseIdentifier = "YHSelectLookViewCell" static let cellReuseIdentifier = "YHSelectLookViewCell"
var animationView: LottieAnimationView!
lazy var headIamge: UIImageView = { lazy var headIamge: UIImageView = {
let image = UIImageView() let image = UIImageView()
...@@ -133,17 +135,30 @@ class YHSelectLookViewCell: UICollectionViewCell { ...@@ -133,17 +135,30 @@ class YHSelectLookViewCell: UICollectionViewCell {
} }
private func setupUI() { private func setupUI() {
contentView.addSubview(headIamge) animationView = {
headIamge.snp.makeConstraints { make in let view = LottieAnimationView(name: "zhibo")
view.loopMode = .loop
return view
}()
contentView.addSubview(animationView)
animationView.snp.makeConstraints { make in
make.top.centerX.equalToSuperview() make.top.centerX.equalToSuperview()
make.width.height.equalTo(54) make.width.height.equalTo(54)
} }
contentView.addSubview(headIamge)
headIamge.snp.makeConstraints { make in
make.center.equalTo(animationView.snp.center)
make.width.height.equalTo(48)
}
contentView.addSubview(descripeLable) contentView.addSubview(descripeLable)
descripeLable.snp.makeConstraints { make in descripeLable.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview() make.left.right.bottom.equalToSuperview()
make.height.equalTo(14) make.height.equalTo(14)
} }
animationView.play()
} }
func updataAllSubViews() { func updataAllSubViews() {
......
{"v":"5.6.10","fr":60,"ip":0,"op":120,"w":180,"h":180,"nm":"Test","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Ellipse 1886","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":48,"s":[100]},{"t":90,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[90,90,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"t":90,"s":[126,126,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[138,138],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.701960802078,0.784313738346,0.913725495338,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Ellipse 1886","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment