Skip to content

Commit

Permalink
open up NibLoadableProtocol API to allow usage with custom classes. B…
Browse files Browse the repository at this point in the history
…ump version to 2.0.1
  • Loading branch information
DenTelezhkin committed Mar 6, 2017
1 parent 6d064ba commit 9ae30c2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.0.1](https://github.com/MLSDev/LoadableViews/releases/tag/2.0.1)

* Open up `NibLoadableProtocol` extension API to allow using `NibLoadableProtocol` methods with custom classes

## [2.0.0](https://github.com/MLSDev/LoadableViews/releases/tag/2.0.0)

Swift 3 release!
Expand Down
2 changes: 1 addition & 1 deletion LoadableViews.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LoadableViews"
s.version = "2.0.0"
s.version = "2.0.1"
s.summary = "Easiest way to load view classes into another XIB or storyboard."
s.homepage = "https://github.com/MLSDev/LoadableViews"
s.screenshots = "https://github.com/MLSDev/LoadableViews/raw/master/wtf_cat_designable.png"
Expand Down
8 changes: 7 additions & 1 deletion LoadableViews.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0800;
LastUpgradeCheck = 0820;
ORGANIZATIONNAME = "Denys Telezhkin";
TargetAttributes = {
9A4BB1B41C8AE873002B1AC9 = {
Expand Down Expand Up @@ -380,8 +380,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -427,8 +429,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -462,6 +466,7 @@
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -483,6 +488,7 @@
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Source/LoadableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension NibLoadableProtocol {
return view
}

internal func setupView(_ view: UIView, inContainer container: UIView) {
public func setupView(_ view: UIView, inContainer container: UIView) {
container.backgroundColor = .clear
container.addSubview(view)
view.translatesAutoresizingMaskIntoConstraints = false
Expand Down

0 comments on commit 9ae30c2

Please sign in to comment.