Commit 7e546467 by Daniel Dahan

preparing for 3.1.8 release

parent 06da62b5
## 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 ## 3.1.7
* Fixed Grid issues, where the layout calculations were being deferred and causing inconsistencies in layouts. * Fixed Grid issues, where the layout calculations were being deferred and causing inconsistencies in layouts.
......
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'Material' s.name = 'Material'
s.version = '3.1.7' s.version = '3.1.8'
s.swift_version = '5.0' s.swift_version = '5.0'
s.license = 'BSD-3-Clause' s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.' s.summary = 'A UI/UX framework for creating beautiful applications.'
......
...@@ -1240,6 +1240,7 @@ ...@@ -1240,6 +1240,7 @@
INFOPLIST_FILE = Sources/Info.plist; INFOPLIST_FILE = Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @rpath/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_BUNDLE_IDENTIFIER = com.cosmicmind.Material;
PRODUCT_NAME = Material; PRODUCT_NAME = Material;
PROVISIONING_PROFILE = ""; PROVISIONING_PROFILE = "";
...@@ -1265,6 +1266,7 @@ ...@@ -1265,6 +1266,7 @@
INFOPLIST_FILE = Sources/Info.plist; INFOPLIST_FILE = Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @rpath/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_BUNDLE_IDENTIFIER = com.cosmicmind.Material;
PRODUCT_NAME = Material; PRODUCT_NAME = Material;
PROVISIONING_PROFILE = ""; PROVISIONING_PROFILE = "";
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>3.1.7</string> <string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -125,15 +125,13 @@ open class NavigationBar: UINavigationBar, Themeable { ...@@ -125,15 +125,13 @@ open class NavigationBar: UINavigationBar, Themeable {
layoutShadowPath() layoutShadowPath()
//iOS 11 added left/right layout margin in subviews of UINavigationBar //iOS 11 added left/right layout margin in subviews of UINavigationBar
//since we do not want to unsafely access private view directly //since we do not want to unsafely access private views directly, we
//iterate subviews to set `layoutMargin` to zero //iterate through the subviews to set `layoutMargins` to zero
for v in subviews { for v in subviews {
if #available(iOS 13.0, *) { if #available(iOS 13.0, *) {
let margins = v.layoutMargins let margins = v.layoutMargins
var frame = v.frame v.frame.origin.x = -margins.left
frame.origin.x = -margins.left v.frame.size.width += margins.left + margins.right
frame.size.width += (margins.left + margins.right)
v.frame = frame
} else { } else {
v.layoutMargins = .zero v.layoutMargins = .zero
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment