Code Monkey home page Code Monkey logo

kafkarefresh's People

Contributors

beatskitano avatar fossabot avatar libern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kafkarefresh's Issues

bug : in a horizontal collection view the pull to refresh triggered from left to right not from top to bottom

提交bug前:

  • 请定位该bug是否由自身代码引发,当该bug模糊不清时,您应该继续思索;
  • 如果您发现该bug由KafkaRefresh引发,且您能修改源码解决,欢迎您提交解决方案或提交一个request,在此先表示感谢。

提交bug必须包含下列要点:

  • iOS版本;12
  • KafkaRefresh版本(可查看cocoapods中提示的版本信息); latest
  • 请您务必给出详细的重现步骤。

When using a horizontal collectionview with empty data, the refresh get triggered if pulled from left to right.

Frozen refresh behaviour at start

When pulling refresh its frozen until you reach some offset. When reached, it starts animating. Is this by design?
It seems to me that expected behaviour is when pulling, you see how refresh is already animating, even if it's 1 pixel on screen.

I wanted to use this component, to not reinvent the wheel again, but this push me away. What do you think?

加载数据后偏移有问题

假设每页能够拉20条数据,我拉取第一页20条数据后继续上拉加载第二页数据,等数据拉取成功后,底部最终不是停留在第一页的最后一条数据。

国际化

您好:
image
当我调用endRefreshingWithAlertText:传入的title为国际化适配的title时,加载完成的动画不显示了,把title直接传入为@"刷新成功"时,动画就可以显示

Disable footRefreshControl when no more data available

Hi
Thanks for this lib !
I want to disable the footRefreshControl if no more data are available.

if(no more data)
[self.theTableView.footRefreshControl endRefreshingAndNoLongerRefreshingWithAlertText: nil];

The above works ONLY if footer was already refreshing because of

if((!self.isRefresh && !self.isAnimating) || self.isHidden) return;

In my case, during the first load (footer not triggered yet), I want to disable footRefreshControl because I already know there are no more data, how can I do ?

Thanks !

Public layer and view extensions

The thing is when I tested component I got conflict with your extension properties for UIView and CALayer and mines. I have almost the same implementation of the extensions in my app, and I think that many projects have them implemented as well.

So this conflict doesn't allow me to use you component, it worked only after I replaced imports of this extensions from .h to .m files:
#import "CALayer+KafkaLayout.h"
#import "UIView+KafkaLayout.h"
And removed them from umbrella list in pods project.

I think that this extensions is good for internal use for your component and would be good if they do not affected other projects.

Background color for refresh

If I got right I can set background color only with singleton.
But in my project I use refreshes on different screens, so choosing one background color for all screens is not suited for me because screens have different background colors.
Changing color in singleton as I switch between screens is obviously kludge.

Would be good to add new method with backgroundColor property or add this property to current method. So it could be possible to set color at refresh creation.

UICollectionView 在数据无法填充屏幕时 刷新和加载都触发不了。

提交bug前:

  • 请定位该bug是否由自身代码引发,当该bug模糊不清时,您应该继续思索;
  • 如果您发现该bug由KafkaRefresh引发,且您能修改源码解决,欢迎您提交解决方案或提交一个request,在此先表示感谢。

提交bug必须包含下列要点:

  • iOS版本;
  • KafkaRefresh版本(可查看cocoapods中提示的版本信息);
  • 请您务必给出详细的重现步骤。

[Feature Request] 特性请求清单

非常不错的库,感谢作者开源。看到README中有FR的入口,所以进来做一下贡献,仅供参考(想必作者重新造轮子肯定也是对于现有的不满)。

  1. 自动加载目前是需要到底部才会触发。可否加一个临界值,比如距离底部1000的时候就触发。
  2. ReplicatorDot 样式初始状态的点点太小,能不能设置大一点。
  3. 请求添加一个类似微信小程序下拉的那种效果,也是3个点。(下拉的时候间距会变大,达到临界值的时候颜色稍微改变,加载中会有一个加载效果)
  4. 最少的加载时间的设置,比如REST接口平均加载只需要50ms, 但是一个动画周期需要600ms,这就会导致下拉后几乎马上就完成了,就看不到动画(并不是说一定要看看动画,而是这给用户的体验不太好,用户会感觉操作没效果一样)

以上,仅供大大参考。

如何更改控件的位置?

在通过设置 contentInset 和添加 view 当做 tableview 的头部时, 自定义 view 会挡在 KafkaRefresh 前面, 请教一下如何调整控件的位置呢?

headRefreshControl设置backgroundColor

headRefreshControl设置backgroundColor之后,tableView的背景颜色为白色,当headRefreshControl.backgroundColor不为白色时候,下拉的时候,会出现白色的view闪动一下

跪求Swift版本,特别喜欢这个刷新控件

提交bug前:

  • 请定位该bug是否由自身代码引发,当该bug模糊不清时,您应该继续思索;
  • 如果您发现该bug由KafkaRefresh引发,且您能修改源码解决,欢迎您提交解决方案或提交一个request,在此先表示感谢。

提交bug必须包含下列要点:

  • iOS版本;
  • KafkaRefresh版本(可查看cocoapods中提示的版本信息);
  • 请您务必给出详细的重现步骤。

自定义

是否能提供一个类,或者scrollview的方法,监听滚动,自己定制view,或者不只在tableview的headerView上增加,支持使用者自己设置.

建议

1、KafkaReplicatorLayer类里,建议把图层相关的位置居中处理,目前是不居中的(比如点动画,将self.replicatorLayer.frame、self.replicatorLayer.instanceTransform处理下就可以了);
2、上拉加载时,建议添加拉到底部时放开就可以加载,目前是拉到一定的偏移量后放开加载。

上拉加载更多

上拉加载更多, 如果所有的数据都被加载完了, 怎样设置, "已经加载完毕", 类似mjrefresh的endRefreshingWithNoMoreData

常用的类的扩张方法冲突

名请加上特定的前缀,否则很容易和其它pod产生冲突。 例如:

KafkaCategories.h 该文件里面的方法。

@interface UIView (KafkaLayout)

@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;
@property (nonatomic) CGFloat centerX;
@property (nonatomic) CGFloat centerY;
@property (nonatomic) CGPoint origin;
@property (nonatomic) CGSize  size;

@end

虽然不算是bug,希望作者可以处理一下,方便通用性!

中英文 README 文档分离

现在的中英文混合的 README 文件似乎不是十分符合懒加载模式呢

--------一个来自 Markdown 程序员的真诚的意见😊

A small problem.

hello !When the frame of UIScrollView is larger than the content, it cannot slide refresh. What's going on here?

swift 方式一初始化 header refresh control 为nil

提交bug前:

  • 请定位该bug是否由自身代码引发,当该bug模糊不清时,您应该继续思索;
  • 如果您发现该bug由KafkaRefresh引发,且您能修改源码解决,欢迎您提交解决方案或提交一个request,在此先表示感谢。

提交bug必须包含下列要点:

  • iOS版本;
  • KafkaRefresh版本(可查看cocoapods中提示的版本信息);
  • 请您务必给出详细的重现步骤。

image

成功被项目名称吸引

我还以为和 Apache 的 Kafka 有什么关系, 没想到是 UI 控件, 被套路了...
开玩笑的, UI 做的挺炫, 不过我还是想知道为啥叫 Kafka😀

主动下拉刷新问题

添加完tableview下拉刷新之后调用 主动下拉刷新 页面顶部会多出30左右的空

Refresh icons are slightly off the center to the right

Thanks for this great lib.
謝謝你的美好事物

I find that a refresh icon is slightly off the center to the right.
圖標略微偏離右側中心

Same issue is here.
同樣的問題已經解決了
#49

Is this issue fixed already?
這個問題已經解決了嗎?

If someone know how to fix it, please tell me how to fix it.
如果能告訴我是否有解決方案,我很高興

Thanks
謝謝

KafkaRefreshStyleReplicatorDot 不居中

提交bug前:

  • 请定位该bug是否由自身代码引发,当该bug模糊不清时,您应该继续思索;
  • 如果您发现该bug由KafkaRefresh引发,且您能修改源码解决,欢迎您提交解决方案或提交一个request,在此先表示感谢。

提交bug必须包含下列要点:

  • iOS版本;
  • KafkaRefresh版本(可查看cocoapods中提示的版本信息);
  • 请您务必给出详细的重现步骤。

2.0版本

2.0版本大概啥时候更新呢

fillColor

some style like 'ReplicatorArc' can't use fillColor, It's always show the default color

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.