From 0fbcea82c73671d8fdfffa1cd6030d90f891b3f8 Mon Sep 17 00:00:00 2001 From: Jay Lyerly Date: Wed, 12 Oct 2016 12:56:54 -0400 Subject: [PATCH 1/2] Add shouldAutorotate to the Config class. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a viewcontroller is created to host the message view, this property controls whether that viewcontroller with auto rotate when the device orientation changes. Also update the demo’s “Explor” screen to include this option. --- Demo/Demo/Base.lproj/Main.storyboard | 62 ++++++++++++++++------ Demo/Demo/ExploreViewController.swift | 10 ++++ SwiftMessages/Presenter.swift | 6 +-- SwiftMessages/SwiftMessages.swift | 8 +++ SwiftMessages/UIViewController+Utils.swift | 18 ++++--- SwiftMessages/WindowViewController.swift | 8 ++- 6 files changed, 84 insertions(+), 28 deletions(-) diff --git a/Demo/Demo/Base.lproj/Main.storyboard b/Demo/Demo/Base.lproj/Main.storyboard index 727642ce..a257ea37 100644 --- a/Demo/Demo/Base.lproj/Main.storyboard +++ b/Demo/Demo/Base.lproj/Main.storyboard @@ -1,5 +1,5 @@ - - + + @@ -37,7 +37,7 @@ - +