diff --git a/Presentr.podspec b/Presentr.podspec index 804286f..079b19f 100644 --- a/Presentr.podspec +++ b/Presentr.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Presentr" - s.version = "1.0.3" + s.version = "1.0.4" s.summary = "A simple Swift wrapper for typical custom view controller presentations." s.description = <<-DESC A micro framework created in Swift. Simplifies creating custom view controller presentations. Specially the typical ones we use which are a popup, an alert, or a any non-full-screen modal. Abstracts having to deal with custom presentation controllers and transitioning delegates @@ -10,7 +10,7 @@ Pod::Spec.new do |s| s.author = { "Daniel Lozano" => "dan@danielozano.com" } s.social_media_url = "http://twitter.com/danlozanov" s.platform = :ios, "9.0" - s.source = { :git => "https://github.com/icalialabs/Presentr.git", :tag => "1.0.3" } + s.source = { :git => "https://github.com/icalialabs/Presentr.git", :tag => "1.0.4" } s.source_files = "Presentr/**/*.{swift}" s.resources = "Presentr/**/*.{xib,ttf}" end diff --git a/Presentr/Info.plist b/Presentr/Info.plist index 464ccbe..1b3cdf0 100644 --- a/Presentr/Info.plist +++ b/Presentr/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0.3 + 1.0.4 CFBundleSignature ???? CFBundleVersion diff --git a/Presentr/ModalSize.swift b/Presentr/ModalSize.swift index 50d4a79..1cc8096 100644 --- a/Presentr/ModalSize.swift +++ b/Presentr/ModalSize.swift @@ -16,7 +16,7 @@ import Foundation - Full: Full screen. - Custom: Custom fixed size. - Fluid: Custom percentage-based fluid size. - - SideMargin: Custom value for margins + - SideMargin: Uses side margins to calculate size. */ public enum ModalSize { @@ -47,7 +47,7 @@ public enum ModalSize { case .fluid(let percentage): return floorf(Float(parentSize.width) * percentage) case .sideMargin(let value): - return floorf(Float(parentSize.width) - value * 2) + return floorf(Float(parentSize.width) - value * 2.0) } }