maxep / MXParallaxHeader

Simple parallax header for UIScrollView
MIT License
1.73k stars 251 forks source link

Set public headers to make all .h files public #122

Closed kenji21 closed 4 years ago

kenji21 commented 4 years ago

Description

Export headers for SPM pakcage

Motivation and Context

Make header public (otherwise all class are in the module, and not exposed)

How Has This Been Tested?

Created a single view storyboard project, and added https://github.com/openium/MXParallaxHeader in Swift Packages of Xcode, then :

git diff TestMXP/ViewController.swift
diff --git a/TestMXP/ViewController.swift b/TestMXP/ViewController.swift
index f3c8b3b..754cdd0 100644
--- a/TestMXP/ViewController.swift
+++ b/TestMXP/ViewController.swift
@@ -7,12 +7,19 @@
 //

 import UIKit
+import MXParallaxHeader

 class ViewController: UIViewController {

     override func viewDidLoad() {
         super.viewDidLoad()
-        // Do any additional setup after loading the view.
+
+        let header = MXParallaxHeader()
+
+        let scrollView = UIScrollView()
+        scrollView.parallaxHeader = header
+
+        view.addSubview(scrollView)
     }

Screenshots (if appropriate):

Types of changes

Checklist:

kenji21 commented 4 years ago

For reference, issue : https://github.com/maxep/MXParallaxHeader/issues/116 and my previous PR https://github.com/maxep/MXParallaxHeader/pull/121