6 Commits

Author SHA1 Message Date
Drew Olbrich 46880f6631 Set version to 1.4.0 2019-03-30 08:55:18 -07:00
Drew Olbrich 9809badff2 Update for Swift 5 2019-03-30 08:54:51 -07:00
Drew Olbrich 5a08bff7a5 Set version to 1.3.0 2019-03-23 09:24:50 -07:00
Drew Olbrich 6d50f761ad Set version to 1.2.1 2019-03-23 09:22:24 -07:00
Drew Olbrich b4c2d666cf Change presented keyboard content view minimum height constraint relation to greater than or equal 2019-03-23 09:18:53 -07:00
Drew Olbrich 82a0d85308 Update Background section 2019-03-22 11:48:17 -07:00
5 changed files with 27 additions and 21 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ This case can be handled by nesting the view inside a scroll view. You could do
To simplify this task, ScrollingContentViewController inserts the scroll view into the view hierarchy for you at run time, along with all necessary Auto Layout constraints.
When used in a storyboard, ScrollingContentViewController exposes an outlet called [`contentView`](#contentView) that you connect to the view that you'd like to make scrollable. This may be the view controller's root view. Everything else is taken care of automatically, including responding to keyboard presentation and device orientation changes.
When used in a storyboard, ScrollingContentViewController exposes an outlet called [`contentView`](#contentView) that you connect to the view that you'd like to make scrollable. This may be the view controller's root view or an arbitrary subview. Everything else is taken care of automatically, including responding to keyboard presentation and device orientation changes.
ScrollingContentViewController can be configured using storyboards or entirely in code. The easiest way to use it is by subclassing the `ScrollingContentViewController` class instead of [`UIViewController`](https://developer.apple.com/documentation/uikit/uiviewcontroller). However, when this is not an option, a helper class called `ScrollingContentViewManager` can be composed with your existing view controller class instead.
+2 -2
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ScrollingContentViewController'
s.version = '1.2.0'
s.version = '1.4.0'
s.summary = 'A Swift library that simplifies making a view controller\'s view scrollable'
s.description = <<-DESC
@@ -23,5 +23,5 @@ device rotations.
s.frameworks = 'UIKit'
s.swift_version = '4.2'
s.swift_versions = ['4.2', '5.0']
end
@@ -219,7 +219,7 @@
3A881DB72245257E00E21CA2 /* InsetContentViewKeyboardTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InsetContentViewKeyboardTests.swift; sourceTree = "<group>"; };
3AAC048821E2D3FD00D94DA5 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
3AAC048921E2D3FD00D94DA5 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
3AAC048A21E2D3FD00D94DA5 /* ScrollingContentViewController.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScrollingContentViewController.podspec; sourceTree = "<group>"; };
3AAC048A21E2D3FD00D94DA5 /* ScrollingContentViewController.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; fileEncoding = 4; path = ScrollingContentViewController.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
3AAC048E21E2D4C500D94DA5 /* ScrollingContentViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScrollingContentViewController.swift; sourceTree = "<group>"; };
3AAC049021E2D4F100D94DA5 /* ScrollingContentViewManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScrollingContentViewManager.swift; sourceTree = "<group>"; };
3AAC049321E2F01C00D94DA5 /* UIResponder+Current.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIResponder+Current.swift"; sourceTree = "<group>"; };
@@ -651,25 +651,31 @@
TargetAttributes = {
3A5702CD21E2CBB600E4CC55 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1010;
LastSwiftMigration = 1020;
};
3A5702D621E2CBB600E4CC55 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
};
3A6273DE21E79757008EA567 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
};
3AAC04A921E3A01900D94DA5 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
};
3AAC04D921E4514B00D94DA5 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
};
3AE460E721EA952000B3E547 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
};
3AE989822206443B006254A4 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
};
};
};
@@ -1116,7 +1122,7 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -1142,7 +1148,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.ScrollingContentViewController;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
@@ -1161,7 +1167,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.ScrollingContentViewControllerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -1180,7 +1186,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.ScrollingContentViewControllerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
@@ -1199,7 +1205,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.ManagerExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -1218,7 +1224,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.ManagerExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
@@ -1237,7 +1243,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.StoryboardExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -1256,7 +1262,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.StoryboardExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
@@ -1275,7 +1281,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.CodeExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -1294,7 +1300,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.CodeExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
@@ -1313,7 +1319,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.SequenceExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -1332,7 +1338,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.SequenceExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
@@ -1351,7 +1357,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.ReassignExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
@@ -1370,7 +1376,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.retroactivefiasco.ReassignExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<string>1.4.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
+1 -1
View File
@@ -465,7 +465,7 @@ public class ScrollingContentViewManager: KeyboardObservering, ScrollViewBounceC
let contentViewMinimumHeightConstraint = contentView.heightAnchor.constraint(greaterThanOrEqualTo: scrollView.safeAreaLayoutGuide.heightAnchor, multiplier: 1)
self.contentViewMinimumHeightConstraint = contentViewMinimumHeightConstraint
let contentViewMinimumHeightForPresentedKeyboardConstraint = contentView.heightAnchor.constraint(equalToConstant: 0)
let contentViewMinimumHeightForPresentedKeyboardConstraint = contentView.heightAnchor.constraint(greaterThanOrEqualToConstant: 0)
self.contentViewMinimumHeightForPresentedKeyboardConstraint = contentViewMinimumHeightForPresentedKeyboardConstraint
contentViewMinimumWidthConstraint.priority = minimumSizeConstraintPriority