yalantis / pulltomakesoup Goto Github PK
View Code? Open in Web Editor NEWCustom animated pull-to-refresh that can be easily added to UIScrollView
Home Page: https://yalantis.com/
License: MIT License
Custom animated pull-to-refresh that can be easily added to UIScrollView
Home Page: https://yalantis.com/
License: MIT License
Hi, thanks for such wonderful animation.
I think we need to mention that it only work when the size is determined. Like in viewDidAppear
as in the example project
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
tableView.addPullToRefresh(PullToMakeSoup(), action: {
let delayTime = dispatch_time(DISPATCH_TIME_NOW,
Int64(5 * Double(NSEC_PER_SEC)))
dispatch_after(delayTime, dispatch_get_main_queue()) { [unowned self] in
self.tableView.endRefreshing()
}
})
}
I have implemented the code as suggested. Everything works fine except that when I release the pull, the tableview cells and animation both slides up and animation hides behind the navigation bar. How can I keep the animation on screen until it is completed and then slide it up to disappear from the screen?
let refresher = PullToMakeSoup() When I add this somewhere in my code, I get that error. Yes I included the import PullToMakeSoup and PullToRefresh. Also, tableView.endRefreshing() is saying: Missing argument for ' at'. How can I fix this?
If you rotate the device while making the soup UI not updates properly.
Hi,
any news about swift 3 compatibility?
Thanks!
\m
Whenever I add the import statement to my bridging header it gives me an error reading saying that the files could not be found. Any help please?
public class PullToMakeSoup: PullToRefresh {
public convenience init() {
let refreshView = NSBundle(identifier: "Yalantis.PullToMakeSoup")!.loadNibNamed("SoupView", owner: nil, options: nil).first as! SoupView
let animator = SoupAnimator(refreshView: refreshView)
self.init(refreshView: refreshView, animator: animator)
}
}
fatal error: unexpectedly found nil while unwrapping an Optional value
Zafars-iMac:podinstall ZafarAhmad$ pod install
Analyzing dependencies
Downloading dependencies
Installing PullToMakeFlight (1.1.2)
Installing PullToMakeSoup (1.2)
Installing PullToRefresher (1.4.0)
[!] Error installing PullToRefresher
[!] /usr/bin/git clone https://github.com/Yalantis/PullToRefresh.git /var/folders/89/9pzfjxd50bs5_hy39qqm3m8r0000gn/T/d20160804-2979-vq368o --template= --single-branch --depth 1 --branch 1.4.0
Cloning into '/var/folders/89/9pzfjxd50bs5_hy39qqm3m8r0000gn/T/d20160804-2979-vq368o'...
warning: Could not find remote branch 1.4.0 to clone.
fatal: Remote branch 1.4.0 not found in upstream origin
This is my Podfile
inhibit_all_warnings!
target 'podinstall' do
use_frameworks!
target 'podinstallTests' do
pod 'PullToMakeFlight'
pod 'PullToMakeSoup'
# Pods for testing
end
target 'podinstallUITests' do
inherit! :search_paths
# Pods for testing
end
end
In line 98 and 126 of PullToRefresh.swift, the following warning is generated: Simultaneous accesses to 0x104e18828, but modification requires exclusive access
line 98: if (context == &KVOContext && keyPath == contentOffsetKeyPath && object as? UIScrollView == scrollView) {
line 126: else if (context == &KVOContext && keyPath == contentSizeKeyPath && object as? UIScrollView == scrollView) {
I believe this is an issue from Swift 4 monitoring simultaneous access more carefully.
CocoaPods : 1.3.1
Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
RubyGems : 2.5.2
Host : Mac OS X 10.13.4 (17E199)
Xcode : 9.4 (9F1027a)
Git : git version 2.15.1 (Apple Git-101)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ d216389487cda4da0b37deddcb79b5f6373ede58
Executable Path: /usr/local/bin/pod
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target '' do
pod 'PullToMakeSoup', '~> 2.0'
end
Could you please add support for Carthage?
Pulltomakesoup.swift file and location has this error:
let progressWithOffset: (Double, Double) -> Double = { offset, progress in
return progress < offset ? 0 : Double((progress - offset) * 1 / (1 - offset))
Currently trying to upgrade from v1.0 to v1.1. When I try do a build, I get the following error: Could not build module 'PullToMakeSoup'. I am trying to import into an Objective-C controller. When I inspect the selectors, it does reveal the appropriate -Swift.h file, but the build continues to fail. I am using use_frameworks!
in my .Podfile.
Any ideas or suggestions? I have tried to clean, rebuild, and clear out Derived Data to no avail.
2016-06-16 17:04:24.126 SouWang[99009:1017324] Could not load the "circle" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.127 SouWang[99009:1017324] Could not load the "shadow" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.128 SouWang[99009:1017324] Could not load the "cover" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.128 SouWang[99009:1017324] Could not load the "pan" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.129 SouWang[99009:1017324] Could not load the "carrot" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.129 SouWang[99009:1017324] Could not load the "potato" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.130 SouWang[99009:1017324] Could not load the "water" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.130 SouWang[99009:1017324] Could not load the "pea" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
2016-06-16 17:04:24.131 SouWang[99009:1017324] Could not load the "Flames0001" image referenced from a nib in the bundle with identifier "org.cocoapods.PullToMakeSoup"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.