mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix regression where navigating back and paging back from an article happened at the same time.
This commit is contained in:
22
iOS/UIKit Extensions/UIPageViewController-Extensions.swift
Normal file
22
iOS/UIKit Extensions/UIPageViewController-Extensions.swift
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// UIPageViewController-Extensions.swift
|
||||
// NetNewsWire-iOS
|
||||
//
|
||||
// Created by Maurice Parker on 4/12/20.
|
||||
// Copyright © 2020 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
extension UIPageViewController {
|
||||
|
||||
var scrollViewInsidePageControl: UIScrollView? {
|
||||
for view in view.subviews {
|
||||
if let scrollView = view as? UIScrollView {
|
||||
return scrollView
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user