Compare commits

..

22 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
Ivan Vorobei 70a0a261cc Update version 2020-12-20 01:02:07 +03:00
Ivan Vorobei 214fe1cffd Update 2020-12-20 00:59:54 +03:00
Ivan Vorobei 5222fc5a13 Update README.md 2020-10-02 10:11:25 +03:00
Ivan Vorobei b4bf86c56b Update README.md 2020-07-02 22:24:16 +03:00
Ivan Vorobei e0ba55a4a8 Update README.md 2020-07-02 22:23:47 +03:00
Ivan Vorobei 5696d657db Update README.md 2020-07-02 22:22:08 +03:00
Ivan Vorobei b698f106af Update README.md 2020-07-02 22:21:46 +03:00
Ivan Vorobei ccd0be4f01 Update README.md 2020-07-02 22:21:24 +03:00
Ivan Vorobei 682208fa21 Update readme 2020-07-02 22:21:04 +03:00
Ivan Vorobei c7d9c7730a Remove xcode-shop link 2020-07-02 22:18:10 +03:00
Ivan Vorobei dd43a80271 Update sponsors and readme 2020-07-02 22:17:36 +03:00
27 changed files with 75 additions and 78 deletions
-8
View File
@@ -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;
};
@@ -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)
})
+1 -1
View File
@@ -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")
]
)
+38 -41
View File
@@ -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.
[![xcode-shop.com](https://github.com/ivanvorobei/SPPermissions/blob/master/Assets/Buttons/xcode-shop.svg)](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](https://github.com/ivanvorobei/SPPermissions/blob/master/Assets/Buttons/follow-me-on-github.svg)](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.
[![Tutorials on YouTube](https://cdn.ivanvorobei.by/github/readme/youtube-preview.jpg)](https://tutorials.ivanvorobei.by/youtube)
+4 -4
View File
@@ -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
+3 -3
View File
@@ -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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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