Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DGElasticPullToRefresh.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Pod::Spec.new do |spec|

spec.ios.deployment_target = '8.0'
spec.ios.frameworks = ['UIKit', 'Foundation']
end
end
9 changes: 9 additions & 0 deletions DGElasticPullToRefresh/DGElasticPullToRefreshExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,21 @@ public extension UIScrollView {
public func dg_stopLoading() {
pullToRefreshView?.stopLoading()
}

func dg_stopScrollingAnimation() {
// if let superview = self.superview, let index = superview.subviews.indexOf({ $0 == self }) as Int! {
// removeFromSuperview()
// superview.insertSubview(self, atIndex: index)
// }
}

}

// MARK: -
// MARK: (UIView) Extension

public extension UIView {

func dg_center(_ usePresentationLayerIfPossible: Bool) -> CGPoint {
if usePresentationLayerIfPossible, let presentationLayer = layer.presentation() {
// Position can be used as a center, because anchorPoint is (0.5, 0.5)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "05CD14641BBE8FEA00AF4030"
BuildableName = "DGElasticPullToRefreshExample.app"
BlueprintName = "DGElasticPullToRefreshExample"
ReferencedContainer = "container:DGElasticPullToRefreshExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "05CD14641BBE8FEA00AF4030"
BuildableName = "DGElasticPullToRefreshExample.app"
BlueprintName = "DGElasticPullToRefreshExample"
ReferencedContainer = "container:DGElasticPullToRefreshExample.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "05CD14641BBE8FEA00AF4030"
BuildableName = "DGElasticPullToRefreshExample.app"
BlueprintName = "DGElasticPullToRefreshExample"
ReferencedContainer = "container:DGElasticPullToRefreshExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "05CD14641BBE8FEA00AF4030"
BuildableName = "DGElasticPullToRefreshExample.app"
BlueprintName = "DGElasticPullToRefreshExample"
ReferencedContainer = "container:DGElasticPullToRefreshExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>DGElasticPullToRefreshExample.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>05CD14641BBE8FEA00AF4030</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>