Skip to content

Commit

Permalink
Update target version min 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrustaa committed Apr 19, 2022
1 parent 7c10298 commit 5121674
Show file tree
Hide file tree
Showing 20 changed files with 171 additions and 433 deletions.
15 changes: 9 additions & 6 deletions Example/ButtonClickStyle.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
4A85B5DA2803EBFE00DFD435 /* TitleTextCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A85B5B92803EBFD00DFD435 /* TitleTextCell.swift */; };
4A85B5DD2803EBFE00DFD435 /* TableAdapterView+DataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A85B5BD2803EBFD00DFD435 /* TableAdapterView+DataSource.swift */; };
4A85B5DE2803EBFE00DFD435 /* TableAdapterView+ScrollDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A85B5BE2803EBFD00DFD435 /* TableAdapterView+ScrollDelegate.swift */; };
4A85B5DF2803EBFE00DFD435 /* TableAdapterView+AddRefresh.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A85B5BF2803EBFD00DFD435 /* TableAdapterView+AddRefresh.swift */; };
4AA6021C280E36450073E26E /* ButtonClickStyleAnim+UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AA6021B280E36450073E26E /* ButtonClickStyleAnim+UIView.swift */; };
4ADE26E42803837C00634B6C /* ExampleButtonsViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4ADE26E22803837C00634B6C /* ExampleButtonsViewController.storyboard */; };
4ADE26E52803837C00634B6C /* ExampleButtonsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4ADE26E32803837C00634B6C /* ExampleButtonsViewController.swift */; };
4ADE26E7280383DC00634B6C /* ButtonClickStyle+Buttons.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4ADE26E6280383DC00634B6C /* ButtonClickStyle+Buttons.swift */; };
Expand Down Expand Up @@ -198,8 +198,8 @@
4A85B5B92803EBFD00DFD435 /* TitleTextCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TitleTextCell.swift; sourceTree = "<group>"; };
4A85B5BD2803EBFD00DFD435 /* TableAdapterView+DataSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "TableAdapterView+DataSource.swift"; sourceTree = "<group>"; };
4A85B5BE2803EBFD00DFD435 /* TableAdapterView+ScrollDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "TableAdapterView+ScrollDelegate.swift"; sourceTree = "<group>"; };
4A85B5BF2803EBFD00DFD435 /* TableAdapterView+AddRefresh.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "TableAdapterView+AddRefresh.swift"; sourceTree = "<group>"; };
4A9B5AE4280B4E200033761B /* ButtonClickStyle */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ButtonClickStyle; path = ..; sourceTree = "<group>"; };
4AA6021B280E36450073E26E /* ButtonClickStyleAnim+UIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ButtonClickStyleAnim+UIView.swift"; sourceTree = "<group>"; };
4ADE26E22803837C00634B6C /* ExampleButtonsViewController.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = ExampleButtonsViewController.storyboard; sourceTree = "<group>"; };
4ADE26E32803837C00634B6C /* ExampleButtonsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExampleButtonsViewController.swift; sourceTree = "<group>"; };
4ADE26E6280383DC00634B6C /* ButtonClickStyle+Buttons.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ButtonClickStyle+Buttons.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -275,6 +275,7 @@
4A477AC9280AEE280004156A /* Animations */ = {
isa = PBXGroup;
children = (
4AA6021B280E36450073E26E /* ButtonClickStyleAnim+UIView.swift */,
4A14CBD02803437C00DA8A68 /* ButtonClickStyleAnim+UIViewAlpha.swift */,
4A14CBD12803437C00DA8A68 /* ButtonClickStyleAnim+UIViewShadow.swift */,
4A14CBD22803437C00DA8A68 /* ButtonClickStyleAnim+UIViewPulsate.swift */,
Expand Down Expand Up @@ -581,7 +582,6 @@
4A85B5B22803EBFD00DFD435 /* TableAdapterView+UpdateRows.swift */,
4A85B5BD2803EBFD00DFD435 /* TableAdapterView+DataSource.swift */,
4A85B5BE2803EBFD00DFD435 /* TableAdapterView+ScrollDelegate.swift */,
4A85B5BF2803EBFD00DFD435 /* TableAdapterView+AddRefresh.swift */,
);
path = TableAdapterView;
sourceTree = "<group>";
Expand Down Expand Up @@ -890,7 +890,6 @@
4ADE26E7280383DC00634B6C /* ButtonClickStyle+Buttons.swift in Sources */,
4A62F3992803115C00534ABA /* BtnView.swift in Sources */,
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
4A85B5DF2803EBFE00DFD435 /* TableAdapterView+AddRefresh.swift in Sources */,
4A85B5A82803EBA400DFD435 /* ButtonListCell.swift in Sources */,
4A85B5D02803EBFE00DFD435 /* TableAdapterView+AddGradient.swift in Sources */,
4A62F3752803115C00534ABA /* StoryboardController.swift in Sources */,
Expand Down Expand Up @@ -929,6 +928,7 @@
4A62F39F2803115C00534ABA /* TestDemoViewController.swift in Sources */,
4A62F3802803115C00534ABA /* BlueButtonView.swift in Sources */,
4A62F3842803115C00534ABA /* TestDemoBlurButtonView.swift in Sources */,
4AA6021C280E36450073E26E /* ButtonClickStyleAnim+UIView.swift in Sources */,
4A231B7A280A82250073284C /* ButtonClickStyleEmoji.swift in Sources */,
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
4A62F3952803115C00534ABA /* NeomorphismButtonView.swift in Sources */,
Expand Down Expand Up @@ -1006,7 +1006,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1056,8 +1056,9 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
Expand All @@ -1073,6 +1074,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = Y7546NLJW9;
INFOPLIST_FILE = ButtonClickStyle/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.2.2;
MODULE_NAME = ExampleApp;
Expand All @@ -1094,6 +1096,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = Y7546NLJW9;
INFOPLIST_FILE = ButtonClickStyle/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.2.2;
MODULE_NAME = ExampleApp;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
ReferencedContainer = "container:ButtonClickStyle.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "ButtonClickStyle_Tests.xctest"
BlueprintName = "ButtonClickStyle_Tests"
ReferencedContainer = "container:ButtonClickStyle.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand All @@ -51,16 +37,6 @@
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "ButtonClickStyle_Tests.xctest"
BlueprintName = "ButtonClickStyle_Tests"
ReferencedContainer = "container:ButtonClickStyle.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
2 changes: 2 additions & 0 deletions Example/ButtonClickStyle/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

// MARK: UISceneSession Lifecycle

@available(iOS 13.0, *)
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

@available(iOS 13.0, *)
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
Expand Down
32 changes: 0 additions & 32 deletions Example/ButtonClickStyle/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -141,32 +141,6 @@
<action selector="testDoubleScreenButtonAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Gws-uI-bIA"/>
</connections>
</button>
<view tag="848" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hzm-ef-ieH" customClass="ButtonClickStyleDesignView" customModule="ButtonClickStyle" customModuleProvider="target">
<rect key="frame" x="141" y="605" width="157" height="76"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemYellowColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
<color key="value" systemColor="tintColor"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="25"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view tag="848" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="F7E-0i-pI7" customClass="ButtonClickStyleDesignTest" customModule="ButtonClickStyle" customModuleProvider="target">
<rect key="frame" x="191" y="368" width="142" height="76"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemYellowColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="fillColor">
<color key="value" systemColor="tintColor"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="25"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
Expand Down Expand Up @@ -210,11 +184,5 @@
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="systemYellowColor">
<color red="1" green="0.80000000000000004" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="tintColor">
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
6 changes: 6 additions & 0 deletions Example/ButtonClickStyle/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

var window: UIWindow?

@available(iOS 13.0, *)
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
Expand All @@ -30,28 +31,33 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

}

@available(iOS 13.0, *)
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
}

@available(iOS 13.0, *)
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}

@available(iOS 13.0, *)
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}

@available(iOS 13.0, *)
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}

@available(iOS 13.0, *)
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class JustPinkButtonView: BtnView {
views = [subMainView]

} else {
fillView.fillColor = .systemGray5.withAlphaComponent(0.55)

fillView.fillColor = #colorLiteral(red: 0.8980392157, green: 0.8980392157, blue: 0.9176470588, alpha: 1).withAlphaComponent(0.55)
gradientView.isHidden = false
gradientView.alpha = 1
mainShadowView.blur = 24
Expand Down

0 comments on commit 5121674

Please sign in to comment.