diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index 349c4c0..2698e7e 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -31,26 +31,26 @@ /* Begin PBXFileReference section */ 0201467C2E9A9286300695B12DC03380 /* Pods-Snowflake_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Snowflake_Tests.debug.xcconfig"; sourceTree = ""; }; - 1422CD049227B0877E6DA3530157F6E7 /* Pods_Snowflake_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Snowflake_Tests.framework; path = "Pods-Snowflake_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; - 293835BE05AB0DDE83934D373B005D87 /* Snowflake.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = Snowflake.modulemap; sourceTree = ""; }; + 1422CD049227B0877E6DA3530157F6E7 /* Pods_Snowflake_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Snowflake_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 293835BE05AB0DDE83934D373B005D87 /* Snowflake.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = Snowflake.modulemap; sourceTree = ""; }; 46A78EF8E37BA90AD6C5BABF3554D900 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 4863B58C89498561C520107424CD55DF /* Pods-Snowflake_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Snowflake_Tests-acknowledgements.markdown"; sourceTree = ""; }; 5923941859BF2EDC0C33A8E6BC2CB14B /* Pods-Snowflake_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Snowflake_Example.debug.xcconfig"; sourceTree = ""; }; 6D7A51BC9856BA11508845A18EA490D9 /* Pods-Snowflake_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Snowflake_Example-acknowledgements.plist"; sourceTree = ""; }; 6FF5C228E0E151E784BAA2A26B2DBC17 /* Snowflake-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Snowflake-prefix.pch"; sourceTree = ""; }; - 7CB55BCBAE3F18F45B491251CFCC1FDA /* Pods-Snowflake_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-Snowflake_Tests.modulemap"; sourceTree = ""; }; + 7CB55BCBAE3F18F45B491251CFCC1FDA /* Pods-Snowflake_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-Snowflake_Tests.modulemap"; sourceTree = ""; }; 8348AD0E38BD1E8FFAF3D3B330BE7EE3 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 85250E9F485FE7CCC9C7231CDB5CEC93 /* Pods_Snowflake_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Snowflake_Example.framework; path = "Pods-Snowflake_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 85250E9F485FE7CCC9C7231CDB5CEC93 /* Pods_Snowflake_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Snowflake_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 8A4DDAAE95078245DEEF8C8234101814 /* Snowflake.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Snowflake.xcconfig; sourceTree = ""; }; 8FCD592E3F775D9355140D3D4BE98D12 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 9731E12626C7EEA4F39C9F5F55DBAED8 /* Snowflake-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Snowflake-umbrella.h"; sourceTree = ""; }; 976B3EA1AEAE9D0982DB569D1E309313 /* Pods-Snowflake_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Snowflake_Example-resources.sh"; sourceTree = ""; }; AA6E1AE2C118F7B9E7506E0072433225 /* Pods-Snowflake_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Snowflake_Example-dummy.m"; sourceTree = ""; }; B199F1394A5C9EABED70BF66716244D7 /* Pods-Snowflake_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Snowflake_Tests-frameworks.sh"; sourceTree = ""; }; - B438AEF5D89D4135A3894302A5F3EF82 /* Snowflake.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Snowflake.framework; path = Snowflake.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + B438AEF5D89D4135A3894302A5F3EF82 /* Snowflake.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Snowflake.framework; sourceTree = BUILT_PRODUCTS_DIR; }; BF372733CEB3B4B62C9A034B8F34F07E /* Pods-Snowflake_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Snowflake_Tests-resources.sh"; sourceTree = ""; }; - C377B626EC25AA97C06AFCE74212D2D5 /* Pods-Snowflake_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-Snowflake_Example.modulemap"; sourceTree = ""; }; + C377B626EC25AA97C06AFCE74212D2D5 /* Pods-Snowflake_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-Snowflake_Example.modulemap"; sourceTree = ""; }; CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; CD27D015A7C3D676DF888541C96630AA /* Pods-Snowflake_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Snowflake_Tests-acknowledgements.plist"; sourceTree = ""; }; D34321B53F5D94AF5B23BF47124AFF65 /* Pods-Snowflake_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Snowflake_Example-acknowledgements.markdown"; sourceTree = ""; }; @@ -97,7 +97,6 @@ children = ( B57C61EC4E91FBF7D21B32C210641334 /* Classes */, ); - name = Snowflake; path = Snowflake; sourceTree = ""; }; @@ -184,7 +183,6 @@ children = ( E78B0E18CBA51ACDEFD5E883AF03D982 /* SnowFlake.swift */, ); - name = Classes; path = Classes; sourceTree = ""; }; @@ -313,14 +311,20 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0730; - LastUpgradeCheck = 0700; + LastUpgradeCheck = 1220; + TargetAttributes = { + 58AF8C7DBC006516E39522C8ECC9581E = { + LastSwiftMigration = 1220; + }; + }; }; buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = 7DB346D0F39D3F0E887471402A8071AB; productRefGroup = 210306A63D92AC6783DD4E0D9457870F /* Products */; @@ -389,7 +393,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "Target Support Files/Pods-Snowflake_Tests/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = staticlib; MODULEMAP_FILE = "Target Support Files/Pods-Snowflake_Tests/Pods-Snowflake_Tests.modulemap"; @@ -425,14 +429,14 @@ GCC_PREFIX_HEADER = "Target Support Files/Snowflake/Snowflake-prefix.pch"; INFOPLIST_FILE = "Target Support Files/Snowflake/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = "Target Support Files/Snowflake/Snowflake.modulemap"; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_NAME = Snowflake; SDKROOT = iphoneos; SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -456,7 +460,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "Target Support Files/Pods-Snowflake_Example/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = staticlib; MODULEMAP_FILE = "Target Support Files/Pods-Snowflake_Example/Pods-Snowflake_Example.modulemap"; @@ -478,24 +482,38 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 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_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGNING_REQUIRED = NO; COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; GCC_PREPROCESSOR_DEFINITIONS = ( "POD_CONFIGURATION_RELEASE=1", "$(inherited)", @@ -506,9 +524,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_VERSION = 4.0; SYMROOT = "${SRCROOT}/../build"; VALIDATE_PRODUCT = YES; }; @@ -518,25 +538,39 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 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_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGNING_REQUIRED = NO; COPY_PHASE_STRIP = NO; + 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 = ( "POD_CONFIGURATION_DEBUG=1", @@ -550,10 +584,11 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; ONLY_ACTIVE_ARCH = YES; PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; STRIP_INSTALLED_PRODUCT = NO; + SWIFT_VERSION = 4.0; SYMROOT = "${SRCROOT}/../build"; }; name = Debug; @@ -575,7 +610,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "Target Support Files/Pods-Snowflake_Tests/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = staticlib; MODULEMAP_FILE = "Target Support Files/Pods-Snowflake_Tests/Pods-Snowflake_Tests.modulemap"; @@ -610,7 +645,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "Target Support Files/Pods-Snowflake_Example/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.3; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = staticlib; MODULEMAP_FILE = "Target Support Files/Pods-Snowflake_Example/Pods-Snowflake_Example.modulemap"; @@ -647,7 +682,7 @@ GCC_PREFIX_HEADER = "Target Support Files/Snowflake/Snowflake-prefix.pch"; INFOPLIST_FILE = "Target Support Files/Snowflake/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = "Target Support Files/Snowflake/Snowflake.modulemap"; MTL_ENABLE_DEBUG_INFO = YES; @@ -655,7 +690,7 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Example/Snowflake.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/Snowflake.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Example/Snowflake.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Snowflake.podspec b/Snowflake.podspec index 7ee9869..759866b 100644 --- a/Snowflake.podspec +++ b/Snowflake.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'Snowflake' - s.version = '0.3.0' + s.version = '0.5.0' s.summary = 'Let it snow, let it snow, let it snow ❄️' # This description is used to generate tags and improve search results. @@ -28,7 +28,7 @@ This is a short description of what this pod will do s.source = { :git => 'https://github.com/julp04/Snowflake.git', :tag => s.version.to_s } # s.social_media_url = 'https://twitter.com/' - s.ios.deployment_target = '8.0' + s.ios.deployment_target = '14.0' s.source_files = 'Snowflake/Classes/**/*' diff --git a/Snowflake/Classes/SnowFlake.swift b/Snowflake/Classes/SnowFlake.swift index 0c7cef2..ce32f92 100644 --- a/Snowflake/Classes/SnowFlake.swift +++ b/Snowflake/Classes/SnowFlake.swift @@ -5,7 +5,6 @@ // Created by Panucci, Julian R on 3/17/17. // Copyright © 2017 Panucci, Julian R. All rights reserved. // - import Foundation import UIKit @@ -40,11 +39,11 @@ public class Snowflake: CAEmitterLayer { } } - override public var emitterShape: String { + override public var emitterShape: CAEmitterLayerEmitterShape { get { - return kCAEmitterLayerLine + return CAEmitterLayerEmitterShape(rawValue: convertFromCAEmitterLayerEmitterShape(CAEmitterLayerEmitterShape.line)) }set { - self.emitterShape = newValue + self.emitterShape = convertToCAEmitterLayerEmitterShape(newValue.rawValue) } } @@ -182,3 +181,12 @@ public class Snowflake: CAEmitterLayer { } +// Helper function inserted by Swift 4.2 migrator. +fileprivate func convertFromCAEmitterLayerEmitterShape(_ input: CAEmitterLayerEmitterShape) -> String { + return input.rawValue +} + +// Helper function inserted by Swift 4.2 migrator. +fileprivate func convertToCAEmitterLayerEmitterShape(_ input: String) -> CAEmitterLayerEmitterShape { + return CAEmitterLayerEmitterShape(rawValue: input) +}