diff --git a/README.md b/README.md index 44646491..679063a3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ WYPopoverController =================== +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) + *[This fork](https://github.com/sammcewan/WYPopoverController) is being actively maintained. The [original one](https://github.com/nicolaschengdev/WYPopoverController) seems to have been abandoned.* WYPopoverController is for the presentation of content in popover on iPhone / iPad devices. Very customizable. diff --git a/WYPopoverController/Info.plist b/WYPopoverController/Info.plist new file mode 100644 index 00000000..d3de8eef --- /dev/null +++ b/WYPopoverController/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/WYPopoverController/WYPopover.h b/WYPopoverController/WYPopover.h new file mode 100644 index 00000000..b92d3878 --- /dev/null +++ b/WYPopoverController/WYPopover.h @@ -0,0 +1,20 @@ +// +// WYPopoverController.h +// WYPopoverController +// +// Created by pivotal on 9/6/16. +// Copyright © 2016 pivotal. All rights reserved. +// + +#import + +//! Project version number for WYPopoverController. +FOUNDATION_EXPORT double WYPopoverVersionNumber; + +//! Project version string for WYPopoverController. +FOUNDATION_EXPORT const unsigned char WYPopoverVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import diff --git a/WYPopoverController/WYPopoverController.xcodeproj/project.pbxproj b/WYPopoverController/WYPopoverController.xcodeproj/project.pbxproj new file mode 100644 index 00000000..3f470ca3 --- /dev/null +++ b/WYPopoverController/WYPopoverController.xcodeproj/project.pbxproj @@ -0,0 +1,301 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + AEED187F1D7F8D7600E6A5B5 /* WYPopover.h in Headers */ = {isa = PBXBuildFile; fileRef = AEED187E1D7F8D7600E6A5B5 /* WYPopover.h */; settings = {ATTRIBUTES = (Public, ); }; }; + AEED188A1D7F8D7F00E6A5B5 /* WYPopoverController.h in Headers */ = {isa = PBXBuildFile; fileRef = AEED18861D7F8D7F00E6A5B5 /* WYPopoverController.h */; settings = {ATTRIBUTES = (Public, ); }; }; + AEED188B1D7F8D7F00E6A5B5 /* WYPopoverController.m in Sources */ = {isa = PBXBuildFile; fileRef = AEED18871D7F8D7F00E6A5B5 /* WYPopoverController.m */; }; + AEED188C1D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.h in Headers */ = {isa = PBXBuildFile; fileRef = AEED18881D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.h */; settings = {ATTRIBUTES = (Public, ); }; }; + AEED188D1D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.m in Sources */ = {isa = PBXBuildFile; fileRef = AEED18891D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + AEED187B1D7F8D7600E6A5B5 /* WYPopoverController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WYPopoverController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + AEED187E1D7F8D7600E6A5B5 /* WYPopover.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = WYPopover.h; path = ../WYPopover.h; sourceTree = ""; }; + AEED18801D7F8D7600E6A5B5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = ../Info.plist; sourceTree = ""; }; + AEED18861D7F8D7F00E6A5B5 /* WYPopoverController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WYPopoverController.h; path = ../WYPopoverController.h; sourceTree = ""; }; + AEED18871D7F8D7F00E6A5B5 /* WYPopoverController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WYPopoverController.m; path = ../WYPopoverController.m; sourceTree = ""; }; + AEED18881D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WYStoryboardPopoverSegue.h; path = ../WYStoryboardPopoverSegue.h; sourceTree = ""; }; + AEED18891D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WYStoryboardPopoverSegue.m; path = ../WYStoryboardPopoverSegue.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + AEED18771D7F8D7600E6A5B5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + AEED18711D7F8D7600E6A5B5 = { + isa = PBXGroup; + children = ( + AEED187D1D7F8D7600E6A5B5 /* WYPopoverController */, + AEED187C1D7F8D7600E6A5B5 /* Products */, + ); + sourceTree = ""; + }; + AEED187C1D7F8D7600E6A5B5 /* Products */ = { + isa = PBXGroup; + children = ( + AEED187B1D7F8D7600E6A5B5 /* WYPopoverController.framework */, + ); + name = Products; + sourceTree = ""; + }; + AEED187D1D7F8D7600E6A5B5 /* WYPopoverController */ = { + isa = PBXGroup; + children = ( + AEED18861D7F8D7F00E6A5B5 /* WYPopoverController.h */, + AEED18871D7F8D7F00E6A5B5 /* WYPopoverController.m */, + AEED18881D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.h */, + AEED18891D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.m */, + AEED187E1D7F8D7600E6A5B5 /* WYPopover.h */, + AEED18801D7F8D7600E6A5B5 /* Info.plist */, + ); + path = WYPopoverController; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + AEED18781D7F8D7600E6A5B5 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + AEED188A1D7F8D7F00E6A5B5 /* WYPopoverController.h in Headers */, + AEED188C1D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.h in Headers */, + AEED187F1D7F8D7600E6A5B5 /* WYPopover.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + AEED187A1D7F8D7600E6A5B5 /* WYPopoverController */ = { + isa = PBXNativeTarget; + buildConfigurationList = AEED18831D7F8D7600E6A5B5 /* Build configuration list for PBXNativeTarget "WYPopoverController" */; + buildPhases = ( + AEED18761D7F8D7600E6A5B5 /* Sources */, + AEED18771D7F8D7600E6A5B5 /* Frameworks */, + AEED18781D7F8D7600E6A5B5 /* Headers */, + AEED18791D7F8D7600E6A5B5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = WYPopoverController; + productName = WYPopoverController; + productReference = AEED187B1D7F8D7600E6A5B5 /* WYPopoverController.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + AEED18721D7F8D7600E6A5B5 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0730; + ORGANIZATIONNAME = pivotal; + TargetAttributes = { + AEED187A1D7F8D7600E6A5B5 = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = AEED18751D7F8D7600E6A5B5 /* Build configuration list for PBXProject "WYPopoverController" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = AEED18711D7F8D7600E6A5B5; + productRefGroup = AEED187C1D7F8D7600E6A5B5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + AEED187A1D7F8D7600E6A5B5 /* WYPopoverController */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + AEED18791D7F8D7600E6A5B5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + AEED18761D7F8D7600E6A5B5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + AEED188D1D7F8D7F00E6A5B5 /* WYStoryboardPopoverSegue.m in Sources */, + AEED188B1D7F8D7F00E6A5B5 /* WYPopoverController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + AEED18811D7F8D7600E6A5B5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + AEED18821D7F8D7600E6A5B5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + AEED18841D7F8D7600E6A5B5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = WYPopoverController/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.pivotaltracker.WYPopoverController; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + AEED18851D7F8D7600E6A5B5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = WYPopoverController/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.pivotaltracker.WYPopoverController; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + AEED18751D7F8D7600E6A5B5 /* Build configuration list for PBXProject "WYPopoverController" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AEED18811D7F8D7600E6A5B5 /* Debug */, + AEED18821D7F8D7600E6A5B5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + AEED18831D7F8D7600E6A5B5 /* Build configuration list for PBXNativeTarget "WYPopoverController" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AEED18841D7F8D7600E6A5B5 /* Debug */, + AEED18851D7F8D7600E6A5B5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = AEED18721D7F8D7600E6A5B5 /* Project object */; +} diff --git a/WYPopoverController/WYPopoverController.xcodeproj/xcshareddata/xcschemes/WYPopoverController.xcscheme b/WYPopoverController/WYPopoverController.xcodeproj/xcshareddata/xcschemes/WYPopoverController.xcscheme new file mode 100644 index 00000000..82e61e63 --- /dev/null +++ b/WYPopoverController/WYPopoverController.xcodeproj/xcshareddata/xcschemes/WYPopoverController.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +