Skip to content

Commit

Permalink
preparing for 3.1.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dahan committed Sep 23, 2019
1 parent 06da62b commit 7e54646
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 3.1.8

- [pr-1269](https://github.com/CosmicMind/Material/pull/1269): Fixed Xcode 11 crash, where layoutMargins are not available before iOS 13.
- [pr-1270](https://github.com/CosmicMind/Material/pull/1270): Fixed missing argument in Swift Package Manager.


## 3.1.7

* Fixed Grid issues, where the layout calculations were being deferred and causing inconsistencies in layouts.
Expand Down
2 changes: 1 addition & 1 deletion Material.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '3.1.7'
s.version = '3.1.8'
s.swift_version = '5.0'
s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.'
Expand Down
2 changes: 2 additions & 0 deletions Material.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@
INFOPLIST_FILE = Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @rpath/Frameworks";
MARKETING_VERSION = 3.1.8;
PRODUCT_BUNDLE_IDENTIFIER = com.cosmicmind.Material;
PRODUCT_NAME = Material;
PROVISIONING_PROFILE = "";
Expand All @@ -1265,6 +1266,7 @@
INFOPLIST_FILE = Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @rpath/Frameworks";
MARKETING_VERSION = 3.1.8;
PRODUCT_BUNDLE_IDENTIFIER = com.cosmicmind.Material;
PRODUCT_NAME = Material;
PROVISIONING_PROFILE = "";
Expand Down
2 changes: 1 addition & 1 deletion Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.1.7</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
10 changes: 4 additions & 6 deletions Sources/iOS/Navigation/NavigationBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,13 @@ open class NavigationBar: UINavigationBar, Themeable {
layoutShadowPath()

//iOS 11 added left/right layout margin in subviews of UINavigationBar
//since we do not want to unsafely access private view directly
//iterate subviews to set `layoutMargin` to zero
//since we do not want to unsafely access private views directly, we
//iterate through the subviews to set `layoutMargins` to zero
for v in subviews {
if #available(iOS 13.0, *) {
let margins = v.layoutMargins
var frame = v.frame
frame.origin.x = -margins.left
frame.size.width += (margins.left + margins.right)
v.frame = frame
v.frame.origin.x = -margins.left
v.frame.size.width += margins.left + margins.right
} else {
v.layoutMargins = .zero
}
Expand Down

0 comments on commit 7e54646

Please sign in to comment.