Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7612456ea9 | |||
| c44ab84eca | |||
| f08daeac2b | |||
| 9ac9e4374d | |||
| 3be7590fa2 | |||
| 801a6c8603 | |||
| e397952e6f | |||
| 314e83dd26 | |||
| 965667b373 | |||
| 9eea2c3259 | |||
| 7e58625b8e | |||
| 70a0a261cc | |||
| 214fe1cffd | |||
| 5222fc5a13 | |||
| b4bf86c56b | |||
| e0ba55a4a8 | |||
| 5696d657db | |||
| b698f106af | |||
| ccd0be4f01 | |||
| 682208fa21 | |||
| c7d9c7730a | |||
| dd43a80271 |
@@ -1,8 +0,0 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: ivanvorobei
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
custom: # https://xcode-shop.com
|
||||
@@ -1255,7 +1255,7 @@
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "by.ivanvorobei.stork-controller";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = 1;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1274,7 +1274,7 @@
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "by.ivanvorobei.stork-controller";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = 1;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
@objc public protocol SPStorkControllerConfirmDelegate: class {
|
||||
@objc public protocol SPStorkControllerConfirmDelegate: AnyObject {
|
||||
|
||||
var needConfirm: Bool { get }
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
@objc public protocol SPStorkControllerDelegate: class {
|
||||
@objc public protocol SPStorkControllerDelegate: AnyObject {
|
||||
|
||||
@objc optional func didDismissStorkBySwipe()
|
||||
|
||||
|
||||
@@ -86,7 +86,11 @@ extension ModalTableViewController: SPStorkControllerConfirmDelegate {
|
||||
}
|
||||
|
||||
func confirm(_ completion: @escaping (Bool) -> ()) {
|
||||
let alertController = UIAlertController(title: "Need dismiss?", message: "It test confirm option for SPStorkController", preferredStyle: .actionSheet)
|
||||
var style: UIAlertController.Style = .actionSheet
|
||||
if UIDevice.current.userInterfaceIdiom != .phone {
|
||||
style = .alert
|
||||
}
|
||||
let alertController = UIAlertController(title: "Need dismiss?", message: "It test confirm option for SPStorkController", preferredStyle: style)
|
||||
alertController.addDestructiveAction(title: "Confirm", complection: {
|
||||
completion(true)
|
||||
})
|
||||
|
||||
@@ -39,7 +39,11 @@ extension ModalViewController: SPStorkControllerConfirmDelegate {
|
||||
}
|
||||
|
||||
func confirm(_ completion: @escaping (Bool) -> ()) {
|
||||
let alertController = UIAlertController(title: "Need dismiss?", message: "It test confirm option for SPStorkController", preferredStyle: .actionSheet)
|
||||
var style: UIAlertController.Style = .actionSheet
|
||||
if UIDevice.current.userInterfaceIdiom != .phone {
|
||||
style = .alert
|
||||
}
|
||||
let alertController = UIAlertController(title: "Need dismiss?", message: "It test confirm option for SPStorkController", preferredStyle: style)
|
||||
alertController.addDestructiveAction(title: "Confirm", complection: {
|
||||
completion(true)
|
||||
})
|
||||
|
||||
+1
-1
@@ -11,6 +11,6 @@ let package = Package(
|
||||
.library(name: "SPStorkController", targets: ["SPStorkController"])
|
||||
],
|
||||
targets: [
|
||||
.target(name: "SPStorkController", dependencies: [], path: "Source/SPStorkController")
|
||||
.target(name: "SPStorkController", dependencies: [], path: "Sources/SPStorkController")
|
||||
]
|
||||
)
|
||||
|
||||
@@ -3,17 +3,22 @@
|
||||
<a href="https://itunes.apple.com/app/id1446635818" target="_blank"><img align="left" src="https://github.com/ivanvorobei/SPStorkController/blob/master/Resources/Preview.gif" width="400"/></a>
|
||||
|
||||
### About
|
||||
Controller **as in Apple Music, Podcasts and Mail** apps. Simple adding close button and centering arrow indicator. Customizable height. Using custom `TransitionDelegate`.
|
||||
Controller **as in Apple Music, Podcasts and Mail** apps. Help if you need customize height or suppport modal style in iOS 12.
|
||||
|
||||
Alert you can find in [SPAlert](https://github.com/IvanVorobei/SPAlert) project.
|
||||
Simple adding close button and centering arrow indicator. Customizable height. Using custom `TransitionDelegate`.
|
||||
|
||||
You can download example [Debts - Spending tracker](https://itunes.apple.com/app/id1446635818) app from AppStore. For **buy source code** of app in preview, go to:
|
||||
Alert you can find in [SPAlert](https://github.com/ivanvorobei/SPAlert) project. It support diffrents presets, some animatable.
|
||||
|
||||
[](https://xcode-shop.com)
|
||||
If you like the project, don't forget to `put star ★` and follow me on GitHub:
|
||||
|
||||
If you like the project, do not forget to `put star ★` and follow me on GitHub:
|
||||
|
||||
[](https://github.com/ivanvorobei)
|
||||
<p float="left">
|
||||
<a href="https://github.com/ivanvorobei">
|
||||
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/follow-me-ivanvorobei.svg">
|
||||
</a>
|
||||
<a href="https://opensource.ivanvorobei.by">
|
||||
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/more-libraries.svg">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
## Navigate
|
||||
|
||||
@@ -40,13 +45,8 @@ If you like the project, do not forget to `put star ★` and follow me on GitHub
|
||||
- [Delegate](#delegate)
|
||||
- [Storyboard](#storyboard)
|
||||
- [Sheets in iOS 13](#sheets-in-ios-13)
|
||||
- [Sponsors](#sponsors)
|
||||
- [Other Projects +gif](#my-projects)
|
||||
- [SPAlert](#spalert)
|
||||
- [SPLarkController](#splarkcontroller)
|
||||
- [SPPermission](#sppermission)
|
||||
- [Awesome iOS UI](https://github.com/ivanvorobei/awesome-ios-ui)
|
||||
- [License](#license)
|
||||
- [Other Projects](#other-projects)
|
||||
- [Russian Community](#russian-community)
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -373,37 +373,34 @@ Apple present in `WWDC 2019` new modal presentation style - `Sheets`. It ready u
|
||||
|
||||
<a href="https://developer.apple.com/videos/play/wwdc2019/224/" target="_blank"><img align="center" src="https://github.com/ivanvorobei/SPStorkController/blob/master/Resources/Sheets.png"/></a>
|
||||
|
||||
## My projects
|
||||
## Other Projects
|
||||
|
||||
<img align="left" src="https://github.com/ivanvorobei/SPAlert/blob/master/Assets/Readme/Preview%20-%20Done.gif" width="220"/>
|
||||
I love being helpful. Here I have provided a list of libraries that I keep up to date. For see `video previews` of libraries without install open [opensource.ivanvorobei.by](https://opensource.ivanvorobei.by) website.<br>
|
||||
I have libraries with native interface and managing permissions. Also available pack of useful extensions for boost your development process.
|
||||
|
||||
### SPAlert
|
||||
<p float="left">
|
||||
<a href="https://opensource.ivanvorobei.by">
|
||||
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/more-libraries.svg">
|
||||
</a>
|
||||
<a href="https://xcodeshop.ivanvorobei.by">
|
||||
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/xcode-shop.svg">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
[SPAlert](https://github.com/ivanvorobei/SPAlert) is **popup from Apple Music & Feedback in AppStore**. Contains `Done` & `Heart` presets. `Done` present with draw path animation. I clone Apple's alerts as much as possible.
|
||||
You can find this alerts in AppStore after feedback, after added song to library in Apple Music. I am also add alert without icon, as simple message.
|
||||
## Russian Community
|
||||
|
||||
You can download example [Debts - Spending tracker](https://itunes.apple.com/app/id1446635818) app from AppStore. If you want to **buy source code** of app in preview, please, go to [xcode-shop.com](https://xcode-shop.com).
|
||||
Подписывайся в телеграмм-канал, если хочешь получать уведомления о новых туториалах.<br>
|
||||
Со сложными и непонятными задачами помогут в чате.
|
||||
|
||||
---
|
||||
<p float="left">
|
||||
<a href="https://tutorials.ivanvorobei.by/telegram/channel">
|
||||
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/open-telegram-channel.svg">
|
||||
</a>
|
||||
<a href="https://tutorials.ivanvorobei.by/telegram/chat">
|
||||
<img src="https://github.com/ivanvorobei/Readme/blob/main/Buttons/russian-community-chat.svg">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<img align="left" src="https://github.com/ivanvorobei/SPLarkController/blob/master/Resources/Preview.gif" width="220"/>
|
||||
Видео-туториалы выклыдываю на [YouTube](https://tutorials.ivanvorobei.by/youtube):
|
||||
|
||||
### SPLarkController
|
||||
|
||||
[SPLarkController](https://github.com/ivanvorobei/SPLarkController) transition between controllers. Translate to top. Make **settings screen** for application. You can add **buttons and switches**. The amount cells is not limited. You can start using project with just two lines of code and easy customisation. For implement settings as in preiew, see section [Settings Controller](https://github.com/ivanvorobei/SPLarkController#settings-controller).
|
||||
|
||||
You can download example app [Code - Learn Swift & Design](https://itunes.apple.com/app/id1453325619) from AppStore. If you want to **buy source code** of app this app, please, go to [xcode-shop.com](https://xcode-shop.com).
|
||||
|
||||
---
|
||||
|
||||
<img align="left" src="https://github.com/ivanvorobei/SPPermissions/blob/master/Assets/Readme/Preview%20-%205.0.jpg" width="220"/>
|
||||
|
||||
### SPPermission
|
||||
|
||||
[SPPermission](https://github.com/ivanvorobei/SPPermission) allow request permissions **with native dialog** UI and interactive animations. Also you can request permissions without dialog. Check state any permission. You can start using this project with just two lines of code and easy customisation.
|
||||
|
||||
You can buy example Dialog & Dinamic animations in [xcode-shop.com](https://xcode-shop.com/ui-elements), see [preview](https://xcode-shop.com/assets/preview/dinamic-alert.mov).
|
||||
|
||||
## License
|
||||
|
||||
`SPStorkController` is released under the MIT license. Check `LICENSE.md` for details.
|
||||
[](https://tutorials.ivanvorobei.by/youtube)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
Pod::Spec.new do |s|
|
||||
|
||||
s.name = "SPStorkController"
|
||||
s.version = "1.8.2"
|
||||
s.version = "1.8.5"
|
||||
s.summary = "Very similar to the controllers displayed in Apple Music, Podcasts and Mail Apple's applications."
|
||||
s.homepage = "https://github.com/IvanVorobei/SPStorkController"
|
||||
s.source = { :git => "https://github.com/IvanVorobei/SPStorkController.git", :tag => s.version }
|
||||
s.homepage = "https://github.com/ivanvorobei/SPStorkController"
|
||||
s.source = { :git => "https://github.com/ivanvorobei/SPStorkController.git", :tag => s.version }
|
||||
s.license = { :type => "MIT", :file => "LICENSE" }
|
||||
|
||||
s.author = { "Ivan Vorobei" => "hello@ivanvorobei.by" }
|
||||
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
|
||||
s.swift_version = ['4.2', '5.0']
|
||||
s.ios.deployment_target = "10.0"
|
||||
|
||||
s.source_files = "Source/SPStorkController/**/*.swift"
|
||||
s.source_files = "Sources/SPStorkController/**/*.swift"
|
||||
|
||||
end
|
||||
@@ -139,7 +139,7 @@
|
||||
F4DB85132260A4FD005082AA = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F4DB851F2260A4FD005082AA /* Source */,
|
||||
F4DB851F2260A4FD005082AA /* Sources */,
|
||||
F4DB851E2260A4FD005082AA /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
@@ -152,13 +152,13 @@
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F4DB851F2260A4FD005082AA /* Source */ = {
|
||||
F4DB851F2260A4FD005082AA /* Sources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F4803BF6230836F40092C9BC /* SPStorkController */,
|
||||
F4437E4F22B50918006E6498 /* Supporting Files */,
|
||||
);
|
||||
path = Source;
|
||||
path = Sources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Vorobei (ivanvorobei@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (ivanvorobei@icloud.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// The MIT License (MIT)
|
||||
// Copyright © 2017 Ivan Varabei (varabeis@icloud.com)
|
||||
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.by)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
Reference in New Issue
Block a user