├── ScrollableStackView
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── UIView+RoundCorners.swift
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── AppDelegate.swift
├── ScrollableStackView.swift
└── ViewController.swift
├── ScrollableStackView.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── joandisho.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── xcuserdata
│ └── joandisho.xcuserdatad
│ │ ├── xcschemes
│ │ └── xcschememanagement.plist
│ │ └── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
└── project.pbxproj
├── LICENSE
└── README.md
/ScrollableStackView/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/ScrollableStackView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ScrollableStackView.xcodeproj/project.xcworkspace/xcuserdata/joandisho.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jdisho/ScrollableStackView/HEAD/ScrollableStackView.xcodeproj/project.xcworkspace/xcuserdata/joandisho.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ScrollableStackView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ScrollableStackView.xcodeproj/xcuserdata/joandisho.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ScrollableStackView.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ScrollableStackView/UIView+RoundCorners.swift:
--------------------------------------------------------------------------------
1 | //
2 | // UIView+RoundCorners.swift
3 | // ScrollableStackView
4 | //
5 | // Created by Joan Disho on 18.05.19.
6 | // Copyright © 2019 Joan Disho. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 |
12 | extension UIView {
13 | func roundCorners(_ corners: UIRectCorner = .allCorners, radius: CGFloat) {
14 | DispatchQueue.main.async { [weak self] in
15 | guard let `self` = self else { return }
16 | let path = UIBezierPath(
17 | roundedRect: self.bounds,
18 | byRoundingCorners: corners,
19 | cornerRadii: CGSize(width: radius, height: radius)
20 | )
21 | let mask = CAShapeLayer()
22 | mask.path = path.cgPath
23 | self.layer.mask = mask
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ScrollableStackView.xcodeproj/xcuserdata/joandisho.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Joan Disho
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/ScrollableStackView/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ScrollableStackView/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ScrollableStackView/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/ScrollableStackView/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/ScrollableStackView/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // ScrollableStackView
4 | //
5 | // Created by Joan Disho on 13.05.19.
6 | // Copyright © 2019 Joan Disho. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ScrollableStackView
2 | A simple class that leverages the power of Auto Layout to make `UIStackView` scrollable.
3 |
4 | - 📚 Acts as a normal `UIStackView`, but scrollable.
5 | - 📖 Subclassed from `UIScrollView` and uses `UIStackView` under the hood.
6 | - 👶 Easy-to-understand codebase (~ 100 lines of code)
7 | - 🎉 No external dependencies.
8 |
9 | ## ⚙️ Installation
10 | Download [ScrollableStackView](https://github.com/jdisho/ScrollableStackView/blob/master/ScrollableStackView/ScrollableStackView.swift) and manually import the file into your project.
11 |
12 | ## 📚 Usage
13 | - Initializing
14 | ```swift
15 | let stackView = ScrollableStackView(frame: CGRect)
16 | // or
17 | let stackView = ScrollabelStackView(arrangedSubviews: [UIView]) // returns a new stack view object that manages the provided views
18 | ```
19 |
20 | - Manage arranged subviews
21 | ```swift
22 | var arrangedSubviews: [UIView] // list of views arranged by the stack view
23 |
24 | func addArrangedSubview(UIView) // adds *a view* to the end of the arrangedSubviews
25 |
26 | func addArrangedSubviews([UIView]) // adds *views* to the end of the arrangedSubviews
27 |
28 | func insertArrangedSubview(UIView, at: Int) // adds the provided view to the array of arranged subviews at the specified index
29 |
30 | func removeArrangedSubview(UIView) // removes the provided *view* from the stack’s array of arranged subviews
31 |
32 | func removeArrangedSubviews([UIView]) // removes the provided *views* from the stack’s array of arranged subviews
33 |
34 | ```
35 |
36 | - Configure the layout
37 | ```swift
38 | var axis: NSLayoutConstraint.Axis // default .horizontal
39 |
40 | var distribution: UIStackView.Distribution // default .fill
41 |
42 | var aligment: UIStackView.Distribution // default .fill
43 |
44 | var spacing: CGFloat // default 0.0
45 |
46 | var insets: UIEdgeInsets // default .zero
47 | ```
48 |
49 | *I intent to keep this code base as simple as possible. Just as normal `UIStackView`, which scrolls. If you are interested in a scrollable `UIStackView` on steroids, check out [AloeStackView](https://github.com/airbnb/AloeStackView) by [Airbnb](https://github.com/airbnb).*
50 |
51 | ## 🙏 Acknowledgements
52 | - Inspired from [Agnes Vasarhelyi](https://twitter.com/vasarhelyia)'s [Scrollable UIStackView](https://blog.alltheflow.com/scrollable-uistackview/)
53 | - Official `UIStackView` [documentation](https://developer.apple.com/documentation/uikit/uistackview?changes=latest_minor)
54 | - Created by [Joan Disho](twitter.com/_disho)
55 |
--------------------------------------------------------------------------------
/ScrollableStackView/ScrollableStackView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ScrollableStackView.swift
3 | // ScrollableStackView
4 | //
5 | // Created by Joan Disho on 13.05.19.
6 | // Copyright © 2019 Joan Disho. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ScrollableStackView: UIScrollView {
12 |
13 | var axis: NSLayoutConstraint.Axis = .horizontal {
14 | didSet {
15 | stackView.axis = axis
16 | stackViewWidthConstraint.isActive = (axis == .vertical)
17 | stackViewHeightConstraint.isActive = (axis == .horizontal)
18 | }
19 | }
20 |
21 | var alignment: UIStackView.Alignment = .fill {
22 | didSet {
23 | stackView.alignment = alignment
24 | }
25 | }
26 |
27 | var distribution: UIStackView.Distribution = .fill {
28 | didSet {
29 | stackView.distribution = distribution
30 | }
31 | }
32 |
33 | var spacing: CGFloat = 0.0 {
34 | didSet {
35 | stackView.spacing = spacing
36 | }
37 | }
38 |
39 | var insets: UIEdgeInsets = .zero {
40 | didSet {
41 | stackView.layoutMargins = insets
42 | stackView.isLayoutMarginsRelativeArrangement = true
43 | }
44 | }
45 |
46 | var arrangedSubviews: [UIView] {
47 | return stackView.arrangedSubviews
48 | }
49 |
50 | private let stackView = UIStackView()
51 | private var stackViewWidthConstraint = NSLayoutConstraint()
52 | private var stackViewHeightConstraint = NSLayoutConstraint()
53 |
54 | init(arrangedSubviews: [UIView]) {
55 | super.init(frame: .zero)
56 |
57 | addArrangedSubviews(arrangedSubviews)
58 | }
59 |
60 | override init(frame: CGRect) {
61 | super.init(frame: frame)
62 |
63 | backgroundColor = .white
64 | configureStackView()
65 | }
66 |
67 | required init?(coder aDecoder: NSCoder) {
68 | fatalError("init(coder:) has not been implemented")
69 | }
70 |
71 | func addArrangedSubview(_ view: UIView) {
72 | stackView.addArrangedSubview(view)
73 | }
74 |
75 | func addArrangedSubviews(_ views: [UIView]) {
76 | views.forEach { addArrangedSubview($0) }
77 | }
78 |
79 | func removeArrangedSubview(_ view: UIView) {
80 | stackView.removeArrangedSubview(view)
81 | }
82 |
83 | func removeArrangedSubviews(_ views: [UIView]) {
84 | views.forEach { removeArrangedSubview($0) }
85 | }
86 |
87 | func insertArrangedSubview(_ view: UIView, at stackIndex: Int) {
88 | stackView.insertArrangedSubview(view, at: stackIndex)
89 | }
90 |
91 | private func configureStackView() {
92 | stackView.axis = axis
93 | stackView.alignment = alignment
94 | stackView.distribution = distribution
95 | stackView.spacing = spacing
96 |
97 | stackView.translatesAutoresizingMaskIntoConstraints = false
98 | addSubview(stackView)
99 |
100 | NSLayoutConstraint.activate([
101 | stackView.topAnchor.constraint(equalTo: topAnchor),
102 | stackView.trailingAnchor.constraint(equalTo: trailingAnchor),
103 | stackView.bottomAnchor.constraint(equalTo: bottomAnchor),
104 | stackView.leadingAnchor.constraint(equalTo: leadingAnchor)
105 | ])
106 |
107 | stackViewWidthConstraint = stackView.widthAnchor.constraint(equalTo: widthAnchor)
108 | stackViewHeightConstraint = stackView.heightAnchor.constraint(equalTo: heightAnchor)
109 |
110 | stackViewWidthConstraint.isActive = (axis == .vertical)
111 | stackViewHeightConstraint.isActive = (axis == .horizontal)
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/ScrollableStackView/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // ScrollableStackView
4 | //
5 | // Created by Joan Disho on 13.05.19.
6 | // Copyright © 2019 Joan Disho. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | private lazy var hStackView: ScrollableStackView = {
14 | let stackView = ScrollableStackView(frame: .zero)
15 | stackView.axis = .horizontal
16 | stackView.spacing = 16.0
17 | stackView.insets = UIEdgeInsets(top: 8.0, left: 16.0, bottom: 8.0, right: 16.0)
18 | stackView.showsHorizontalScrollIndicator = false
19 | return stackView
20 | }()
21 |
22 | private lazy var vStackView: ScrollableStackView = {
23 | let stackView = ScrollableStackView(frame: .zero)
24 | stackView.axis = .vertical
25 | stackView.spacing = 16.0
26 | stackView.insets = UIEdgeInsets(top: 8.0, left: 16.0, bottom: 8.0, right: 16.0)
27 | stackView.showsHorizontalScrollIndicator = false
28 | return stackView
29 | }()
30 |
31 | private lazy var containerStackView: UIStackView = {
32 | let stackView = UIStackView(frame: .zero)
33 | stackView.axis = .vertical
34 | stackView.spacing = 32.0
35 | return stackView
36 | }()
37 |
38 | private lazy var roundedViews: [UIView] = {
39 | return (0...20).map { _ in
40 | let view = UIView()
41 | view.backgroundColor = UIColor.random
42 | view.translatesAutoresizingMaskIntoConstraints = false
43 | view.widthAnchor.constraint(equalToConstant: 64.0).isActive = true
44 | view.heightAnchor.constraint(equalToConstant: 64.0).isActive = true
45 | view.roundCorners(radius: 32.0)
46 | return view
47 | }
48 | }()
49 |
50 | private lazy var squaredViews: [UIView] = {
51 | return (0...20).map { i in
52 | let view = ScrollableStackView()
53 | view.axis = .vertical
54 | view.backgroundColor = UIColor.random
55 | view.translatesAutoresizingMaskIntoConstraints = false
56 | var height: CGFloat = 100
57 | if i % 2 == 0 {
58 | height = 300
59 | } else if i % 3 == 0 {
60 | height = 200
61 | }
62 | view.heightAnchor.constraint(equalToConstant: height).isActive = true
63 | view.roundCorners(radius: 16.0)
64 |
65 | return view
66 | }
67 | }()
68 |
69 | override func viewDidLoad() {
70 | super.viewDidLoad()
71 |
72 | containerStackView.translatesAutoresizingMaskIntoConstraints = false
73 | view.addSubview(containerStackView)
74 |
75 | if #available(iOS 11.0, *) {
76 | NSLayoutConstraint.activate([
77 | containerStackView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 24.0),
78 | containerStackView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor),
79 | containerStackView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
80 | containerStackView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor)
81 | ])
82 | } else {
83 | NSLayoutConstraint.activate([
84 | containerStackView.topAnchor.constraint(equalTo: view.topAnchor),
85 | containerStackView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
86 | containerStackView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
87 | containerStackView.leadingAnchor.constraint(equalTo: view.leadingAnchor)
88 | ])
89 | }
90 |
91 | hStackView.addArrangedSubviews(roundedViews)
92 | vStackView.addArrangedSubviews(squaredViews)
93 |
94 | containerStackView.addArrangedSubview(hStackView)
95 | containerStackView.addArrangedSubview(vStackView)
96 | }
97 | }
98 |
99 |
--------------------------------------------------------------------------------
/ScrollableStackView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | DC9C9B982289D21D007E439B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC9C9B972289D21D007E439B /* AppDelegate.swift */; };
11 | DC9C9B9A2289D21D007E439B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC9C9B992289D21D007E439B /* ViewController.swift */; };
12 | DC9C9B9D2289D21D007E439B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DC9C9B9B2289D21D007E439B /* Main.storyboard */; };
13 | DC9C9B9F2289D21F007E439B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DC9C9B9E2289D21F007E439B /* Assets.xcassets */; };
14 | DC9C9BA22289D21F007E439B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DC9C9BA02289D21F007E439B /* LaunchScreen.storyboard */; };
15 | DC9C9BAA2289D23D007E439B /* ScrollableStackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC9C9BA92289D23D007E439B /* ScrollableStackView.swift */; };
16 | DC9C9BAC22908913007E439B /* UIView+RoundCorners.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC9C9BAB22908913007E439B /* UIView+RoundCorners.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | DC9C9B942289D21D007E439B /* ScrollableStackView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ScrollableStackView.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | DC9C9B972289D21D007E439B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
22 | DC9C9B992289D21D007E439B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
23 | DC9C9B9C2289D21D007E439B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
24 | DC9C9B9E2289D21F007E439B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
25 | DC9C9BA12289D21F007E439B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
26 | DC9C9BA32289D21F007E439B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
27 | DC9C9BA92289D23D007E439B /* ScrollableStackView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScrollableStackView.swift; sourceTree = ""; };
28 | DC9C9BAB22908913007E439B /* UIView+RoundCorners.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+RoundCorners.swift"; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | DC9C9B912289D21D007E439B /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | DC9C9B8B2289D21D007E439B = {
43 | isa = PBXGroup;
44 | children = (
45 | DC9C9B962289D21D007E439B /* ScrollableStackView */,
46 | DC9C9B952289D21D007E439B /* Products */,
47 | );
48 | sourceTree = "";
49 | };
50 | DC9C9B952289D21D007E439B /* Products */ = {
51 | isa = PBXGroup;
52 | children = (
53 | DC9C9B942289D21D007E439B /* ScrollableStackView.app */,
54 | );
55 | name = Products;
56 | sourceTree = "";
57 | };
58 | DC9C9B962289D21D007E439B /* ScrollableStackView */ = {
59 | isa = PBXGroup;
60 | children = (
61 | DC9C9B972289D21D007E439B /* AppDelegate.swift */,
62 | DC9C9B992289D21D007E439B /* ViewController.swift */,
63 | DC9C9BAB22908913007E439B /* UIView+RoundCorners.swift */,
64 | DC9C9BA92289D23D007E439B /* ScrollableStackView.swift */,
65 | DC9C9B9B2289D21D007E439B /* Main.storyboard */,
66 | DC9C9B9E2289D21F007E439B /* Assets.xcassets */,
67 | DC9C9BA02289D21F007E439B /* LaunchScreen.storyboard */,
68 | DC9C9BA32289D21F007E439B /* Info.plist */,
69 | );
70 | path = ScrollableStackView;
71 | sourceTree = "";
72 | };
73 | /* End PBXGroup section */
74 |
75 | /* Begin PBXNativeTarget section */
76 | DC9C9B932289D21D007E439B /* ScrollableStackView */ = {
77 | isa = PBXNativeTarget;
78 | buildConfigurationList = DC9C9BA62289D21F007E439B /* Build configuration list for PBXNativeTarget "ScrollableStackView" */;
79 | buildPhases = (
80 | DC9C9B902289D21D007E439B /* Sources */,
81 | DC9C9B912289D21D007E439B /* Frameworks */,
82 | DC9C9B922289D21D007E439B /* Resources */,
83 | );
84 | buildRules = (
85 | );
86 | dependencies = (
87 | );
88 | name = ScrollableStackView;
89 | productName = ScrollableStackView;
90 | productReference = DC9C9B942289D21D007E439B /* ScrollableStackView.app */;
91 | productType = "com.apple.product-type.application";
92 | };
93 | /* End PBXNativeTarget section */
94 |
95 | /* Begin PBXProject section */
96 | DC9C9B8C2289D21D007E439B /* Project object */ = {
97 | isa = PBXProject;
98 | attributes = {
99 | LastSwiftUpdateCheck = 1020;
100 | LastUpgradeCheck = 1020;
101 | ORGANIZATIONNAME = "Joan Disho";
102 | TargetAttributes = {
103 | DC9C9B932289D21D007E439B = {
104 | CreatedOnToolsVersion = 10.2.1;
105 | };
106 | };
107 | };
108 | buildConfigurationList = DC9C9B8F2289D21D007E439B /* Build configuration list for PBXProject "ScrollableStackView" */;
109 | compatibilityVersion = "Xcode 9.3";
110 | developmentRegion = en;
111 | hasScannedForEncodings = 0;
112 | knownRegions = (
113 | en,
114 | Base,
115 | );
116 | mainGroup = DC9C9B8B2289D21D007E439B;
117 | productRefGroup = DC9C9B952289D21D007E439B /* Products */;
118 | projectDirPath = "";
119 | projectRoot = "";
120 | targets = (
121 | DC9C9B932289D21D007E439B /* ScrollableStackView */,
122 | );
123 | };
124 | /* End PBXProject section */
125 |
126 | /* Begin PBXResourcesBuildPhase section */
127 | DC9C9B922289D21D007E439B /* Resources */ = {
128 | isa = PBXResourcesBuildPhase;
129 | buildActionMask = 2147483647;
130 | files = (
131 | DC9C9BA22289D21F007E439B /* LaunchScreen.storyboard in Resources */,
132 | DC9C9B9F2289D21F007E439B /* Assets.xcassets in Resources */,
133 | DC9C9B9D2289D21D007E439B /* Main.storyboard in Resources */,
134 | );
135 | runOnlyForDeploymentPostprocessing = 0;
136 | };
137 | /* End PBXResourcesBuildPhase section */
138 |
139 | /* Begin PBXSourcesBuildPhase section */
140 | DC9C9B902289D21D007E439B /* Sources */ = {
141 | isa = PBXSourcesBuildPhase;
142 | buildActionMask = 2147483647;
143 | files = (
144 | DC9C9BAC22908913007E439B /* UIView+RoundCorners.swift in Sources */,
145 | DC9C9BAA2289D23D007E439B /* ScrollableStackView.swift in Sources */,
146 | DC9C9B9A2289D21D007E439B /* ViewController.swift in Sources */,
147 | DC9C9B982289D21D007E439B /* AppDelegate.swift in Sources */,
148 | );
149 | runOnlyForDeploymentPostprocessing = 0;
150 | };
151 | /* End PBXSourcesBuildPhase section */
152 |
153 | /* Begin PBXVariantGroup section */
154 | DC9C9B9B2289D21D007E439B /* Main.storyboard */ = {
155 | isa = PBXVariantGroup;
156 | children = (
157 | DC9C9B9C2289D21D007E439B /* Base */,
158 | );
159 | name = Main.storyboard;
160 | sourceTree = "";
161 | };
162 | DC9C9BA02289D21F007E439B /* LaunchScreen.storyboard */ = {
163 | isa = PBXVariantGroup;
164 | children = (
165 | DC9C9BA12289D21F007E439B /* Base */,
166 | );
167 | name = LaunchScreen.storyboard;
168 | sourceTree = "";
169 | };
170 | /* End PBXVariantGroup section */
171 |
172 | /* Begin XCBuildConfiguration section */
173 | DC9C9BA42289D21F007E439B /* Debug */ = {
174 | isa = XCBuildConfiguration;
175 | buildSettings = {
176 | ALWAYS_SEARCH_USER_PATHS = NO;
177 | CLANG_ANALYZER_NONNULL = YES;
178 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
179 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
180 | CLANG_CXX_LIBRARY = "libc++";
181 | CLANG_ENABLE_MODULES = YES;
182 | CLANG_ENABLE_OBJC_ARC = YES;
183 | CLANG_ENABLE_OBJC_WEAK = YES;
184 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
185 | CLANG_WARN_BOOL_CONVERSION = YES;
186 | CLANG_WARN_COMMA = YES;
187 | CLANG_WARN_CONSTANT_CONVERSION = YES;
188 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
189 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
190 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
191 | CLANG_WARN_EMPTY_BODY = YES;
192 | CLANG_WARN_ENUM_CONVERSION = YES;
193 | CLANG_WARN_INFINITE_RECURSION = YES;
194 | CLANG_WARN_INT_CONVERSION = YES;
195 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
196 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
197 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
198 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
199 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
200 | CLANG_WARN_STRICT_PROTOTYPES = YES;
201 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
202 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
203 | CLANG_WARN_UNREACHABLE_CODE = YES;
204 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
205 | CODE_SIGN_IDENTITY = "iPhone Developer";
206 | COPY_PHASE_STRIP = NO;
207 | DEBUG_INFORMATION_FORMAT = dwarf;
208 | ENABLE_STRICT_OBJC_MSGSEND = YES;
209 | ENABLE_TESTABILITY = YES;
210 | GCC_C_LANGUAGE_STANDARD = gnu11;
211 | GCC_DYNAMIC_NO_PIC = NO;
212 | GCC_NO_COMMON_BLOCKS = YES;
213 | GCC_OPTIMIZATION_LEVEL = 0;
214 | GCC_PREPROCESSOR_DEFINITIONS = (
215 | "DEBUG=1",
216 | "$(inherited)",
217 | );
218 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
219 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
220 | GCC_WARN_UNDECLARED_SELECTOR = YES;
221 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
222 | GCC_WARN_UNUSED_FUNCTION = YES;
223 | GCC_WARN_UNUSED_VARIABLE = YES;
224 | IPHONEOS_DEPLOYMENT_TARGET = 12.2;
225 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
226 | MTL_FAST_MATH = YES;
227 | ONLY_ACTIVE_ARCH = YES;
228 | SDKROOT = iphoneos;
229 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
230 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
231 | };
232 | name = Debug;
233 | };
234 | DC9C9BA52289D21F007E439B /* Release */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
240 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
241 | CLANG_CXX_LIBRARY = "libc++";
242 | CLANG_ENABLE_MODULES = YES;
243 | CLANG_ENABLE_OBJC_ARC = YES;
244 | CLANG_ENABLE_OBJC_WEAK = YES;
245 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
246 | CLANG_WARN_BOOL_CONVERSION = YES;
247 | CLANG_WARN_COMMA = YES;
248 | CLANG_WARN_CONSTANT_CONVERSION = YES;
249 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
250 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
251 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
252 | CLANG_WARN_EMPTY_BODY = YES;
253 | CLANG_WARN_ENUM_CONVERSION = YES;
254 | CLANG_WARN_INFINITE_RECURSION = YES;
255 | CLANG_WARN_INT_CONVERSION = YES;
256 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
257 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
258 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
259 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
260 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
261 | CLANG_WARN_STRICT_PROTOTYPES = YES;
262 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
263 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
264 | CLANG_WARN_UNREACHABLE_CODE = YES;
265 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
266 | CODE_SIGN_IDENTITY = "iPhone Developer";
267 | COPY_PHASE_STRIP = NO;
268 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
269 | ENABLE_NS_ASSERTIONS = NO;
270 | ENABLE_STRICT_OBJC_MSGSEND = YES;
271 | GCC_C_LANGUAGE_STANDARD = gnu11;
272 | GCC_NO_COMMON_BLOCKS = YES;
273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
275 | GCC_WARN_UNDECLARED_SELECTOR = YES;
276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
277 | GCC_WARN_UNUSED_FUNCTION = YES;
278 | GCC_WARN_UNUSED_VARIABLE = YES;
279 | IPHONEOS_DEPLOYMENT_TARGET = 12.2;
280 | MTL_ENABLE_DEBUG_INFO = NO;
281 | MTL_FAST_MATH = YES;
282 | SDKROOT = iphoneos;
283 | SWIFT_COMPILATION_MODE = wholemodule;
284 | SWIFT_OPTIMIZATION_LEVEL = "-O";
285 | VALIDATE_PRODUCT = YES;
286 | };
287 | name = Release;
288 | };
289 | DC9C9BA72289D21F007E439B /* Debug */ = {
290 | isa = XCBuildConfiguration;
291 | buildSettings = {
292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
293 | CODE_SIGN_STYLE = Automatic;
294 | DEVELOPMENT_TEAM = K3WATBUBCW;
295 | INFOPLIST_FILE = ScrollableStackView/Info.plist;
296 | LD_RUNPATH_SEARCH_PATHS = (
297 | "$(inherited)",
298 | "@executable_path/Frameworks",
299 | );
300 | PRODUCT_BUNDLE_IDENTIFIER = disho.ScrollableStackView;
301 | PRODUCT_NAME = "$(TARGET_NAME)";
302 | SWIFT_VERSION = 5.0;
303 | TARGETED_DEVICE_FAMILY = "1,2";
304 | };
305 | name = Debug;
306 | };
307 | DC9C9BA82289D21F007E439B /* Release */ = {
308 | isa = XCBuildConfiguration;
309 | buildSettings = {
310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 | CODE_SIGN_STYLE = Automatic;
312 | DEVELOPMENT_TEAM = K3WATBUBCW;
313 | INFOPLIST_FILE = ScrollableStackView/Info.plist;
314 | LD_RUNPATH_SEARCH_PATHS = (
315 | "$(inherited)",
316 | "@executable_path/Frameworks",
317 | );
318 | PRODUCT_BUNDLE_IDENTIFIER = disho.ScrollableStackView;
319 | PRODUCT_NAME = "$(TARGET_NAME)";
320 | SWIFT_VERSION = 5.0;
321 | TARGETED_DEVICE_FAMILY = "1,2";
322 | };
323 | name = Release;
324 | };
325 | /* End XCBuildConfiguration section */
326 |
327 | /* Begin XCConfigurationList section */
328 | DC9C9B8F2289D21D007E439B /* Build configuration list for PBXProject "ScrollableStackView" */ = {
329 | isa = XCConfigurationList;
330 | buildConfigurations = (
331 | DC9C9BA42289D21F007E439B /* Debug */,
332 | DC9C9BA52289D21F007E439B /* Release */,
333 | );
334 | defaultConfigurationIsVisible = 0;
335 | defaultConfigurationName = Release;
336 | };
337 | DC9C9BA62289D21F007E439B /* Build configuration list for PBXNativeTarget "ScrollableStackView" */ = {
338 | isa = XCConfigurationList;
339 | buildConfigurations = (
340 | DC9C9BA72289D21F007E439B /* Debug */,
341 | DC9C9BA82289D21F007E439B /* Release */,
342 | );
343 | defaultConfigurationIsVisible = 0;
344 | defaultConfigurationName = Release;
345 | };
346 | /* End XCConfigurationList section */
347 | };
348 | rootObject = DC9C9B8C2289D21D007E439B /* Project object */;
349 | }
350 |
--------------------------------------------------------------------------------