Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么控制action占据一整行呢? #123

Open
RondaHo opened this issue Sep 1, 2020 · 10 comments
Open

怎么控制action占据一整行呢? #123

RondaHo opened this issue Sep 1, 2020 · 10 comments

Comments

@RondaHo
Copy link

RondaHo commented Sep 1, 2020

使用LeeAddAction(^(LEEAction * _Nonnull action) 添加两个action,怎么让这两个action不是左右布局,而是上下布局呢?

@lixiang1994
Copy link
Owner

目前Action的布局是固定的 (遵循苹果设计), 以后会增加相关的设置 (时间不定)

@RondaHo
Copy link
Author

RondaHo commented Sep 1, 2020

现在可以再添加一个action,使用三个action就可以让action上下布局,但是每个action之间又有一条线,不知道这条分割线怎么可以去掉。

@lixiang1994
Copy link
Owner

LEEAction中有控制分隔线的属性

@RondaHo
Copy link
Author

RondaHo commented Sep 1, 2020

目前使用了一些trick,设置action.borderPosition为上下左右和action.borderColor为背景同色,达到了需求

@lixiang1994
Copy link
Owner

基本上都可以实现, 如果特别特殊的需求 可以考虑使用自定义视图做

@RondaHo
Copy link
Author

RondaHo commented Sep 1, 2020

企业微信截图_c908fb85-a00c-42d4-bf57-2018199f4d35
这样一个弹框,因为右上角没有X关闭按钮,就懒得去写一个自定义的view。直接最上面贴一个自定义的imageView,下面添加title,content和两个action。

@RondaHo
Copy link
Author

RondaHo commented Sep 1, 2020

框架还是挺强大的,赞!希望作者持续维护

@lixiang1994
Copy link
Owner

哈哈哈, 祝你早日脱离OC 迈向Swift [滑稽]

@RondaHo
Copy link
Author

RondaHo commented Sep 1, 2020

这框架有swift版本吗?有那就太好了。现在90%的代码是用swift

@lixiang1994
Copy link
Owner

没... swift的我现在用的是swiftmessage那个, 以后看看SwiftUI那块吧 现在我是没什么精力搞新的了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants