Skip to content

Commit a58063e

Browse files
committed
Releases 0.5.0
1 parent 78b0bcd commit a58063e

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

Example/LXFProtocolTool/Demo/LXFFullScreenable/LXFFullScreenableController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ class LXFFullScreenableController: UIViewController, FullScreenable {
5858
// MARK:- Events
5959
extension LXFFullScreenableController {
6060
@objc func redViewClick() {
61-
lxf.switchFullScreen()
61+
// lxf.switchFullScreen()
6262
// lxf.enterFullScreen(specifiedView: cyanView)
63-
// cyanView.lxf.enterFullScreen()
63+
cyanView.lxf.enterFullScreen()
6464

6565
// cyanView.lxf.enterFullScreen(config: diyConfig)
6666

6767
}
6868
@objc func cyanViewClick() {
6969
// lxf.exitFullScreen(superView: self.view)
70-
// cyanView.lxf.exitFullScreen()
70+
cyanView.lxf.exitFullScreen()
7171

7272
// cyanView.lxf.exitFullScreen(config: diyConfig)
7373
}

LXFProtocolTool.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'LXFProtocolTool'
11-
s.version = '0.4.1'
11+
s.version = '0.5.0'
1212
s.summary = 'LXFProtocolTool是实用的协议应用工具库'
1313

1414
# This description is used to generate tags and improve search results.

LXFProtocolTool/Classes/FullScreenable/FullScreenable.swift

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,6 @@ public extension LXFNameSpace where Base : UIView, Base : FullScreenable {
307307
)
308308
curVc?.lxf_disableAutoFullScreen = false
309309
}
310-
311-
// func observeOrientationChange() {
312-
// guard let orientationChangeBlock = base.viewController()?.lxf_orientationChangeBlock else {
313-
// <#statements#>
314-
// }
315-
// }
316310
}
317311

318312
// MARK:- UIApplication
@@ -331,11 +325,8 @@ extension LXFNameSpace where Base : UIApplication {
331325

332326
/// 设置当前全屏配置
333327
fileprivate func setCurrentFullScreenConfig(isEnter: Bool, config: FullScreenableConfig?) {
334-
if config != nil {
335-
base.lxf.currentFullScreenConfig = config!
336-
} else {
337-
base.lxf.currentFullScreenConfig.supportInterfaceOrientation = isEnter ? .landscape : .portrait
338-
}
328+
if config != nil { base.lxf.currentFullScreenConfig = config! }
329+
else { base.lxf.currentFullScreenConfig.supportInterfaceOrientation = isEnter ? .landscape : .portrait }
339330
}
340331
}
341332

@@ -401,6 +392,7 @@ fileprivate func LXFSwizzleMethod(originalCls: AnyClass?, originalSelector: Sele
401392
}
402393
}
403394

395+
// MARK:- UIView
404396
extension UIView {
405397
fileprivate func viewController()->UIViewController? {
406398
var nextResponder: UIResponder? = self

0 commit comments

Comments
 (0)