Closed kenji21 closed 4 years ago
Export headers for SPM pakcage
Make header public (otherwise all class are in the module, and not exposed)
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) }
For reference, issue : https://github.com/maxep/MXParallaxHeader/issues/116 and my previous PR https://github.com/maxep/MXParallaxHeader/pull/121
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 :
Screenshots (if appropriate):
Types of changes
Checklist: