Merge with orientation branch
This commit is contained in:
commit
5e4c51c2f9
|
|
@ -102,6 +102,12 @@
|
|||
### 0.9.31
|
||||
- **Add**: `@discardableResult` to function - `replace(with:at:with:manualBeginEndUpdates)` in `TableDirector`.
|
||||
|
||||
### 0.9.30.2
|
||||
- **Fix**: version for Soglasie. open protection level
|
||||
|
||||
### 0.9.30.1
|
||||
- **Fix**: version for Soglasie
|
||||
|
||||
### 0.9.30
|
||||
- **Add**: character `*` into a valid set of characters in the extension `telpromptURL` of String.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = "LeadKit"
|
||||
s.version = "0.10.9"
|
||||
s.version = "0.9.45"
|
||||
s.summary = "iOS framework with a bunch of tools for rapid development"
|
||||
s.homepage = "https://github.com/TouchInstinct/LeadKit"
|
||||
s.license = "Apache License, Version 2.0"
|
||||
|
|
@ -42,6 +42,7 @@ Pod::Spec.new do |s|
|
|||
"Sources/Classes/Search/*",
|
||||
"Sources/Enums/Search/*",
|
||||
"Sources/Extensions/CABasicAnimation/*",
|
||||
"Sources/Extensions/UIInterfaceOrientation/UIInterfaceOrientation+ VideoOrientation.swift",
|
||||
"Sources/Extensions/CGFloat/CGFloat+Pixels.swift",
|
||||
"Sources/Extensions/NetworkService/NetworkService+RxLoadImage.swift",
|
||||
"Sources/Extensions/DataLoading/GeneralDataLoading/GeneralDataLoadingController+DefaultImplementation.swift",
|
||||
|
|
@ -82,6 +83,16 @@ Pod::Spec.new do |s|
|
|||
"Sources/Classes/Controllers/BaseTableContentController.swift",
|
||||
"Sources/Classes/Views/BaseRxTableViewCell/*",
|
||||
"Sources/Classes/Views/ContainerTableCell/*",
|
||||
"Sources/Classes/Views/TableViewWrapperView/TableViewWrapperView.swift",
|
||||
"Sources/Classes/Controllers/BaseCollectionContentController.swift",
|
||||
"Sources/Classes/Views/CollectionViewWrapperView/CollectionViewWrapperView.swift",
|
||||
"Sources/Classes/Controllers/BaseCustomViewController.swift",
|
||||
"Sources/Classes/Controllers/BaseConfigurableController.swift",
|
||||
"Sources/Classes/Controllers/BaseScrollContentController.swift",
|
||||
"Sources/Classes/Controllers/BaseOrientationController.swift",
|
||||
"Sources/Classes/Controllers/BaseOrientationNavigationController.swift",
|
||||
"Sources/Extensions/UIKit/UIDevice/UIDevice+ScreenOrientation.swift",
|
||||
"Sources/Extensions/UIInterfaceOrientation/UIInterfaceOrientation+ VideoOrientation.swift",
|
||||
"Sources/Classes/Views/SeparatorRowBox/*",
|
||||
"Sources/Classes/Views/SeparatorCell/*",
|
||||
"Sources/Classes/Views/EmptyCell/*",
|
||||
|
|
|
|||
|
|
@ -6,8 +6,9 @@ public extension UIDevice {
|
|||
///
|
||||
/// - Parameters:
|
||||
/// - orientation: ориентация в терминах ScreenOrientation
|
||||
func rotateManually(to orientation: UIInterfaceOrientation) {
|
||||
UIDevice.current.setValue(orientation, forKey: "orientation")
|
||||
func rotateOrientationManually(to orientation: UIInterfaceOrientation) {
|
||||
let orientationValue = Int(orientation.rawValue)
|
||||
UIDevice.current.setValue(orientationValue, forKey: "orientation")
|
||||
UIViewController.attemptRotationToDeviceOrientation()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue