Skip to content

Commit

Permalink
fixed control added to ScrollStackView not able to interacted
Browse files Browse the repository at this point in the history
  • Loading branch information
kennic committed Sep 28, 2023
1 parent 3a9b5da commit e418857
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Binary file not shown.
2 changes: 0 additions & 2 deletions FrameLayoutKit/Classes/ScrollStackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ open class ScrollStackView: UIView {
@discardableResult
open func add(_ view: UIView?) -> FrameLayout {
let layout = frameLayout.add(view)
layout.isUserInteractionEnabled = true
if let view { scrollView.addSubview(view) }
setNeedsLayout()
return layout
Expand All @@ -502,7 +501,6 @@ open class ScrollStackView: UIView {
@discardableResult
open func insert(_ view: UIView?, at index: Int) -> FrameLayout {
let layout = frameLayout.insert(view, at: index)
layout.isUserInteractionEnabled = true
if let view { scrollView.insertSubview(view, at: index) }
setNeedsLayout()
return layout
Expand Down

0 comments on commit e418857

Please sign in to comment.