Skip to content

Commit

Permalink
Merge pull request #3 from joomcode/feature/fix-multicast-delegate
Browse files Browse the repository at this point in the history
Feature/fix multicast delegate
  • Loading branch information
mikhailmaslo authored Feb 16, 2022
2 parents d902c8a + b1b2f94 commit 5f7e1ae
Show file tree
Hide file tree
Showing 11 changed files with 594 additions and 325 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ playground.xcworkspace
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm
.swiftpm

.build/

Expand Down Expand Up @@ -87,4 +87,7 @@ fastlane/test_output
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
iOSInjectionProject/

# MacOS
.DS_Store
185 changes: 185 additions & 0 deletions BottomSheetDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
7D05F3242741371400EBDBB1 /* RootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D05F3232741371400EBDBB1 /* RootViewController.swift */; };
7D05F33227413A1500EBDBB1 /* libBottomSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D05F32A274139E100EBDBB1 /* libBottomSheet.a */; };
7D05F342274140F700EBDBB1 /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = 7D05F341274140F700EBDBB1 /* SnapKit */; };
7D59054827BD2DC70000BC17 /* BottomSheetUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D59054727BD2DC70000BC17 /* BottomSheetUtils.h */; settings = {ATTRIBUTES = (Public, ); }; };
7D59054A27BD2DCE0000BC17 /* JMMulticastDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D59054927BD2DCE0000BC17 /* JMMulticastDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
7D7338D4274269A3004D7E59 /* ResizeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D7338D3274269A3004D7E59 /* ResizeViewController.swift */; };
7DA6E0D9274F9186009F5C37 /* BottomSheetTransitioningDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DA6E0B4274F915A009F5C37 /* BottomSheetTransitioningDelegate.swift */; };
7DA6E0DA274F918A009F5C37 /* BottomSheetNavigationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DA6E0B6274F915A009F5C37 /* BottomSheetNavigationController.swift */; };
Expand All @@ -31,6 +33,10 @@
7DA6E0E7274F919A009F5C37 /* UIScrollView+MulticastDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DA6E0C8274F915A009F5C37 /* UIScrollView+MulticastDelegate.swift */; };
7DA6E0E8274F919A009F5C37 /* UINavigationController+MulticastDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DA6E0C7274F915A009F5C37 /* UINavigationController+MulticastDelegate.swift */; };
7DA9B01A27439FA100284B0F /* UIControl+EventHandling.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DA9B01927439FA100284B0F /* UIControl+EventHandling.swift */; };
7DB24C8927BD1813001030C7 /* BottomSheetUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DB24C8327BD1813001030C7 /* BottomSheetUtils.framework */; };
7DB24C8A27BD1813001030C7 /* BottomSheetUtils.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 7DB24C8327BD1813001030C7 /* BottomSheetUtils.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
7DB24C9327BD18F1001030C7 /* BottomSheetUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DB24C8327BD1813001030C7 /* BottomSheetUtils.framework */; };
7DB24CEC27BD1FAD001030C7 /* JMMulticastDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DB24CE927BD1FAD001030C7 /* JMMulticastDelegate.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -41,6 +47,13 @@
remoteGlobalIDString = 7D05F329274139E100EBDBB1;
remoteInfo = BottomSheet;
};
7DB24C8727BD1813001030C7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 7D05F2F92741359800EBDBB1 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 7DB24C8227BD1813001030C7;
remoteInfo = BottomSheetUtils;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -53,6 +66,17 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
7DB24C8B27BD1813001030C7 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
7DB24C8A27BD1813001030C7 /* BottomSheetUtils.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
Expand All @@ -63,6 +87,8 @@
7D05F3122741359C00EBDBB1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7D05F3232741371400EBDBB1 /* RootViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootViewController.swift; sourceTree = "<group>"; };
7D05F32A274139E100EBDBB1 /* libBottomSheet.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libBottomSheet.a; sourceTree = BUILT_PRODUCTS_DIR; };
7D59054727BD2DC70000BC17 /* BottomSheetUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BottomSheetUtils.h; sourceTree = "<group>"; };
7D59054927BD2DCE0000BC17 /* JMMulticastDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JMMulticastDelegate.h; sourceTree = "<group>"; };
7D7338D3274269A3004D7E59 /* ResizeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResizeViewController.swift; sourceTree = "<group>"; };
7DA6E0B4274F915A009F5C37 /* BottomSheetTransitioningDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BottomSheetTransitioningDelegate.swift; sourceTree = "<group>"; };
7DA6E0B6274F915A009F5C37 /* BottomSheetNavigationController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BottomSheetNavigationController.swift; sourceTree = "<group>"; };
Expand All @@ -81,6 +107,8 @@
7DA6E0C7274F915A009F5C37 /* UINavigationController+MulticastDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UINavigationController+MulticastDelegate.swift"; sourceTree = "<group>"; };
7DA6E0C8274F915A009F5C37 /* UIScrollView+MulticastDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIScrollView+MulticastDelegate.swift"; sourceTree = "<group>"; };
7DA9B01927439FA100284B0F /* UIControl+EventHandling.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIControl+EventHandling.swift"; sourceTree = "<group>"; };
7DB24C8327BD1813001030C7 /* BottomSheetUtils.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = BottomSheetUtils.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7DB24CE927BD1FAD001030C7 /* JMMulticastDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JMMulticastDelegate.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -89,11 +117,20 @@
buildActionMask = 2147483647;
files = (
7D05F33227413A1500EBDBB1 /* libBottomSheet.a in Frameworks */,
7DB24C8927BD1813001030C7 /* BottomSheetUtils.framework in Frameworks */,
7D05F342274140F700EBDBB1 /* SnapKit in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
7D05F327274139E100EBDBB1 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
7DB24C9327BD18F1001030C7 /* BottomSheetUtils.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
7DB24C8027BD1813001030C7 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -108,6 +145,7 @@
children = (
7DA6E0B2274F915A009F5C37 /* BottomSheet */,
7D05F3032741359800EBDBB1 /* BottomSheetDemo */,
7DB24CE827BD1FAD001030C7 /* BottomSheetUtils */,
7D05F33127413A1500EBDBB1 /* Frameworks */,
7D05F3022741359800EBDBB1 /* Products */,
);
Expand All @@ -118,6 +156,7 @@
children = (
7D05F3012741359800EBDBB1 /* BottomSheetDemo.app */,
7D05F32A274139E100EBDBB1 /* libBottomSheet.a */,
7DB24C8327BD1813001030C7 /* BottomSheetUtils.framework */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -279,8 +318,39 @@
path = Helpers;
sourceTree = "<group>";
};
7DB24CE827BD1FAD001030C7 /* BottomSheetUtils */ = {
isa = PBXGroup;
children = (
7DDA237727BD25C800D006FE /* include */,
7D59054727BD2DC70000BC17 /* BottomSheetUtils.h */,
7DB24CE927BD1FAD001030C7 /* JMMulticastDelegate.m */,
);
name = BottomSheetUtils;
path = Sources/BottomSheetUtils;
sourceTree = "<group>";
};
7DDA237727BD25C800D006FE /* include */ = {
isa = PBXGroup;
children = (
7D59054927BD2DCE0000BC17 /* JMMulticastDelegate.h */,
);
path = include;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
7DB24C7E27BD1813001030C7 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
7D59054827BD2DC70000BC17 /* BottomSheetUtils.h in Headers */,
7D59054A27BD2DCE0000BC17 /* JMMulticastDelegate.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
7D05F3002741359800EBDBB1 /* BottomSheetDemo */ = {
isa = PBXNativeTarget;
Expand All @@ -289,11 +359,13 @@
7D05F2FD2741359800EBDBB1 /* Sources */,
7D05F2FE2741359800EBDBB1 /* Frameworks */,
7D05F2FF2741359800EBDBB1 /* Resources */,
7DB24C8B27BD1813001030C7 /* Embed Frameworks */,
);
buildRules = (
);
dependencies = (
7D05F33427413A1500EBDBB1 /* PBXTargetDependency */,
7DB24C8827BD1813001030C7 /* PBXTargetDependency */,
);
name = BottomSheetDemo;
packageProductDependencies = (
Expand All @@ -320,6 +392,24 @@
productReference = 7D05F32A274139E100EBDBB1 /* libBottomSheet.a */;
productType = "com.apple.product-type.library.static";
};
7DB24C8227BD1813001030C7 /* BottomSheetUtils */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7DB24C8E27BD1813001030C7 /* Build configuration list for PBXNativeTarget "BottomSheetUtils" */;
buildPhases = (
7DB24C7E27BD1813001030C7 /* Headers */,
7DB24C7F27BD1813001030C7 /* Sources */,
7DB24C8027BD1813001030C7 /* Frameworks */,
7DB24C8127BD1813001030C7 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = BottomSheetUtils;
productName = BottomSheetUtils;
productReference = 7DB24C8327BD1813001030C7 /* BottomSheetUtils.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -337,6 +427,9 @@
CreatedOnToolsVersion = 12.5.1;
LastSwiftMigration = 1250;
};
7DB24C8227BD1813001030C7 = {
CreatedOnToolsVersion = 13.0;
};
};
};
buildConfigurationList = 7D05F2FC2741359800EBDBB1 /* Build configuration list for PBXProject "BottomSheetDemo" */;
Expand All @@ -357,6 +450,7 @@
targets = (
7D05F3002741359800EBDBB1 /* BottomSheetDemo */,
7D05F329274139E100EBDBB1 /* BottomSheet */,
7DB24C8227BD1813001030C7 /* BottomSheetUtils */,
);
};
/* End PBXProject section */
Expand All @@ -371,6 +465,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
7DB24C8127BD1813001030C7 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -408,6 +509,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
7DB24C7F27BD1813001030C7 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
7DB24CEC27BD1FAD001030C7 /* JMMulticastDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -416,6 +525,11 @@
target = 7D05F329274139E100EBDBB1 /* BottomSheet */;
targetProxy = 7D05F33327413A1500EBDBB1 /* PBXContainerItemProxy */;
};
7DB24C8827BD1813001030C7 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 7DB24C8227BD1813001030C7 /* BottomSheetUtils */;
targetProxy = 7DB24C8727BD1813001030C7 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
Expand Down Expand Up @@ -621,6 +735,68 @@
};
name = Release;
};
7DB24C8C27BD1813001030C7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Joom. All rights reserved.";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.joomcode.BottomSheetUtils;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
7DB24C8D27BD1813001030C7 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2022 Joom. All rights reserved.";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.joomcode.BottomSheetUtils;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -651,6 +827,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
7DB24C8E27BD1813001030C7 /* Build configuration list for PBXNativeTarget "BottomSheetUtils" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7DB24C8C27BD1813001030C7 /* Debug */,
7DB24C8D27BD1813001030C7 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
Expand Down
Loading

0 comments on commit 5f7e1ae

Please sign in to comment.