Skip to content

Commit

Permalink
Open class for customizing
Browse files Browse the repository at this point in the history
  • Loading branch information
ngochiencse committed Jun 6, 2021
1 parent 2a4af47 commit 9565414
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion HPParallaxHeader.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'HPParallaxHeader'
s.version = '1.1.3'
s.version = '1.1.4'
s.summary = 'Simple parallax header for UIScrollView.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion HPParallaxHeader/Classes/HPParallaxHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public protocol HPParallaxHeaderDelegate: AnyObject {
func parallaxHeaderDidScroll(_ parallaxHeader: HPParallaxHeader)
}

public class HPParallaxHeader: NSObject {
open class HPParallaxHeader: NSObject {
/**
The content view on top of the UIScrollView's content.
*/
Expand Down
4 changes: 2 additions & 2 deletions HPParallaxHeader/Classes/HPScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import UIKit
/**
The MXScrollView is a UIScrollView subclass with the ability to hook the vertical scroll from its subviews.
*/
public class HPScrollView : UIScrollView {
open class HPScrollView : UIScrollView {
static var KVOContext = "kHPScrollViewKVOContext"

/**
Expand All @@ -53,7 +53,7 @@ public class HPScrollView : UIScrollView {
initialize()
}

required init?(coder: NSCoder) {
required public init?(coder: NSCoder) {
super.init(coder: coder)
initialize()
}
Expand Down
2 changes: 1 addition & 1 deletion HPParallaxHeader/Classes/HPScrollViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private var parallaxHeaderKey: UInt8 = 0
/**
The MXScrollViewController class.
*/
public class HPScrollViewController: UIViewController {
open class HPScrollViewController: UIViewController {
static var KVOContext = "kDMScrollViewControllerKVOContext"

/**
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

[![Travis (.com)](https://img.shields.io/travis/com/ngochiencse/HPParallaxHeader)](https://www.travis-ci.com/github/ngochiencse/HPParallaxHeader)
[![Version](https://img.shields.io/cocoapods/v/HPParallaxHeader)](http://cocoapods.org/pods/HPParallaxHeader)
![Swift 5.0](https://img.shields.io/badge/swift-5.0-orange)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](https://img.shields.io/cocoapods/l/HPParallaxHeader)](http://cocoapods.org/pods/HPParallaxHeader)
[![Cocoapods platforms](https://img.shields.io/cocoapods/p/HPParallaxHeader)](http://cocoapods.org/pods/HPParallaxHeader)

:warning: This project is no longer maintained, see [#124](https://github.com/maxep/HPParallaxHeader/issues/124) :warning:
HPParallaxHeader is a Swift conversion from https://github.com/maxep/MXParallaxHeader.

HPParallaxHeader is a simple header class for UIScrollView.

Expand Down

0 comments on commit 9565414

Please sign in to comment.