Skip to content

Commit 02e5819

Browse files
author
Olga Konoreva
committed
Merge remote-tracking branch 'origin/develop'
2 parents ac47329 + b10e31d commit 02e5819

16 files changed

+476
-430
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Change Log
22
All notable changes of the library will be documented in this file.
33

4+
## 2.1 - [2017-10-23]
5+
### Added
6+
- Swift 4 support
7+
- Code refactoring
8+
- Check if menu is opened before a transition
9+
10+
### Fixed
11+
- Small UI fix of Sample, associated with iOS 11
12+
413
## 2.0 - [2017-06-07]
514
### Added
615
- UITabBarController and UINavigationController menu items support
@@ -59,5 +68,6 @@ override func viewWillTransition(to size: CGSize, with coordinator: UIViewContro
5968
- Sample demonstrating using SideMenu library
6069
- README file
6170

71+
[2017-10-23]: https://github.com/handsomecode/InteractiveSideMenu/compare/2.0...2.1
6272
[2017-06-07]: https://github.com/handsomecode/InteractiveSideMenu/compare/1.0...2.0
6373
[Issue #17]: https://github.com/handsomecode/InteractiveSideMenu/issues/17

InteractiveSideMenu.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
84E2E6751F15401000E5FF37 /* Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84E2E6741F15401000E5FF37 /* Options.swift */; };
11+
84E2E6771F15406600E5FF37 /* MenuTransitioningDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84E2E6761F15406600E5FF37 /* MenuTransitioningDelegate.swift */; };
1012
881EF0921E3101130035DEB4 /* InteractiveSideMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 881EF0901E3101130035DEB4 /* InteractiveSideMenu.h */; settings = {ATTRIBUTES = (Public, ); }; };
1113
881EF0971E3101B80035DEB4 /* MenuAnimator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 881EF0931E3101B80035DEB4 /* MenuAnimator.swift */; };
1214
881EF0981E3101B80035DEB4 /* MenuContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 881EF0941E3101B80035DEB4 /* MenuContainerViewController.swift */; };
@@ -15,6 +17,8 @@
1517
/* End PBXBuildFile section */
1618

1719
/* Begin PBXFileReference section */
20+
84E2E6741F15401000E5FF37 /* Options.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Options.swift; sourceTree = "<group>"; };
21+
84E2E6761F15406600E5FF37 /* MenuTransitioningDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuTransitioningDelegate.swift; sourceTree = "<group>"; };
1822
881EF0831E30FFE40035DEB4 /* InteractiveSideMenu.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = InteractiveSideMenu.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1923
881EF08F1E3101130035DEB4 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2024
881EF0901E3101130035DEB4 /* InteractiveSideMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InteractiveSideMenu.h; sourceTree = "<group>"; };
@@ -54,6 +58,8 @@
5458
881EF08E1E3101130035DEB4 /* Sources */ = {
5559
isa = PBXGroup;
5660
children = (
61+
84E2E6741F15401000E5FF37 /* Options.swift */,
62+
84E2E6761F15406600E5FF37 /* MenuTransitioningDelegate.swift */,
5763
881EF0931E3101B80035DEB4 /* MenuAnimator.swift */,
5864
881EF0941E3101B80035DEB4 /* MenuContainerViewController.swift */,
5965
881EF0951E3101B80035DEB4 /* MenuItemContentViewController.swift */,
@@ -145,8 +151,10 @@
145151
buildActionMask = 2147483647;
146152
files = (
147153
881EF0971E3101B80035DEB4 /* MenuAnimator.swift in Sources */,
154+
84E2E6771F15406600E5FF37 /* MenuTransitioningDelegate.swift in Sources */,
148155
881EF0981E3101B80035DEB4 /* MenuContainerViewController.swift in Sources */,
149156
881EF0991E3101B80035DEB4 /* MenuItemContentViewController.swift in Sources */,
157+
84E2E6751F15401000E5FF37 /* Options.swift in Sources */,
150158
881EF09A1E3101B80035DEB4 /* MenuViewController.swift in Sources */,
151159
);
152160
runOnlyForDeploymentPostprocessing = 0;

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ override func viewWillTransition(to size: CGSize, with coordinator: UIViewContro
143143
Transition options could be used to set different parameters for Compact and Regular sizes as well. Implement ViewController's ```traitCollectionDidChange(_: )``` method to add these settings.
144144

145145
Use [Sample](./Sample) to see implementation details and [CHANGELOG](./CHANGELOG.md) to get more information about updating library from v1.0 to v2.0.
146+
147+
# Known Issues
148+
There is [an issue](https://github.com/handsomecode/InteractiveSideMenu/issues/53) associated with scaling of NavigationBar in iOS 11. Status bar background is hidden during side menu closing if `contentScale < 1`. It’s supposed to be *iOS 11* Navigation Bar issue that's been reported to Apple.
149+
146150

147151
# Requirements
148152
- iOS 8.0+

Sample/Sample/AppDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5353

5454

5555
}
56-

Sample/Sample/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@
143143
"idiom" : "ipad",
144144
"filename" : "[email protected]",
145145
"scale" : "2x"
146+
},
147+
{
148+
"idiom" : "ios-marketing",
149+
"size" : "1024x1024",
150+
"scale" : "1x"
146151
}
147152
],
148153
"info" : {

Sample/Sample/Base.lproj/Main.storyboard

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12120" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="0Vz-9K-i9E">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13528" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="0Vz-9K-i9E">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13526"/>
99
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
1010
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1111
</dependencies>
@@ -131,9 +131,12 @@
131131
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="playful cat" translatesAutoresizingMaskIntoConstraints="NO" id="Bnb-ow-Hxx">
132132
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
133133
</imageView>
134-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g4R-sn-aDK">
135-
<rect key="frame" x="0.0" y="0.0" width="375" height="72.5"/>
134+
<view opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g4R-sn-aDK">
135+
<rect key="frame" x="0.0" y="0.0" width="375" height="67"/>
136136
<color key="backgroundColor" red="0.27659601897689767" green="0.27531419289247383" blue="0.27266927657285167" alpha="0.3859592013888889" colorSpace="custom" customColorSpace="sRGB"/>
137+
<accessibility key="accessibilityConfiguration">
138+
<accessibilityTraits key="traits" notEnabled="YES"/>
139+
</accessibility>
137140
</view>
138141
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ERA-XQ-g0N">
139142
<rect key="frame" x="6" y="20" width="44" height="44"/>
@@ -149,11 +152,11 @@
149152
</subviews>
150153
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
151154
<constraints>
155+
<constraint firstItem="g4R-sn-aDK" firstAttribute="bottom" secondItem="ERA-XQ-g0N" secondAttribute="bottom" constant="3" id="EaF-G6-evU"/>
152156
<constraint firstItem="Bnb-ow-Hxx" firstAttribute="top" secondItem="mKv-5e-xGD" secondAttribute="top" id="Tby-NP-ybX"/>
153157
<constraint firstItem="ERA-XQ-g0N" firstAttribute="leading" secondItem="mKv-5e-xGD" secondAttribute="leading" constant="6" id="ZVL-kv-kNf"/>
154158
<constraint firstAttribute="trailing" secondItem="g4R-sn-aDK" secondAttribute="trailing" id="cD2-hF-Hlh"/>
155159
<constraint firstAttribute="trailing" secondItem="Bnb-ow-Hxx" secondAttribute="trailing" id="dmN-Fb-ZHD"/>
156-
<constraint firstItem="g4R-sn-aDK" firstAttribute="baseline" secondItem="ERA-XQ-g0N" secondAttribute="baseline" constant="22" id="epz-Po-KkV"/>
157160
<constraint firstItem="g4R-sn-aDK" firstAttribute="top" secondItem="mKv-5e-xGD" secondAttribute="top" id="l6N-OA-JNm"/>
158161
<constraint firstAttribute="bottom" secondItem="Bnb-ow-Hxx" secondAttribute="bottom" id="loX-cs-71k"/>
159162
<constraint firstItem="Bnb-ow-Hxx" firstAttribute="leading" secondItem="mKv-5e-xGD" secondAttribute="leading" id="sEV-X9-tvK"/>
@@ -179,12 +182,15 @@
179182
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
180183
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
181184
<subviews>
182-
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="serious cat" translatesAutoresizingMaskIntoConstraints="NO" id="YaS-Hu-v7i">
185+
<imageView opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="serious cat" translatesAutoresizingMaskIntoConstraints="NO" id="YaS-Hu-v7i">
183186
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
184187
</imageView>
185-
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="toC-UG-sI2">
186-
<rect key="frame" x="0.0" y="0.0" width="375" height="72.5"/>
188+
<view contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" translatesAutoresizingMaskIntoConstraints="NO" id="toC-UG-sI2">
189+
<rect key="frame" x="0.0" y="0.0" width="375" height="67"/>
187190
<color key="backgroundColor" red="0.27659601897689767" green="0.27531419289247383" blue="0.27266927657285167" alpha="0.55054873511904767" colorSpace="custom" customColorSpace="sRGB"/>
191+
<accessibility key="accessibilityConfiguration">
192+
<accessibilityTraits key="traits" notEnabled="YES"/>
193+
</accessibility>
188194
</view>
189195
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="I55-bD-oRY">
190196
<rect key="frame" x="6" y="20" width="44" height="44"/>
@@ -200,10 +206,10 @@
200206
</subviews>
201207
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
202208
<constraints>
209+
<constraint firstItem="toC-UG-sI2" firstAttribute="bottom" secondItem="I55-bD-oRY" secondAttribute="bottom" constant="3" id="5nJ-1g-1eb"/>
203210
<constraint firstItem="YaS-Hu-v7i" firstAttribute="top" secondItem="j8y-r6-qLd" secondAttribute="top" id="7oR-ES-nep"/>
204211
<constraint firstItem="YaS-Hu-v7i" firstAttribute="leading" secondItem="j8y-r6-qLd" secondAttribute="leading" id="CXm-j9-YtU"/>
205212
<constraint firstAttribute="trailing" secondItem="YaS-Hu-v7i" secondAttribute="trailing" id="EvG-Dg-g4R"/>
206-
<constraint firstItem="toC-UG-sI2" firstAttribute="baseline" secondItem="I55-bD-oRY" secondAttribute="baseline" constant="22" id="OLo-zq-t04"/>
207213
<constraint firstItem="I55-bD-oRY" firstAttribute="leading" secondItem="j8y-r6-qLd" secondAttribute="leading" constant="6" id="haG-Lj-wf2"/>
208214
<constraint firstItem="toC-UG-sI2" firstAttribute="leading" secondItem="j8y-r6-qLd" secondAttribute="leading" id="lvG-AB-XcK"/>
209215
<constraint firstItem="toC-UG-sI2" firstAttribute="top" secondItem="j8y-r6-qLd" secondAttribute="top" id="po0-1I-K7D"/>
@@ -239,8 +245,8 @@
239245
</scenes>
240246
<resources>
241247
<image name="Menu" width="24" height="17"/>
242-
<image name="ic_tabbar_playful" width="16" height="16"/>
243-
<image name="ic_tabbar_serious" width="16" height="16"/>
248+
<image name="ic_tabbar_playful" width="20" height="20"/>
249+
<image name="ic_tabbar_serious" width="20" height="20"/>
244250
<image name="kitty" width="1620" height="1080"/>
245251
<image name="playful cat" width="500" height="375"/>
246252
<image name="serious cat" width="1020" height="452"/>

Sample/Sample/HostViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import InteractiveSideMenu
2626
Has opportunity to show/hide side menu.
2727
*/
2828
class HostViewController: MenuContainerViewController {
29-
29+
3030
override var preferredStatusBarStyle: UIStatusBarStyle {
3131
return .lightContent
3232
}

Sample/Sample/NavigationMenuViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class NavigationMenuViewController: MenuViewController {
3232
override var prefersStatusBarHidden: Bool {
3333
return false
3434
}
35-
35+
3636
override func viewDidLoad() {
3737
super.viewDidLoad()
3838

Sample/Sample/TabBarViewController.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,3 @@ class SecondViewController: UIViewController {
5858
}
5959

6060
}
61-
62-
63-

Sources/InteractiveSideMenu.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,3 @@ FOUNDATION_EXPORT double InteractiveSideMenuVersionNumber;
2525
FOUNDATION_EXPORT const unsigned char InteractiveSideMenuVersionString[];
2626

2727
// In this header, you should import all the public headers of your framework using statements like #import <InteractiveSideMenu/PublicHeader.h>
28-
29-

0 commit comments

Comments
 (0)