Compare commits

..

11 Commits

Author SHA1 Message Date
Ivan Vorobei 7612456ea9 Merge pull request #120 from izyumkin/master
Typo fixed
2022-12-25 21:41:57 +03:00
izzyumkin c44ab84eca Typo fixed 2022-12-25 17:55:44 +05:00
Ivan Vorobei f08daeac2b Update README.md 2021-10-01 14:21:36 +03:00
Ivan Vorobei 9ac9e4374d Update README.md 2021-07-13 16:50:53 +03:00
Ivan Vorobei 3be7590fa2 Merge pull request #118 from elilien/master
Made the demo project support iPad and silenced two warnings with Xcode 12.5 and Swift 5.4
2021-05-28 22:19:56 +03:00
Kaixin L 801a6c8603 Made the demo project support iPad and fixed an issue that would cause the demo app to crash 2021-05-29 03:10:10 +08:00
Kaixin L e397952e6f Silenced two warnings with Xcode 12.5 and Swift 5.4 2021-05-29 03:10:09 +08:00
Ivan Vorobei 314e83dd26 Updated Readme. 2021-05-22 10:31:18 +03:00
Ivan Vorobei 965667b373 Update Readme. 2021-04-21 10:43:44 +03:00
Ivan Vorobei 9eea2c3259 Fix links. 2021-03-25 21:49:10 +03:00
Ivan Vorobei 7e58625b8e Fix readme 2021-02-14 11:52:28 +03:00
9 changed files with 54 additions and 34 deletions
-2
View File
@@ -1,2 +0,0 @@
patreon: varabeis
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;
};
@@ -21,7 +21,7 @@
import UIKit
@objc public protocol SPStorkControllerConfirmDelegate: class {
@objc public protocol SPStorkControllerConfirmDelegate: AnyObject {
var needConfirm: Bool { get }
@@ -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)
})
+37 -23
View File
@@ -1,17 +1,24 @@
# SPStorkController
<a href="https://itunes.apple.com/app/id1446635818" target="_blank"><img align="left" src="https://github.com/varabeis/SPStorkController/blob/master/Resources/Preview.gif" width="400"/></a>
<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. Help if you need customize height or suppport modal style in iOS 12.
Simple adding close button and centering arrow indicator. Customizable height. Using custom `TransitionDelegate`.
Alert you can find in [SPAlert](https://github.com/varabeis/SPAlert) project. It support diffrents presets, some animatable.
Alert you can find in [SPAlert](https://github.com/ivanvorobei/SPAlert) project. It support diffrents presets, some animatable.
If you like the project, don't forget to `put star ★` and follow me on GitHub:
[![https://github.com/varabeis](https://github.com/varabeis/Readme/blob/main/Buttons/follow-me-varabeis.svg)](https://github.com/varabeis)
<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
@@ -70,7 +77,7 @@ The [Swift Package Manager](https://swift.org/package-manager/) is a tool for ma
To integrate `SPStorkController` into your Xcode project using Xcode 11, specify it in `Project > Swift Packages`:
```ogdl
https://github.com/varabeis/SPStorkController
https://github.com/ivanvorobei/SPStorkController
```
### Manually
@@ -255,9 +262,9 @@ class ModalController: UIViewController {
You only need to add a navigation bar to the main view, it will automatically layout. Use style `.stork` in init of `SPFakeBarView`. Here is visual preview with Navigation Bar and without it:
<img src="https://github.com/varabeis/SPStorkController/blob/master/Resources/Navigation%20Bar.jpg"/>
<img src="https://github.com/ivanvorobei/SPStorkController/blob/master/Resources/Navigation%20Bar.jpg"/>
To use it, you need to install [SPFakeBar](https://github.com/varabeis/SPFakeBar) pod:
To use it, you need to install [SPFakeBar](https://github.com/ivanvorobei/SPFakeBar) pod:
```ruby
pod 'SPFakeBar'
@@ -364,29 +371,36 @@ Its needed for correct presentation and dismissal of all modal controllers.
Apple present in `WWDC 2019` new modal presentation style - `Sheets`. It ready use Support interactive dismiss and work with navigations bars. Available since iOS 13. I will add more information when I study this in more detail. You can see presentation [here](https://developer.apple.com/videos/play/wwdc2019/224/).
<a href="https://developer.apple.com/videos/play/wwdc2019/224/" target="_blank"><img align="center" src="https://github.com/varabeis/SPStorkController/blob/master/Resources/Sheets.png"/></a>
<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>
## Other Projects
#### [SPAlert](https://github.com/varabeis/SPAlert)
You can find this alerts in AppStore after feedback or after added song to library in Apple Music. Contains popular Done, Heart presets and many other. Done preset present with draw path animation like original. Also available simple present message without icon. Usage in one line code.
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.
#### [SPPerspective](https://github.com/varabeis/SPPerspective)
Animation of widgets from iOS 14. 3D transform with dynamic shadow. Look [video preview](https://ivanvorobei.by/github/spperspective/video-preview). Available deep customisation 3D and shadow. Also you can use static transform without animation.
<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>
#### [SPPermissions](https://github.com/varabeis/SPPermissions)
Using for request and check state of permissions. Available native UI for request multiple permissions at the same time. Simple integration and usage like 2 lines code.
## Russian Community
#### [SPDiffable](https://github.com/varabeis/SPDiffable)
Simplifies working with animated changes in table and collections. Apple's diffable API required models for each object type. If you want use it in many place, you pass time to implement it and get over duplicates codes. This project help do it elegant with shared models and special cell providers. Support side bar iOS14 and already has native cell providers and views.
Подписывайся в телеграмм-канал, если хочешь получать уведомления о новых туториалах.<br>
Со сложными и непонятными задачами помогут в чате.
#### [SparrowKit](https://github.com/varabeis/SparrowKit)
Collection of native Swift extensions to boost your development. Support tvOS and watchOS.
<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>
Для русского комьюнити
Видео-туториалы выклыдываю на [YouTube](https://tutorials.ivanvorobei.by/youtube):
## Russian-specking Community
В телеграм-канале [Код Воробья](https://ivanvorobei.by/sparrowcode/telegram) пишу о iOS разработке. Видео-туториалы выклыдываю на [YouTube](https://ivanvorobei.by/youtube):
[![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://ivanvorobei.by/youtube)
[![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://tutorials.ivanvorobei.by/youtube)
+3 -3
View File
@@ -1,10 +1,10 @@
Pod::Spec.new do |s|
s.name = "SPStorkController"
s.version = "1.8.4"
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/varabeis/SPStorkController"
s.source = { :git => "https://github.com/varabeis/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" }