Giter Site home page Giter Site logo

linhay / emptypage Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 12.0 23.97 MB

An empty state control to give visually appealing context when building iOS applications.

License: Apache License 2.0

Ruby 0.11% Swift 11.20% Shell 0.06% HTML 75.68% CSS 1.88% JavaScript 10.98% C 0.10%
cocoapods emptypage emptyview ios swift uicollectionview uitableview

emptypage's Introduction

你好,世界 👋

  • 📙 Focusing on Swift & iOS
  • 🔨 Creator of applications and frameworks
  • 🍖 Meat lover

emptypage's People

Contributors

dependabot[bot] avatar linhay 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

Watchers

 avatar  avatar  avatar  avatar

emptypage's Issues

配合mj使用的时候界面会跳动

使用文字或图片或者标准图片的时候这个时候tableview还是可以拉动的,拉动之后界面一直跳啊跳。能否有设置可以在没数据的时候关闭tableview的拉动的属性。

关于3.3.1 更新的反馈

3.3.1 fix: 显示空白页时禁止ScrollView滑动。
兄弟我集成了你的Widget,在基类进行封装,更新以后发现偶然情况无法滑动列表... 以前用的好好地突然不能用,找了好久没发现是你这边的问题... 得亏测出来了没上线,不然惨了。 个人觉着你的2.0版本就挺够用了,弄个全局也没啥意思吧,囧。

OC版本

啥时候会出一个OC版本呢

setEmptyView 3.3.1版本有问题

func setEmptyView(_ isEmpty: Bool) {
guard isEmpty else {
isScrollEnabled = oldIsScrollEnabled
firstLoadingView?.removeFromSuperview()
emptyView?.removeFromSuperview()
oldEmptyView?.removeFromSuperview()
return
}

    if oldEmptyView?.superview !== self {
        oldIsScrollEnabled = isScrollEnabled
        isScrollEnabled = isEmpty == false
    }

    oldEmptyView?.removeFromSuperview()

oldIsScrollEnabled 我用RxDataSources 实现数据绑定的话,有数据他是禁止滑动的。
跟断点发现的

UIScrollView设置contentInset后,空布局位置偏移不居中

应该是这里resize的问题?有inset的时候坐标原点不再是scrollView的原点,但size还是用的scrollView的size

/// 默认逻辑代码
public extension EmptyPageViewManagerProtocol {

    func ep_resize() {
        guard let delegate = target, let view = emptyView, view.superview == delegate else {
            return
        }
        view.frame = CGRect(origin: .zero, size: delegate.frame.size)
    }
}

提个问题

你好,我在一个基础控制器里面加的emptypage,我在某个页面想更新下emptypage里的图片怎么能做到呢

4.0版本EmptyPageForStandard.ViewType.textLabel高度问题

2021-01-07 10:58:50.258342+0800 thridDemos[6329:2380943] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x283242170 EmptyPage.EmptyPageForText:0x1089278e0.height == 20>",
"<NSLayoutConstraint:0x2832422b0 EmptyPage.EmptyPageForText:0x1089278e0.height == 100>"
)
Will attempt to recover by breaking constraint <NSLayoutConstraint:0x2832422b0 EmptyPage.EmptyPageForText:0x1089278e0.height == 100>

不知道是不是我哪里设置的不对,设置EmptyPageForStandard.ViewType.textLabel的高度控制台出现上面的警告,页面上textLabel的高度被固定为20,始终没变

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.