├── .gitignore ├── .travis.yml ├── AlertUI.podspec ├── AlertUI ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── AlertControllerButtons.swift │ ├── AlertControllerOptions.swift │ └── AlertView.swift ├── Example ├── AlertUI.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── AlertUI-Example.xcscheme ├── AlertUI.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── AlertUI │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── New Folder │ │ │ ├── Contents.json │ │ │ └── icon_2.imageset │ │ │ │ ├── 001-bin.png │ │ │ │ └── Contents.json │ │ ├── avatar.imageset │ │ │ ├── 18473439.png │ │ │ └── Contents.json │ │ ├── block.imageset │ │ │ ├── Contents.json │ │ │ └── lock.png │ │ ├── follow.imageset │ │ │ ├── Contents.json │ │ │ └── follow.png │ │ ├── notification.imageset │ │ │ ├── Contents.json │ │ │ └── notification.png │ │ └── ok.imageset │ │ │ ├── Contents.json │ │ │ └── ok.png │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── AlertUI.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── AlertUI │ │ ├── AlertUI-Info.plist │ │ ├── AlertUI-dummy.m │ │ ├── AlertUI-prefix.pch │ │ ├── AlertUI-umbrella.h │ │ ├── AlertUI.modulemap │ │ └── AlertUI.xcconfig │ │ ├── Pods-AlertUI_Example │ │ ├── Pods-AlertUI_Example-Info.plist │ │ ├── Pods-AlertUI_Example-acknowledgements.markdown │ │ ├── Pods-AlertUI_Example-acknowledgements.plist │ │ ├── Pods-AlertUI_Example-dummy.m │ │ ├── Pods-AlertUI_Example-frameworks.sh │ │ ├── Pods-AlertUI_Example-umbrella.h │ │ ├── Pods-AlertUI_Example.debug.xcconfig │ │ ├── Pods-AlertUI_Example.modulemap │ │ └── Pods-AlertUI_Example.release.xcconfig │ │ └── Pods-AlertUI_Tests │ │ ├── Pods-AlertUI_Tests-Info.plist │ │ ├── Pods-AlertUI_Tests-acknowledgements.markdown │ │ ├── Pods-AlertUI_Tests-acknowledgements.plist │ │ ├── Pods-AlertUI_Tests-dummy.m │ │ ├── Pods-AlertUI_Tests-umbrella.h │ │ ├── Pods-AlertUI_Tests.debug.xcconfig │ │ ├── Pods-AlertUI_Tests.modulemap │ │ └── Pods-AlertUI_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/AlertUI.xcworkspace -scheme AlertUI-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /AlertUI.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint AlertUI.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'AlertUI' 11 | s.version = '0.0.3' 12 | s.swift_version = '5' 13 | s.summary = 'Awesome AlertUI' 14 | 15 | # This description is used to generate tags and improve search results. 16 | # * Think: What does it do? Why did you write it? What is the focus? 17 | # * Try to keep it short, snappy and to the point. 18 | # * Write the description between the DESC delimiters below. 19 | # * Finally, don't worry about the indent, CocoaPods strips it! 20 | 21 | s.description = <<-DESC 22 | 'Advanced of Alert with Image, Icons, Title, Messages, Buttons, and awesome design.'. 23 | DESC 24 | 25 | s.homepage = 'https://github.com/farisalbalawi/AlertUI' 26 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 27 | s.license = { :type => 'MIT', :file => 'LICENSE' } 28 | s.author = { 'Faris Albalawi' => 'developer.faris@gmail.com' } 29 | s.source = { :git => 'https://github.com/farisalbalawi/AlertUI.git', :tag => s.version.to_s } 30 | # s.social_media_url = 'https://twitter.com/' 31 | 32 | s.ios.deployment_target = '13.0' 33 | 34 | s.source_files = 'AlertUI/Classes/*.swift' 35 | 36 | # s.resource_bundles = { 37 | # 'PinterestUISwift' => ['PinterestUISwift/Assets/*.png'] 38 | # } 39 | 40 | # s.public_header_files = 'Pod/Classes/**/*.h' 41 | s.frameworks = 'UIKit' 42 | # s.dependency 'AFNetworking', '~> 2.3' 43 | end 44 | -------------------------------------------------------------------------------- /AlertUI/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/AlertUI/Assets/.gitkeep -------------------------------------------------------------------------------- /AlertUI/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/AlertUI/Classes/.gitkeep -------------------------------------------------------------------------------- /AlertUI/Classes/AlertControllerButtons.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AlertControllerButtons.swift 3 | // AlertUI 4 | // 5 | // Created by Faris Albalawi on 11/5/19. 6 | // 7 | 8 | import UIKit 9 | 10 | 11 | public struct AlertActionButtons { 12 | let buttonAction: [String: () -> Void] 13 | let titleColor: UIColor? 14 | let backgroundColor: UIColor? 15 | let borderColor: UIColor? 16 | let borderWidth: CGFloat? 17 | 18 | public init(buttonAction:[String: () -> Void], 19 | titleColor:UIColor, 20 | backgroundColor:UIColor?, 21 | borderColor:UIColor?, 22 | borderWidth:CGFloat? 23 | ){ 24 | self.buttonAction = buttonAction 25 | self.titleColor = titleColor 26 | self.backgroundColor = backgroundColor 27 | self.borderColor = borderColor 28 | self.borderWidth = borderWidth 29 | } 30 | 31 | } 32 | 33 | class AlertControllerButtons: UIViewController { 34 | 35 | private var AlertView: UIView = { 36 | let view = UIView() 37 | view.translatesAutoresizingMaskIntoConstraints = false 38 | view.backgroundColor = .white 39 | view.layer.masksToBounds = true 40 | return view 41 | }() 42 | 43 | private var AlertMassage: UILabel = { 44 | let message = UILabel() 45 | message.numberOfLines = 0 46 | message.font = UIFont.systemFont(ofSize: 18, weight: UIFont.Weight.light) 47 | message.textAlignment = .center 48 | message.translatesAutoresizingMaskIntoConstraints = false 49 | return message 50 | }() 51 | 52 | 53 | private var AlertTitle: UILabel = { 54 | let Title = UILabel() 55 | Title.numberOfLines = 0 56 | Title.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.black) 57 | Title.textAlignment = .center 58 | Title.translatesAutoresizingMaskIntoConstraints = false 59 | return Title 60 | }() 61 | 62 | private var textStackView: UIStackView = { 63 | let stackView = UIStackView() 64 | stackView.backgroundColor = .clear 65 | stackView.translatesAutoresizingMaskIntoConstraints = false 66 | stackView.axis = .vertical 67 | stackView.layoutMargins = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15) 68 | stackView.isLayoutMarginsRelativeArrangement = true 69 | return stackView 70 | }() 71 | 72 | private var ActionStackView: UIStackView = { 73 | let stackView = UIStackView() 74 | stackView.backgroundColor = .clear 75 | stackView.translatesAutoresizingMaskIntoConstraints = false 76 | stackView.axis = .vertical 77 | stackView.distribution = .fillEqually 78 | stackView.layoutMargins = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15) 79 | stackView.isLayoutMarginsRelativeArrangement = true 80 | return stackView 81 | }() 82 | 83 | private var IconsStackView: UIStackView = { 84 | let stackView = UIStackView() 85 | stackView.backgroundColor = .clear 86 | stackView.alignment = .center 87 | stackView.axis = .vertical 88 | stackView.translatesAutoresizingMaskIntoConstraints = false 89 | stackView.isLayoutMarginsRelativeArrangement = true 90 | return stackView 91 | }() 92 | 93 | private var buttonDismiss: UIButton = { 94 | let Button = UIButton() 95 | Button.setTitle("Cancel", for: .normal) 96 | Button.setTitleColor(.black, for: .normal) 97 | Button.titleLabel?.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.black) 98 | Button.backgroundColor = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0) 99 | Button.layer.borderColor = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0).cgColor 100 | Button.layer.borderWidth = 3 101 | Button.layer.cornerRadius = 25 102 | Button.translatesAutoresizingMaskIntoConstraints = false 103 | Button.addTarget(self, action:#selector(didPressCancelButton(_:)), for: UIControl.Event.touchUpInside) 104 | return Button 105 | }() 106 | 107 | 108 | private var lineView: UIView = { 109 | let view = UIView() 110 | view.translatesAutoresizingMaskIntoConstraints = false 111 | view.backgroundColor = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0) 112 | view.layer.cornerRadius = 0 113 | view.layer.masksToBounds = true 114 | return view 115 | }() 116 | 117 | 118 | // MARK: variables 119 | var Message: String? 120 | var MessageColor: UIColor? 121 | var Title: String? 122 | var TitleColor: UIColor? 123 | var DismissTitle: String? 124 | var DismissColor: UIColor? 125 | var DismissTitleColor: UIColor? 126 | var icons: UIImage? 127 | var ArrayButtons: [AlertActionButtons]? 128 | var backgroundColor: UIColor? 129 | var lineColor: UIColor? 130 | 131 | override func viewDidLoad() { 132 | super.viewDidLoad() 133 | 134 | // MARK: Subview 135 | self.AlertView.layer.cornerRadius = 20 136 | self.AlertView.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner] 137 | 138 | self.view.addSubview(AlertView) 139 | self.AlertView.addSubview(buttonDismiss) 140 | self.AlertView.addSubview(ActionStackView) 141 | self.AlertView.addSubview(IconsStackView) 142 | self.AlertView.addSubview(lineView) 143 | self.AlertView.addSubview(textStackView) 144 | 145 | 146 | self.textStackView.addArrangedSubview(AlertTitle) 147 | self.textStackView.addArrangedSubview(AlertMassage) 148 | self.textStackView.setCustomSpacing(5, after: AlertTitle) 149 | 150 | // MARK: Layout 151 | NSLayoutConstraint.activate([ 152 | self.AlertView.widthAnchor.constraint(equalToConstant: self.view.frame.width), 153 | self.AlertView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor), 154 | self.AlertView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor), 155 | 156 | 157 | 158 | 159 | self.IconsStackView.topAnchor.constraint(equalTo: self.AlertView.topAnchor,constant: 10), 160 | self.IconsStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 161 | self.IconsStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 162 | 163 | 164 | 165 | 166 | self.textStackView.topAnchor.constraint(equalTo: self.IconsStackView.bottomAnchor,constant: 10), 167 | self.textStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 168 | self.textStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 169 | 170 | self.lineView.heightAnchor.constraint(equalToConstant: 1), 171 | self.lineView.widthAnchor.constraint(equalToConstant: self.view.frame.width), 172 | self.lineView.topAnchor.constraint(equalTo: self.textStackView.bottomAnchor,constant: 5), 173 | self.lineView.centerXAnchor.constraint(equalTo: self.AlertView.centerXAnchor), 174 | 175 | self.ActionStackView.topAnchor.constraint(equalTo: self.lineView.bottomAnchor,constant: 5), 176 | self.ActionStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 177 | self.ActionStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 178 | self.ActionStackView.bottomAnchor.constraint(equalTo: self.buttonDismiss.topAnchor,constant: -10), 179 | 180 | self.buttonDismiss.heightAnchor.constraint(equalToConstant: 50), 181 | self.buttonDismiss.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor,constant: -15), 182 | self.buttonDismiss.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor,constant: 15), 183 | self.buttonDismiss.bottomAnchor.constraint(equalTo: self.AlertView.bottomAnchor,constant: -25), 184 | ]) 185 | 186 | 187 | // MARK: CALL FUNC 188 | self.setUpIcons() 189 | self.setView() 190 | self.setUpCancelDismiss() 191 | self.setUpButton() 192 | self.setUpTitle() 193 | 194 | if let first = self.presentingViewController { 195 | let background = UIView() 196 | background.alpha = 0 197 | background.tag = 100 198 | first.view.addSubview(background) 199 | background.frame = first.view.frame 200 | background.backgroundColor = .black 201 | UIView.animate(withDuration: 0.5, animations: { 202 | background.alpha = 0.5 203 | }) 204 | } 205 | 206 | } 207 | 208 | 209 | // MARK: SET VIEW 210 | func setView() { 211 | if backgroundColor != nil { 212 | self.AlertView.backgroundColor = backgroundColor! 213 | } 214 | 215 | if lineColor != nil { 216 | lineView.backgroundColor = lineColor! 217 | } 218 | 219 | } 220 | 221 | // MARK: SET UP ICONS IMAGE 222 | func setUpIcons() { 223 | if icons != nil { 224 | let iconsImage = UIImageView(image: icons!) 225 | iconsImage.backgroundColor = .clear 226 | iconsImage.layer.cornerRadius = 25 227 | iconsImage.layer.masksToBounds = true 228 | iconsImage.translatesAutoresizingMaskIntoConstraints = false 229 | iconsImage.widthAnchor.constraint(equalToConstant: 50).isActive = true 230 | iconsImage.heightAnchor.constraint(equalToConstant: 50).isActive = true 231 | self.IconsStackView.addArrangedSubview(iconsImage) 232 | } 233 | } 234 | 235 | 236 | // MARK: SET UP DISMISS BUTTON 237 | func setUpCancelDismiss() { 238 | if DismissTitle != nil { 239 | buttonDismiss.setTitle(DismissTitle!, for: .selected) 240 | } 241 | 242 | if DismissTitleColor != nil { 243 | buttonDismiss.setTitleColor(DismissTitleColor!, for: .normal) 244 | } 245 | 246 | if DismissColor != nil { 247 | buttonDismiss.backgroundColor = DismissColor! 248 | } else if DismissTitleColor != nil { 249 | buttonDismiss.layer.borderColor = DismissTitleColor!.cgColor 250 | } 251 | } 252 | 253 | 254 | // MARK: SET UP TITLE AND MESSAGE 255 | func setUpTitle(){ 256 | if Message == nil { 257 | self.AlertMassage.isHidden = true 258 | } else { 259 | self.AlertMassage.isHidden = false 260 | self.AlertMassage.text = Message 261 | if MessageColor != nil { 262 | AlertMassage.textColor = MessageColor! 263 | } 264 | } 265 | if Title == nil { 266 | self.AlertTitle.isHidden = true 267 | } else { 268 | self.AlertTitle.text = Title 269 | self.AlertTitle.isHidden = false 270 | if TitleColor != nil { 271 | AlertTitle.textColor = TitleColor! 272 | } 273 | } 274 | 275 | if Message == nil && Title == nil { 276 | self.lineView.isHidden = true 277 | self.lineView.isHidden = true 278 | } 279 | } 280 | 281 | // MARK: SET UP BUTTON 282 | func setUpButton() { 283 | var count = 0 284 | if ArrayButtons != nil { 285 | for i in ArrayButtons! { 286 | // MARK: SET BUTTON 287 | let allKeys = Array(i.buttonAction.keys) 288 | let buttonTitle: String = allKeys[0] 289 | let Button = UIButton() 290 | Button.setTitle(buttonTitle, for: .normal) 291 | Button.titleLabel?.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.bold) 292 | Button.translatesAutoresizingMaskIntoConstraints = false 293 | Button.addTarget(self, action:#selector(didPressButton(_:)), for: UIControl.Event.touchUpInside) 294 | Button.tag = count 295 | Button.contentHorizontalAlignment = .center 296 | 297 | Button.layer.borderWidth = 3 298 | Button.layer.cornerRadius = 22.5 299 | 300 | if i.titleColor != nil { 301 | Button.setTitleColor(i.titleColor, for: .normal) 302 | } else { 303 | Button.setTitleColor(UIColor.black, for: .normal) 304 | } 305 | 306 | if i.backgroundColor != nil { 307 | Button.backgroundColor = i.backgroundColor 308 | } else { 309 | Button.backgroundColor = UIColor.clear 310 | } 311 | 312 | if i.borderColor != nil { 313 | Button.layer.borderColor = i.borderColor!.cgColor 314 | } else { 315 | Button.layer.borderColor = UIColor.clear.cgColor 316 | } 317 | 318 | if i.borderWidth != nil { 319 | Button.layer.borderWidth = i.borderWidth! 320 | } else { 321 | Button.layer.borderWidth = 0 322 | } 323 | 324 | 325 | // MARK: SET UP STACK VIRE OF BUTTOM 326 | let stackView = UIStackView() 327 | stackView.backgroundColor = .clear 328 | stackView.translatesAutoresizingMaskIntoConstraints = false 329 | stackView.axis = .horizontal 330 | stackView.layoutMargins = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) 331 | stackView.isLayoutMarginsRelativeArrangement = true 332 | stackView.addArrangedSubview(Button) 333 | stackView.heightAnchor.constraint(equalToConstant: 50).isActive = true 334 | 335 | 336 | // MARK: ADD STATCK TO ActionStackView 337 | self.ActionStackView.addArrangedSubview(stackView) 338 | self.ActionStackView.setCustomSpacing(8, after: stackView) 339 | 340 | count += 1 341 | 342 | } 343 | } 344 | } 345 | 346 | 347 | 348 | 349 | // MARK: Button button 350 | @objc func didPressButton(_ sender: UIButton) { 351 | let generator = UIImpactFeedbackGenerator(style: .heavy) 352 | generator.impactOccurred() 353 | if ArrayButtons != nil { 354 | let dic = ArrayButtons![sender.tag] 355 | for (_,value) in dic.buttonAction { 356 | let action: () -> Void = value 357 | action() 358 | self.dismiss(animated: true, completion: nil) 359 | if let first = self.presentingViewController { 360 | for subview in first.view.subviews { 361 | UIView.animate(withDuration: 0.5, animations: { 362 | if (subview.tag == 100) { 363 | subview.alpha = 0 364 | } 365 | }, completion: { (finished: Bool) in 366 | if finished{ 367 | if (subview.tag == 100) { 368 | subview.removeFromSuperview() 369 | } 370 | } 371 | }) 372 | } 373 | } 374 | } 375 | } 376 | } 377 | 378 | 379 | 380 | // MARK: Dismiss button 381 | @objc func didPressCancelButton(_ sender: UIButton) { 382 | self.dismiss(animated: true, completion: nil) 383 | if let first = self.presentingViewController { 384 | for subview in first.view.subviews { 385 | UIView.animate(withDuration: 0.5, animations: { 386 | if (subview.tag == 100) { 387 | subview.alpha = 0 388 | } 389 | }, completion: { (finished: Bool) in 390 | if finished{ 391 | if (subview.tag == 100) { 392 | subview.removeFromSuperview() 393 | } 394 | } 395 | }) 396 | } 397 | } 398 | } 399 | 400 | 401 | } 402 | 403 | 404 | public extension UIViewController { 405 | 406 | func ShowAlertControllerButtons(icons: UIImage?, 407 | title: String?, 408 | titleColor: UIColor?, 409 | messageColor: UIColor?, 410 | message:String?, 411 | backgroundColor:UIColor?, 412 | lineColor: UIColor?, 413 | DismissTitle: String?, 414 | DismissColor: UIColor?, 415 | DismissTitleColor: UIColor?, 416 | actions: [AlertActionButtons]?) { 417 | let alertVC = AlertControllerButtons() 418 | alertVC.icons = icons 419 | alertVC.Title = title 420 | alertVC.TitleColor = titleColor 421 | alertVC.Message = message 422 | alertVC.MessageColor = messageColor 423 | alertVC.backgroundColor = backgroundColor 424 | alertVC.lineColor = lineColor 425 | alertVC.ArrayButtons = actions 426 | alertVC.DismissTitle = DismissTitle 427 | alertVC.DismissColor = DismissColor 428 | alertVC.DismissTitleColor = DismissTitleColor 429 | alertVC.modalTransitionStyle = .coverVertical 430 | alertVC.modalPresentationStyle = .custom 431 | self.present(alertVC, animated: true, completion: nil) 432 | 433 | 434 | } 435 | 436 | } 437 | -------------------------------------------------------------------------------- /AlertUI/Classes/AlertControllerOptions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AlertControllerOptions.swift 3 | // AlertUI 4 | // 5 | // Created by Faris Albalawi on 11/5/19. 6 | // 7 | 8 | import UIKit 9 | 10 | public struct AlertAction { 11 | let buttonAction: [String: () -> Void] 12 | let buttonColor: UIColor 13 | let imageName: String? 14 | let imageColor: UIColor? 15 | 16 | public init(buttonAction:[String: () -> Void], buttonColor: UIColor, imageName:String? ,imageColor:UIColor? ){ 17 | self.buttonAction = buttonAction 18 | self.buttonColor = buttonColor 19 | self.imageName = imageName 20 | self.imageColor = imageColor 21 | } 22 | 23 | } 24 | 25 | 26 | class AlertControllerOptions: UIViewController { 27 | 28 | 29 | private var AlertView: UIView = { 30 | let view = UIView() 31 | view.translatesAutoresizingMaskIntoConstraints = false 32 | view.backgroundColor = .white 33 | view.layer.masksToBounds = true 34 | return view 35 | }() 36 | 37 | private var AlertMassage: UILabel = { 38 | let message = UILabel() 39 | message.numberOfLines = 0 40 | message.font = UIFont.systemFont(ofSize: 18, weight: UIFont.Weight.light) 41 | message.textAlignment = .center 42 | message.translatesAutoresizingMaskIntoConstraints = false 43 | return message 44 | }() 45 | 46 | 47 | private var AlertTitle: UILabel = { 48 | let Title = UILabel() 49 | Title.numberOfLines = 0 50 | Title.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.black) 51 | Title.textAlignment = .center 52 | Title.translatesAutoresizingMaskIntoConstraints = false 53 | return Title 54 | }() 55 | 56 | private var textStackView: UIStackView = { 57 | let stackView = UIStackView() 58 | stackView.backgroundColor = .clear 59 | stackView.translatesAutoresizingMaskIntoConstraints = false 60 | stackView.axis = .vertical 61 | stackView.layoutMargins = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15) 62 | stackView.isLayoutMarginsRelativeArrangement = true 63 | return stackView 64 | }() 65 | 66 | private var ActionStackView: UIStackView = { 67 | let stackView = UIStackView() 68 | stackView.backgroundColor = .clear 69 | stackView.translatesAutoresizingMaskIntoConstraints = false 70 | stackView.axis = .vertical 71 | stackView.distribution = .fillEqually 72 | stackView.layoutMargins = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15) 73 | stackView.isLayoutMarginsRelativeArrangement = true 74 | return stackView 75 | }() 76 | 77 | private var IconsStackView: UIStackView = { 78 | let stackView = UIStackView() 79 | stackView.backgroundColor = .clear 80 | stackView.alignment = .center 81 | stackView.axis = .vertical 82 | stackView.translatesAutoresizingMaskIntoConstraints = false 83 | stackView.isLayoutMarginsRelativeArrangement = true 84 | return stackView 85 | }() 86 | 87 | private var buttonDismiss: UIButton = { 88 | let Button = UIButton() 89 | Button.setTitle("Cancel", for: .normal) 90 | Button.setTitleColor(.black, for: .normal) 91 | Button.titleLabel?.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.black) 92 | Button.backgroundColor = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0) 93 | Button.layer.cornerRadius = 22.5 94 | Button.translatesAutoresizingMaskIntoConstraints = false 95 | Button.addTarget(self, action:#selector(didPressCancelButton(_:)), for: UIControl.Event.touchUpInside) 96 | return Button 97 | }() 98 | 99 | 100 | private var lineView: UIView = { 101 | let view = UIView() 102 | view.translatesAutoresizingMaskIntoConstraints = false 103 | view.backgroundColor = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0) 104 | view.layer.cornerRadius = 0 105 | view.layer.masksToBounds = true 106 | return view 107 | }() 108 | 109 | 110 | 111 | // MARK: variables 112 | var Message: String? 113 | var MessageColor: UIColor? 114 | var Title: String? 115 | var TitleColor: UIColor? 116 | var DismissTitle: String? 117 | var DismissColor: UIColor? 118 | var DismissTitleColor: UIColor? 119 | var icons: UIImage? 120 | var ArrayAction: [AlertAction]? 121 | var backgroundColor: UIColor? 122 | var lineColor: UIColor? 123 | 124 | 125 | 126 | override func viewDidLoad() { 127 | super.viewDidLoad() 128 | 129 | // MARK: Subview 130 | self.AlertView.layer.cornerRadius = 20 131 | self.AlertView.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner] 132 | 133 | self.view.addSubview(AlertView) 134 | self.AlertView.addSubview(buttonDismiss) 135 | self.AlertView.addSubview(ActionStackView) 136 | self.AlertView.addSubview(IconsStackView) 137 | self.AlertView.addSubview(lineView) 138 | self.AlertView.addSubview(textStackView) 139 | 140 | 141 | self.textStackView.addArrangedSubview(AlertTitle) 142 | self.textStackView.addArrangedSubview(AlertMassage) 143 | self.textStackView.setCustomSpacing(5, after: AlertTitle) 144 | 145 | // MARK: Layout 146 | NSLayoutConstraint.activate([ 147 | self.AlertView.widthAnchor.constraint(equalToConstant: self.view.frame.width), 148 | self.AlertView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor), 149 | self.AlertView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor), 150 | 151 | 152 | 153 | 154 | self.IconsStackView.topAnchor.constraint(equalTo: self.AlertView.topAnchor,constant: 10), 155 | self.IconsStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 156 | self.IconsStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 157 | 158 | 159 | 160 | 161 | self.textStackView.topAnchor.constraint(equalTo: self.IconsStackView.bottomAnchor,constant: 10), 162 | self.textStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 163 | self.textStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 164 | 165 | self.lineView.heightAnchor.constraint(equalToConstant: 1), 166 | self.lineView.widthAnchor.constraint(equalToConstant: self.view.frame.width), 167 | self.lineView.topAnchor.constraint(equalTo: self.textStackView.bottomAnchor,constant: 5), 168 | self.lineView.centerXAnchor.constraint(equalTo: self.AlertView.centerXAnchor), 169 | 170 | self.ActionStackView.topAnchor.constraint(equalTo: self.lineView.bottomAnchor,constant: 15), 171 | self.ActionStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 172 | self.ActionStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 173 | self.ActionStackView.bottomAnchor.constraint(equalTo: self.buttonDismiss.topAnchor,constant: -20), 174 | 175 | self.buttonDismiss.heightAnchor.constraint(equalToConstant: 50), 176 | self.buttonDismiss.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor,constant: -15), 177 | self.buttonDismiss.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor,constant: 15), 178 | self.buttonDismiss.bottomAnchor.constraint(equalTo: self.AlertView.bottomAnchor,constant: -25), 179 | ]) 180 | 181 | 182 | // MARK: CALL FUNC 183 | self.setUpIcons() 184 | self.setView() 185 | self.setUpCancelDismiss() 186 | self.setUpButton() 187 | self.setUpTitle() 188 | 189 | 190 | 191 | if let first = self.presentingViewController { 192 | let background = UIView() 193 | background.alpha = 0 194 | background.tag = 100 195 | first.view.addSubview(background) 196 | background.frame = first.view.frame 197 | background.backgroundColor = .black 198 | UIView.animate(withDuration: 0.5, animations: { 199 | background.alpha = 0.5 200 | }) 201 | } 202 | 203 | } 204 | 205 | // MARK: SET VIEW 206 | func setView() { 207 | if backgroundColor != nil { 208 | self.AlertView.backgroundColor = backgroundColor! 209 | } 210 | 211 | if lineColor != nil { 212 | lineView.backgroundColor = lineColor! 213 | } 214 | 215 | } 216 | 217 | // MARK: SET UP ICONS IMAGE 218 | func setUpIcons() { 219 | if icons != nil { 220 | let iconsImage = UIImageView(image: icons!) 221 | iconsImage.backgroundColor = .clear 222 | iconsImage.layer.cornerRadius = 25 223 | iconsImage.layer.masksToBounds = true 224 | iconsImage.translatesAutoresizingMaskIntoConstraints = false 225 | iconsImage.widthAnchor.constraint(equalToConstant: 50).isActive = true 226 | iconsImage.heightAnchor.constraint(equalToConstant: 50).isActive = true 227 | self.IconsStackView.addArrangedSubview(iconsImage) 228 | } 229 | } 230 | 231 | 232 | // MARK: SET UP DISMISS BUTTON 233 | func setUpCancelDismiss() { 234 | if DismissTitle != nil { 235 | buttonDismiss.setTitle(DismissTitle!, for: .selected) 236 | } 237 | 238 | if DismissTitleColor != nil { 239 | buttonDismiss.setTitleColor(DismissTitleColor!, for: .normal) 240 | } 241 | 242 | if DismissColor != nil { 243 | buttonDismiss.backgroundColor = DismissColor! 244 | } else if DismissTitleColor != nil { 245 | buttonDismiss.layer.borderColor = DismissTitleColor!.cgColor 246 | } 247 | } 248 | 249 | 250 | // MARK: SET UP TITLE AND MESSAGE 251 | func setUpTitle(){ 252 | if Message == nil { 253 | self.AlertMassage.isHidden = true 254 | } else { 255 | self.AlertMassage.isHidden = false 256 | self.AlertMassage.text = Message 257 | if MessageColor != nil { 258 | AlertMassage.textColor = MessageColor! 259 | } 260 | } 261 | if Title == nil { 262 | self.AlertTitle.isHidden = true 263 | } else { 264 | self.AlertTitle.text = Title 265 | self.AlertTitle.isHidden = false 266 | if TitleColor != nil { 267 | AlertTitle.textColor = TitleColor! 268 | } 269 | } 270 | 271 | if Message == nil && Title == nil && icons != nil { 272 | self.lineView.isHidden = true 273 | self.lineView.isHidden = true 274 | } 275 | } 276 | 277 | // MARK: SET UP BUTTON 278 | func setUpButton() { 279 | var count = 0 280 | if ArrayAction != nil { 281 | for i in ArrayAction! { 282 | // MARK: SET BUTTON 283 | let allKeys = Array(i.buttonAction.keys) 284 | let buttonTitle: String = allKeys[0] 285 | let Button = UIButton() 286 | Button.setTitle(buttonTitle, for: .normal) 287 | Button.setTitleColor(i.buttonColor, for: .normal) 288 | Button.titleLabel?.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.bold) 289 | Button.backgroundColor = UIColor.clear 290 | Button.translatesAutoresizingMaskIntoConstraints = false 291 | Button.addTarget(self, action:#selector(didPressButton(_:)), for: UIControl.Event.touchUpInside) 292 | Button.tag = count 293 | Button.contentHorizontalAlignment = .left 294 | 295 | // MARK: SET IMAGE 296 | var image = UIImageView() 297 | image.translatesAutoresizingMaskIntoConstraints = false 298 | 299 | 300 | // MARK: SET UP STACK VIRE OF BUTTOM 301 | let stackView = UIStackView() 302 | stackView.backgroundColor = .clear 303 | stackView.translatesAutoresizingMaskIntoConstraints = false 304 | stackView.axis = .horizontal 305 | stackView.layoutMargins = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15) 306 | stackView.isLayoutMarginsRelativeArrangement = true 307 | 308 | 309 | 310 | 311 | if i.imageName != nil { 312 | let imageName = UIImage(named: "\(i.imageName!)")?.withRenderingMode(.alwaysTemplate) 313 | image = UIImageView(image: imageName) 314 | stackView.addArrangedSubview(image) 315 | image.widthAnchor.constraint(equalToConstant: 25).isActive = true 316 | image.heightAnchor.constraint(equalToConstant: 25).isActive = true 317 | stackView.setCustomSpacing(15, after: image) 318 | } 319 | 320 | if i.imageColor != nil { 321 | image.tintColor = i.imageColor! 322 | } 323 | 324 | stackView.addArrangedSubview(Button) 325 | 326 | 327 | // MARK: ADD STATCK TO ActionStackView 328 | self.ActionStackView.addArrangedSubview(stackView) 329 | self.ActionStackView.setCustomSpacing(30, after: stackView) 330 | 331 | count += 1 332 | 333 | } 334 | } 335 | } 336 | 337 | 338 | 339 | 340 | // MARK: Button button 341 | @objc func didPressButton(_ sender: UIButton) { 342 | let generator = UIImpactFeedbackGenerator(style: .heavy) 343 | generator.impactOccurred() 344 | if ArrayAction != nil { 345 | let dic = ArrayAction![sender.tag] 346 | for (_,value) in dic.buttonAction { 347 | let action: () -> Void = value 348 | action() 349 | self.dismiss(animated: true, completion: nil) 350 | if let first = self.presentingViewController { 351 | for subview in first.view.subviews { 352 | UIView.animate(withDuration: 0.5, animations: { 353 | if (subview.tag == 100) { 354 | subview.alpha = 0 355 | } 356 | }, completion: { (finished: Bool) in 357 | if finished{ 358 | if (subview.tag == 100) { 359 | subview.removeFromSuperview() 360 | } 361 | } 362 | }) 363 | } 364 | } 365 | } 366 | } 367 | } 368 | 369 | 370 | 371 | // MARK: Dismiss button 372 | @objc func didPressCancelButton(_ sender: UIButton) { 373 | self.dismiss(animated: true, completion: nil) 374 | if let first = self.presentingViewController { 375 | for subview in first.view.subviews { 376 | UIView.animate(withDuration: 0.5, animations: { 377 | if (subview.tag == 100) { 378 | subview.alpha = 0 379 | } 380 | }, completion: { (finished: Bool) in 381 | if finished{ 382 | if (subview.tag == 100) { 383 | subview.removeFromSuperview() 384 | } 385 | } 386 | }) 387 | } 388 | } 389 | } 390 | 391 | 392 | } 393 | 394 | 395 | 396 | public extension UIViewController { 397 | 398 | func showAlertControllerOptions(icons: UIImage?, 399 | title: String?, 400 | titleColor: UIColor?, 401 | messageColor: UIColor?, 402 | message:String?, 403 | backgroundColor:UIColor?, 404 | lineColor: UIColor?, 405 | DismissTitle: String?, 406 | DismissColor: UIColor?, 407 | DismissTitleColor: UIColor?, 408 | actions: [AlertAction]?) { 409 | let alertVC = AlertControllerOptions() 410 | alertVC.icons = icons 411 | alertVC.Title = title 412 | alertVC.TitleColor = titleColor 413 | alertVC.Message = message 414 | alertVC.MessageColor = messageColor 415 | alertVC.backgroundColor = backgroundColor 416 | alertVC.lineColor = lineColor 417 | alertVC.ArrayAction = actions 418 | alertVC.DismissTitle = DismissTitle 419 | alertVC.DismissColor = DismissColor 420 | alertVC.DismissTitleColor = DismissTitleColor 421 | alertVC.modalTransitionStyle = .coverVertical 422 | alertVC.modalPresentationStyle = .custom 423 | self.present(alertVC, animated: true, completion: nil) 424 | 425 | 426 | } 427 | 428 | } 429 | -------------------------------------------------------------------------------- /AlertUI/Classes/AlertView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AlertView.swift 3 | // AlertUI 4 | // 5 | // Created by Faris Albalawi on 11/5/19. 6 | // 7 | 8 | import UIKit 9 | 10 | class AlertView: UIViewController { 11 | 12 | private var AlertView: UIView = { 13 | let view = UIView() 14 | view.translatesAutoresizingMaskIntoConstraints = false 15 | view.backgroundColor = .white 16 | view.layer.cornerRadius = 20 17 | view.layer.masksToBounds = true 18 | return view 19 | }() 20 | 21 | private var AlertMassage: UILabel = { 22 | let message = UILabel() 23 | message.numberOfLines = 0 24 | message.font = UIFont.systemFont(ofSize: 18, weight: UIFont.Weight.light) 25 | message.textAlignment = .center 26 | message.translatesAutoresizingMaskIntoConstraints = false 27 | return message 28 | }() 29 | 30 | 31 | private var AlertTitle: UILabel = { 32 | let Title = UILabel() 33 | Title.numberOfLines = 0 34 | Title.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.black) 35 | Title.textAlignment = .center 36 | Title.translatesAutoresizingMaskIntoConstraints = false 37 | return Title 38 | }() 39 | 40 | 41 | private var textStackView: UIStackView = { 42 | let stackView = UIStackView() 43 | stackView.backgroundColor = .clear 44 | stackView.translatesAutoresizingMaskIntoConstraints = false 45 | stackView.axis = .vertical 46 | stackView.layoutMargins = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15) 47 | stackView.isLayoutMarginsRelativeArrangement = true 48 | return stackView 49 | }() 50 | 51 | 52 | private var IconsStackView: UIStackView = { 53 | let stackView = UIStackView() 54 | stackView.backgroundColor = .clear 55 | stackView.alignment = .center 56 | stackView.axis = .vertical 57 | stackView.translatesAutoresizingMaskIntoConstraints = false 58 | stackView.isLayoutMarginsRelativeArrangement = true 59 | return stackView 60 | }() 61 | 62 | 63 | private var buttonDismiss: UIButton = { 64 | let Button = UIButton() 65 | Button.setTitle("Done", for: .normal) 66 | Button.setTitleColor(.black, for: .normal) 67 | Button.titleLabel?.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight.black) 68 | Button.backgroundColor = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0) 69 | Button.layer.borderColor = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0).cgColor 70 | Button.layer.borderWidth = 3 71 | Button.layer.cornerRadius = 30 72 | Button.translatesAutoresizingMaskIntoConstraints = false 73 | Button.addTarget(self, action:#selector(didPressDoneButton(_:)), for: UIControl.Event.touchUpInside) 74 | return Button 75 | }() 76 | 77 | 78 | 79 | // MARK: variables 80 | var Message: String? 81 | var MessageColor: UIColor? 82 | var Title: String? 83 | var TitleColor: UIColor? 84 | var icons: UIImage? 85 | var backgroundColor: UIColor? 86 | var DismissTitle: String? 87 | var DismissColor: UIColor? 88 | var DismissTitleColor: UIColor? 89 | 90 | override func viewDidLoad() { 91 | super.viewDidLoad() 92 | 93 | // MARK: Subview 94 | self.AlertView.layer.cornerRadius = 20 95 | self.AlertView.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner] 96 | 97 | self.view.addSubview(AlertView) 98 | self.AlertView.addSubview(buttonDismiss) 99 | self.AlertView.addSubview(IconsStackView) 100 | self.AlertView.addSubview(textStackView) 101 | 102 | self.textStackView.addArrangedSubview(AlertTitle) 103 | self.textStackView.addArrangedSubview(AlertMassage) 104 | self.textStackView.setCustomSpacing(10, after: AlertTitle) 105 | 106 | // MARK: CALL FUNC 107 | self.setUpIcons() 108 | self.setView() 109 | self.setUpCancelDismiss() 110 | self.setUpTitle() 111 | 112 | // MARK: Layout 113 | NSLayoutConstraint.activate([ 114 | 115 | self.AlertView.widthAnchor.constraint(equalToConstant: self.view.frame.width), 116 | self.AlertView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor), 117 | self.AlertView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor), 118 | 119 | self.IconsStackView.topAnchor.constraint(equalTo: self.AlertView.topAnchor,constant: 10), 120 | self.IconsStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 121 | self.IconsStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 122 | 123 | self.textStackView.topAnchor.constraint(equalTo: self.IconsStackView.bottomAnchor,constant: 15), 124 | self.textStackView.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor), 125 | self.textStackView.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor), 126 | self.textStackView.bottomAnchor.constraint(equalTo: self.buttonDismiss.topAnchor,constant: -20), 127 | 128 | self.buttonDismiss.heightAnchor.constraint(equalToConstant: 60), 129 | self.buttonDismiss.trailingAnchor.constraint(equalTo: self.AlertView.trailingAnchor,constant: -30), 130 | self.buttonDismiss.leadingAnchor.constraint(equalTo: self.AlertView.leadingAnchor,constant: 30), 131 | self.buttonDismiss.bottomAnchor.constraint(equalTo: self.AlertView.bottomAnchor,constant: -25), 132 | ]) 133 | 134 | 135 | if let first = self.presentingViewController { 136 | let background = UIView() 137 | background.alpha = 0 138 | background.tag = 100 139 | first.view.addSubview(background) 140 | background.frame = first.view.frame 141 | background.backgroundColor = .black 142 | UIView.animate(withDuration: 0.5, animations: { 143 | background.alpha = 0.5 144 | }) 145 | } 146 | 147 | 148 | 149 | } 150 | 151 | 152 | 153 | // MARK: SET VIEW 154 | func setView() { 155 | if backgroundColor != nil { 156 | self.AlertView.backgroundColor = backgroundColor! 157 | } 158 | 159 | } 160 | 161 | // MARK: SET UP ICONS IMAGE 162 | func setUpIcons() { 163 | if icons != nil { 164 | let iconsImage = UIImageView(image: icons!) 165 | iconsImage.backgroundColor = .clear 166 | iconsImage.translatesAutoresizingMaskIntoConstraints = false 167 | iconsImage.widthAnchor.constraint(equalToConstant: 120).isActive = true 168 | iconsImage.heightAnchor.constraint(equalToConstant: 120).isActive = true 169 | self.IconsStackView.addArrangedSubview(iconsImage) 170 | } 171 | } 172 | 173 | 174 | // MARK: SET UP DISMISS BUTTON 175 | func setUpCancelDismiss() { 176 | if DismissTitle != nil { 177 | buttonDismiss.setTitle(DismissTitle!, for: .normal) 178 | } 179 | 180 | if DismissTitleColor != nil { 181 | buttonDismiss.setTitleColor(DismissTitleColor!, for: .normal) 182 | } 183 | 184 | if DismissColor != nil { 185 | buttonDismiss.backgroundColor = DismissColor! 186 | } else if DismissTitleColor != nil { 187 | buttonDismiss.layer.borderColor = DismissTitleColor!.cgColor 188 | } 189 | } 190 | 191 | 192 | // MARK: SET UP TITLE AND MESSAGE 193 | func setUpTitle(){ 194 | if Message == nil { 195 | self.AlertMassage.isHidden = true 196 | } else { 197 | self.AlertMassage.isHidden = false 198 | self.AlertMassage.text = Message 199 | if MessageColor != nil { 200 | AlertMassage.textColor = MessageColor! 201 | } 202 | } 203 | if Title == nil { 204 | self.AlertTitle.isHidden = true 205 | } else { 206 | self.AlertTitle.text = Title 207 | self.AlertTitle.isHidden = false 208 | if TitleColor != nil { 209 | AlertTitle.textColor = TitleColor! 210 | } 211 | } 212 | } 213 | 214 | 215 | // MARK: Dismiss button 216 | @objc func didPressDoneButton(_ sender: UIButton) { 217 | self.dismiss(animated: true, completion: nil) 218 | if let first = self.presentingViewController { 219 | for subview in first.view.subviews { 220 | UIView.animate(withDuration: 0.5, animations: { 221 | if (subview.tag == 100) { 222 | subview.alpha = 0 223 | } 224 | }, completion: { (finished: Bool) in 225 | if finished{ 226 | if (subview.tag == 100) { 227 | subview.removeFromSuperview() 228 | } 229 | } 230 | }) 231 | } 232 | } 233 | 234 | } 235 | 236 | 237 | } 238 | 239 | 240 | public extension UIViewController { 241 | func showAlert( 242 | icons: UIImage?, 243 | title: String?, 244 | titleColor: UIColor?, 245 | messageColor: UIColor?, 246 | message:String?, 247 | backgroundColor:UIColor?, 248 | DismissTitle: String?, 249 | DismissColor: UIColor?, 250 | DismissTitleColor: UIColor?) { 251 | 252 | let alertVC = AlertView() 253 | alertVC.icons = icons 254 | alertVC.Title = title 255 | alertVC.TitleColor = titleColor 256 | alertVC.Message = message 257 | alertVC.MessageColor = messageColor 258 | alertVC.backgroundColor = backgroundColor 259 | alertVC.DismissTitle = DismissTitle 260 | alertVC.DismissColor = DismissColor 261 | alertVC.DismissTitleColor = DismissTitleColor 262 | alertVC.modalTransitionStyle = .coverVertical 263 | alertVC.modalPresentationStyle = .custom 264 | self.present(alertVC, animated: true, completion: nil) 265 | 266 | 267 | } 268 | 269 | } 270 | -------------------------------------------------------------------------------- /Example/AlertUI.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | 64757ED42371A2E800EB68C0 /* AlertControllerOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64757ED12371A2E800EB68C0 /* AlertControllerOptions.swift */; }; 17 | 64757ED52371A2E800EB68C0 /* AlertControllerButtons.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64757ED22371A2E800EB68C0 /* AlertControllerButtons.swift */; }; 18 | 64757ED62371A2E800EB68C0 /* AlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64757ED32371A2E800EB68C0 /* AlertView.swift */; }; 19 | 698EDF8962AE8BBB0082BBA8 /* Pods_AlertUI_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 194763C4B145F02E48354E8B /* Pods_AlertUI_Example.framework */; }; 20 | DA4BDF38C8834D0D1B0303C9 /* Pods_AlertUI_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 693A5EA8F77E930FF54E21D9 /* Pods_AlertUI_Tests.framework */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 29 | remoteInfo = AlertUI; 30 | }; 31 | /* End PBXContainerItemProxy section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | 194763C4B145F02E48354E8B /* Pods_AlertUI_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AlertUI_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 428F0FD7AF5AD32B63A3BEC2 /* Pods-AlertUI_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AlertUI_Tests.debug.xcconfig"; path = "Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests.debug.xcconfig"; sourceTree = ""; }; 36 | 4A6C9AD06756F30F19C9815A /* Pods-AlertUI_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AlertUI_Example.release.xcconfig"; path = "Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example.release.xcconfig"; sourceTree = ""; }; 37 | 4D1C627D9F16E38916E13D60 /* Pods-AlertUI_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AlertUI_Example.debug.xcconfig"; path = "Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example.debug.xcconfig"; sourceTree = ""; }; 38 | 607FACD01AFB9204008FA782 /* AlertUI_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AlertUI_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 44 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 45 | 607FACE51AFB9204008FA782 /* AlertUI_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AlertUI_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 48 | 64757ED12371A2E800EB68C0 /* AlertControllerOptions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AlertControllerOptions.swift; path = ../../AlertUI/Classes/AlertControllerOptions.swift; sourceTree = ""; }; 49 | 64757ED22371A2E800EB68C0 /* AlertControllerButtons.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AlertControllerButtons.swift; path = ../../AlertUI/Classes/AlertControllerButtons.swift; sourceTree = ""; }; 50 | 64757ED32371A2E800EB68C0 /* AlertView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AlertView.swift; path = ../../AlertUI/Classes/AlertView.swift; sourceTree = ""; }; 51 | 693A5EA8F77E930FF54E21D9 /* Pods_AlertUI_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AlertUI_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 877670EB91E6900624EDE045 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 53 | 890FA536FE88A0A6E2C3FAA2 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 54 | 94D13F77D7BE98D8AE049A58 /* Pods-AlertUI_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AlertUI_Tests.release.xcconfig"; path = "Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests.release.xcconfig"; sourceTree = ""; }; 55 | D24706B33D375CD16F0E54C2 /* AlertUI.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = AlertUI.podspec; path = ../AlertUI.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 698EDF8962AE8BBB0082BBA8 /* Pods_AlertUI_Example.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | DA4BDF38C8834D0D1B0303C9 /* Pods_AlertUI_Tests.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 607FACC71AFB9204008FA782 = { 79 | isa = PBXGroup; 80 | children = ( 81 | 64757ED02371A28300EB68C0 /* Source */, 82 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 83 | 607FACD21AFB9204008FA782 /* Example for AlertUI */, 84 | 607FACE81AFB9204008FA782 /* Tests */, 85 | 607FACD11AFB9204008FA782 /* Products */, 86 | AF9309CA618BC379196CBA67 /* Pods */, 87 | 99F4173DEF2339C41ABBB964 /* Frameworks */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | 607FACD11AFB9204008FA782 /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 607FACD01AFB9204008FA782 /* AlertUI_Example.app */, 95 | 607FACE51AFB9204008FA782 /* AlertUI_Tests.xctest */, 96 | ); 97 | name = Products; 98 | sourceTree = ""; 99 | }; 100 | 607FACD21AFB9204008FA782 /* Example for AlertUI */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 104 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 105 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 106 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 107 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 108 | 607FACD31AFB9204008FA782 /* Supporting Files */, 109 | ); 110 | name = "Example for AlertUI"; 111 | path = AlertUI; 112 | sourceTree = ""; 113 | }; 114 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 607FACD41AFB9204008FA782 /* Info.plist */, 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | 607FACE81AFB9204008FA782 /* Tests */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 126 | 607FACE91AFB9204008FA782 /* Supporting Files */, 127 | ); 128 | path = Tests; 129 | sourceTree = ""; 130 | }; 131 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 607FACEA1AFB9204008FA782 /* Info.plist */, 135 | ); 136 | name = "Supporting Files"; 137 | sourceTree = ""; 138 | }; 139 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | D24706B33D375CD16F0E54C2 /* AlertUI.podspec */, 143 | 890FA536FE88A0A6E2C3FAA2 /* README.md */, 144 | 877670EB91E6900624EDE045 /* LICENSE */, 145 | ); 146 | name = "Podspec Metadata"; 147 | sourceTree = ""; 148 | }; 149 | 64757ED02371A28300EB68C0 /* Source */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 64757ED22371A2E800EB68C0 /* AlertControllerButtons.swift */, 153 | 64757ED12371A2E800EB68C0 /* AlertControllerOptions.swift */, 154 | 64757ED32371A2E800EB68C0 /* AlertView.swift */, 155 | ); 156 | path = Source; 157 | sourceTree = ""; 158 | }; 159 | 99F4173DEF2339C41ABBB964 /* Frameworks */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 194763C4B145F02E48354E8B /* Pods_AlertUI_Example.framework */, 163 | 693A5EA8F77E930FF54E21D9 /* Pods_AlertUI_Tests.framework */, 164 | ); 165 | name = Frameworks; 166 | sourceTree = ""; 167 | }; 168 | AF9309CA618BC379196CBA67 /* Pods */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 4D1C627D9F16E38916E13D60 /* Pods-AlertUI_Example.debug.xcconfig */, 172 | 4A6C9AD06756F30F19C9815A /* Pods-AlertUI_Example.release.xcconfig */, 173 | 428F0FD7AF5AD32B63A3BEC2 /* Pods-AlertUI_Tests.debug.xcconfig */, 174 | 94D13F77D7BE98D8AE049A58 /* Pods-AlertUI_Tests.release.xcconfig */, 175 | ); 176 | path = Pods; 177 | sourceTree = ""; 178 | }; 179 | /* End PBXGroup section */ 180 | 181 | /* Begin PBXNativeTarget section */ 182 | 607FACCF1AFB9204008FA782 /* AlertUI_Example */ = { 183 | isa = PBXNativeTarget; 184 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AlertUI_Example" */; 185 | buildPhases = ( 186 | 80EB8C95E2029276DE8550D1 /* [CP] Check Pods Manifest.lock */, 187 | 607FACCC1AFB9204008FA782 /* Sources */, 188 | 607FACCD1AFB9204008FA782 /* Frameworks */, 189 | 607FACCE1AFB9204008FA782 /* Resources */, 190 | F79CC17E4524C4F3D8F893DE /* [CP] Embed Pods Frameworks */, 191 | ); 192 | buildRules = ( 193 | ); 194 | dependencies = ( 195 | ); 196 | name = AlertUI_Example; 197 | productName = AlertUI; 198 | productReference = 607FACD01AFB9204008FA782 /* AlertUI_Example.app */; 199 | productType = "com.apple.product-type.application"; 200 | }; 201 | 607FACE41AFB9204008FA782 /* AlertUI_Tests */ = { 202 | isa = PBXNativeTarget; 203 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AlertUI_Tests" */; 204 | buildPhases = ( 205 | 0013CC66947942223381D789 /* [CP] Check Pods Manifest.lock */, 206 | 607FACE11AFB9204008FA782 /* Sources */, 207 | 607FACE21AFB9204008FA782 /* Frameworks */, 208 | 607FACE31AFB9204008FA782 /* Resources */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 214 | ); 215 | name = AlertUI_Tests; 216 | productName = Tests; 217 | productReference = 607FACE51AFB9204008FA782 /* AlertUI_Tests.xctest */; 218 | productType = "com.apple.product-type.bundle.unit-test"; 219 | }; 220 | /* End PBXNativeTarget section */ 221 | 222 | /* Begin PBXProject section */ 223 | 607FACC81AFB9204008FA782 /* Project object */ = { 224 | isa = PBXProject; 225 | attributes = { 226 | LastSwiftUpdateCheck = 0830; 227 | LastUpgradeCheck = 0830; 228 | ORGANIZATIONNAME = CocoaPods; 229 | TargetAttributes = { 230 | 607FACCF1AFB9204008FA782 = { 231 | CreatedOnToolsVersion = 6.3.1; 232 | DevelopmentTeam = 7X2KJ7S3VX; 233 | LastSwiftMigration = 0900; 234 | }; 235 | 607FACE41AFB9204008FA782 = { 236 | CreatedOnToolsVersion = 6.3.1; 237 | DevelopmentTeam = 7X2KJ7S3VX; 238 | LastSwiftMigration = 0900; 239 | TestTargetID = 607FACCF1AFB9204008FA782; 240 | }; 241 | }; 242 | }; 243 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AlertUI" */; 244 | compatibilityVersion = "Xcode 3.2"; 245 | developmentRegion = English; 246 | hasScannedForEncodings = 0; 247 | knownRegions = ( 248 | English, 249 | en, 250 | Base, 251 | ); 252 | mainGroup = 607FACC71AFB9204008FA782; 253 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 254 | projectDirPath = ""; 255 | projectRoot = ""; 256 | targets = ( 257 | 607FACCF1AFB9204008FA782 /* AlertUI_Example */, 258 | 607FACE41AFB9204008FA782 /* AlertUI_Tests */, 259 | ); 260 | }; 261 | /* End PBXProject section */ 262 | 263 | /* Begin PBXResourcesBuildPhase section */ 264 | 607FACCE1AFB9204008FA782 /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 269 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 270 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | 607FACE31AFB9204008FA782 /* Resources */ = { 275 | isa = PBXResourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | /* End PBXResourcesBuildPhase section */ 282 | 283 | /* Begin PBXShellScriptBuildPhase section */ 284 | 0013CC66947942223381D789 /* [CP] Check Pods Manifest.lock */ = { 285 | isa = PBXShellScriptBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | ); 289 | inputFileListPaths = ( 290 | ); 291 | inputPaths = ( 292 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 293 | "${PODS_ROOT}/Manifest.lock", 294 | ); 295 | name = "[CP] Check Pods Manifest.lock"; 296 | outputFileListPaths = ( 297 | ); 298 | outputPaths = ( 299 | "$(DERIVED_FILE_DIR)/Pods-AlertUI_Tests-checkManifestLockResult.txt", 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | shellPath = /bin/sh; 303 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 304 | showEnvVarsInLog = 0; 305 | }; 306 | 80EB8C95E2029276DE8550D1 /* [CP] Check Pods Manifest.lock */ = { 307 | isa = PBXShellScriptBuildPhase; 308 | buildActionMask = 2147483647; 309 | files = ( 310 | ); 311 | inputFileListPaths = ( 312 | ); 313 | inputPaths = ( 314 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 315 | "${PODS_ROOT}/Manifest.lock", 316 | ); 317 | name = "[CP] Check Pods Manifest.lock"; 318 | outputFileListPaths = ( 319 | ); 320 | outputPaths = ( 321 | "$(DERIVED_FILE_DIR)/Pods-AlertUI_Example-checkManifestLockResult.txt", 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | shellPath = /bin/sh; 325 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 326 | showEnvVarsInLog = 0; 327 | }; 328 | F79CC17E4524C4F3D8F893DE /* [CP] Embed Pods Frameworks */ = { 329 | isa = PBXShellScriptBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | inputPaths = ( 334 | "${PODS_ROOT}/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-frameworks.sh", 335 | "${BUILT_PRODUCTS_DIR}/AlertUI/AlertUI.framework", 336 | ); 337 | name = "[CP] Embed Pods Frameworks"; 338 | outputPaths = ( 339 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AlertUI.framework", 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | shellPath = /bin/sh; 343 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-frameworks.sh\"\n"; 344 | showEnvVarsInLog = 0; 345 | }; 346 | /* End PBXShellScriptBuildPhase section */ 347 | 348 | /* Begin PBXSourcesBuildPhase section */ 349 | 607FACCC1AFB9204008FA782 /* Sources */ = { 350 | isa = PBXSourcesBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | 64757ED62371A2E800EB68C0 /* AlertView.swift in Sources */, 354 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 355 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 356 | 64757ED52371A2E800EB68C0 /* AlertControllerButtons.swift in Sources */, 357 | 64757ED42371A2E800EB68C0 /* AlertControllerOptions.swift in Sources */, 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | }; 361 | 607FACE11AFB9204008FA782 /* Sources */ = { 362 | isa = PBXSourcesBuildPhase; 363 | buildActionMask = 2147483647; 364 | files = ( 365 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | /* End PBXSourcesBuildPhase section */ 370 | 371 | /* Begin PBXTargetDependency section */ 372 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 373 | isa = PBXTargetDependency; 374 | target = 607FACCF1AFB9204008FA782 /* AlertUI_Example */; 375 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 376 | }; 377 | /* End PBXTargetDependency section */ 378 | 379 | /* Begin PBXVariantGroup section */ 380 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 381 | isa = PBXVariantGroup; 382 | children = ( 383 | 607FACDA1AFB9204008FA782 /* Base */, 384 | ); 385 | name = Main.storyboard; 386 | sourceTree = ""; 387 | }; 388 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 389 | isa = PBXVariantGroup; 390 | children = ( 391 | 607FACDF1AFB9204008FA782 /* Base */, 392 | ); 393 | name = LaunchScreen.xib; 394 | sourceTree = ""; 395 | }; 396 | /* End PBXVariantGroup section */ 397 | 398 | /* Begin XCBuildConfiguration section */ 399 | 607FACED1AFB9204008FA782 /* Debug */ = { 400 | isa = XCBuildConfiguration; 401 | buildSettings = { 402 | ALWAYS_SEARCH_USER_PATHS = NO; 403 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 404 | CLANG_CXX_LIBRARY = "libc++"; 405 | CLANG_ENABLE_MODULES = YES; 406 | CLANG_ENABLE_OBJC_ARC = YES; 407 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 408 | CLANG_WARN_BOOL_CONVERSION = YES; 409 | CLANG_WARN_COMMA = YES; 410 | CLANG_WARN_CONSTANT_CONVERSION = YES; 411 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 412 | CLANG_WARN_EMPTY_BODY = YES; 413 | CLANG_WARN_ENUM_CONVERSION = YES; 414 | CLANG_WARN_INFINITE_RECURSION = YES; 415 | CLANG_WARN_INT_CONVERSION = YES; 416 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 417 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 418 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 419 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 420 | CLANG_WARN_STRICT_PROTOTYPES = YES; 421 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 422 | CLANG_WARN_UNREACHABLE_CODE = YES; 423 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 424 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 425 | COPY_PHASE_STRIP = NO; 426 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 428 | ENABLE_TESTABILITY = YES; 429 | GCC_C_LANGUAGE_STANDARD = gnu99; 430 | GCC_DYNAMIC_NO_PIC = NO; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | GCC_OPTIMIZATION_LEVEL = 0; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "DEBUG=1", 435 | "$(inherited)", 436 | ); 437 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 440 | GCC_WARN_UNDECLARED_SELECTOR = YES; 441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 442 | GCC_WARN_UNUSED_FUNCTION = YES; 443 | GCC_WARN_UNUSED_VARIABLE = YES; 444 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 445 | MTL_ENABLE_DEBUG_INFO = YES; 446 | ONLY_ACTIVE_ARCH = YES; 447 | SDKROOT = iphoneos; 448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 449 | SWIFT_VERSION = 5.0; 450 | }; 451 | name = Debug; 452 | }; 453 | 607FACEE1AFB9204008FA782 /* Release */ = { 454 | isa = XCBuildConfiguration; 455 | buildSettings = { 456 | ALWAYS_SEARCH_USER_PATHS = NO; 457 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 458 | CLANG_CXX_LIBRARY = "libc++"; 459 | CLANG_ENABLE_MODULES = YES; 460 | CLANG_ENABLE_OBJC_ARC = YES; 461 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 462 | CLANG_WARN_BOOL_CONVERSION = YES; 463 | CLANG_WARN_COMMA = YES; 464 | CLANG_WARN_CONSTANT_CONVERSION = YES; 465 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 466 | CLANG_WARN_EMPTY_BODY = YES; 467 | CLANG_WARN_ENUM_CONVERSION = YES; 468 | CLANG_WARN_INFINITE_RECURSION = YES; 469 | CLANG_WARN_INT_CONVERSION = YES; 470 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 471 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 472 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 473 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 474 | CLANG_WARN_STRICT_PROTOTYPES = YES; 475 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 476 | CLANG_WARN_UNREACHABLE_CODE = YES; 477 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 478 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 479 | COPY_PHASE_STRIP = NO; 480 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 481 | ENABLE_NS_ASSERTIONS = NO; 482 | ENABLE_STRICT_OBJC_MSGSEND = YES; 483 | GCC_C_LANGUAGE_STANDARD = gnu99; 484 | GCC_NO_COMMON_BLOCKS = YES; 485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 486 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 487 | GCC_WARN_UNDECLARED_SELECTOR = YES; 488 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 489 | GCC_WARN_UNUSED_FUNCTION = YES; 490 | GCC_WARN_UNUSED_VARIABLE = YES; 491 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 492 | MTL_ENABLE_DEBUG_INFO = NO; 493 | SDKROOT = iphoneos; 494 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 495 | SWIFT_VERSION = 5.0; 496 | VALIDATE_PRODUCT = YES; 497 | }; 498 | name = Release; 499 | }; 500 | 607FACF01AFB9204008FA782 /* Debug */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 4D1C627D9F16E38916E13D60 /* Pods-AlertUI_Example.debug.xcconfig */; 503 | buildSettings = { 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | DEVELOPMENT_TEAM = 7X2KJ7S3VX; 506 | INFOPLIST_FILE = AlertUI/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 508 | MODULE_NAME = ExampleApp; 509 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 510 | PRODUCT_NAME = "$(TARGET_NAME)"; 511 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 512 | SWIFT_VERSION = 4.0; 513 | }; 514 | name = Debug; 515 | }; 516 | 607FACF11AFB9204008FA782 /* Release */ = { 517 | isa = XCBuildConfiguration; 518 | baseConfigurationReference = 4A6C9AD06756F30F19C9815A /* Pods-AlertUI_Example.release.xcconfig */; 519 | buildSettings = { 520 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 521 | DEVELOPMENT_TEAM = 7X2KJ7S3VX; 522 | INFOPLIST_FILE = AlertUI/Info.plist; 523 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 524 | MODULE_NAME = ExampleApp; 525 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 526 | PRODUCT_NAME = "$(TARGET_NAME)"; 527 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 528 | SWIFT_VERSION = 4.0; 529 | }; 530 | name = Release; 531 | }; 532 | 607FACF31AFB9204008FA782 /* Debug */ = { 533 | isa = XCBuildConfiguration; 534 | baseConfigurationReference = 428F0FD7AF5AD32B63A3BEC2 /* Pods-AlertUI_Tests.debug.xcconfig */; 535 | buildSettings = { 536 | DEVELOPMENT_TEAM = 7X2KJ7S3VX; 537 | FRAMEWORK_SEARCH_PATHS = ( 538 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 539 | "$(inherited)", 540 | ); 541 | GCC_PREPROCESSOR_DEFINITIONS = ( 542 | "DEBUG=1", 543 | "$(inherited)", 544 | ); 545 | INFOPLIST_FILE = Tests/Info.plist; 546 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 547 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 550 | SWIFT_VERSION = 4.0; 551 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AlertUI_Example.app/AlertUI_Example"; 552 | }; 553 | name = Debug; 554 | }; 555 | 607FACF41AFB9204008FA782 /* Release */ = { 556 | isa = XCBuildConfiguration; 557 | baseConfigurationReference = 94D13F77D7BE98D8AE049A58 /* Pods-AlertUI_Tests.release.xcconfig */; 558 | buildSettings = { 559 | DEVELOPMENT_TEAM = 7X2KJ7S3VX; 560 | FRAMEWORK_SEARCH_PATHS = ( 561 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 562 | "$(inherited)", 563 | ); 564 | INFOPLIST_FILE = Tests/Info.plist; 565 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 566 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 567 | PRODUCT_NAME = "$(TARGET_NAME)"; 568 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 569 | SWIFT_VERSION = 4.0; 570 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AlertUI_Example.app/AlertUI_Example"; 571 | }; 572 | name = Release; 573 | }; 574 | /* End XCBuildConfiguration section */ 575 | 576 | /* Begin XCConfigurationList section */ 577 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AlertUI" */ = { 578 | isa = XCConfigurationList; 579 | buildConfigurations = ( 580 | 607FACED1AFB9204008FA782 /* Debug */, 581 | 607FACEE1AFB9204008FA782 /* Release */, 582 | ); 583 | defaultConfigurationIsVisible = 0; 584 | defaultConfigurationName = Release; 585 | }; 586 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AlertUI_Example" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | 607FACF01AFB9204008FA782 /* Debug */, 590 | 607FACF11AFB9204008FA782 /* Release */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AlertUI_Tests" */ = { 596 | isa = XCConfigurationList; 597 | buildConfigurations = ( 598 | 607FACF31AFB9204008FA782 /* Debug */, 599 | 607FACF41AFB9204008FA782 /* Release */, 600 | ); 601 | defaultConfigurationIsVisible = 0; 602 | defaultConfigurationName = Release; 603 | }; 604 | /* End XCConfigurationList section */ 605 | }; 606 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 607 | } 608 | -------------------------------------------------------------------------------- /Example/AlertUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/AlertUI.xcodeproj/xcshareddata/xcschemes/AlertUI-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/AlertUI.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/AlertUI.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/AlertUI/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AlertUI 4 | // 5 | // Created by farisalbalawi on 11/05/2019. 6 | // Copyright (c) 2019 farisalbalawi. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/AlertUI/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/AlertUI/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/New Folder/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/New Folder/icon_2.imageset/001-bin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/Example/AlertUI/Images.xcassets/New Folder/icon_2.imageset/001-bin.png -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/New Folder/icon_2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "001-bin.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/avatar.imageset/18473439.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/Example/AlertUI/Images.xcassets/avatar.imageset/18473439.png -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/avatar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "18473439.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/block.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "lock.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/block.imageset/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/Example/AlertUI/Images.xcassets/block.imageset/lock.png -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/follow.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "follow.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/follow.imageset/follow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/Example/AlertUI/Images.xcassets/follow.imageset/follow.png -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/notification.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "notification.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/notification.imageset/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/Example/AlertUI/Images.xcassets/notification.imageset/notification.png -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/ok.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "ok.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/AlertUI/Images.xcassets/ok.imageset/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FarisAlbalawi/AlertUI/fb40d50e579d210a4249f0c8bfbdc15c50c4aa45/Example/AlertUI/Images.xcassets/ok.imageset/ok.png -------------------------------------------------------------------------------- /Example/AlertUI/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/AlertUI/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AlertUI 4 | // 5 | // Created by farisalbalawi on 11/05/2019. 6 | // Copyright (c) 2019 farisalbalawi. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AlertUI 11 | 12 | class ViewController: UIViewController { 13 | 14 | let example_Button: UIButton = { 15 | let Button = UIButton() 16 | Button.setTitle("Example 1", for: .normal) 17 | Button.setTitleColor(.red, for: .normal) 18 | Button.backgroundColor = UIColor.clear 19 | Button.layer.borderWidth = 1 20 | Button.layer.borderColor = UIColor.red.cgColor 21 | Button.layer.cornerRadius = 50 / 2 22 | Button.tag = 0 23 | Button.translatesAutoresizingMaskIntoConstraints = false 24 | Button.addTarget(self, action:#selector(didPressButton(_:)), for: UIControl.Event.touchUpInside) 25 | return Button 26 | }() 27 | 28 | let exampl2_Button: UIButton = { 29 | let Button = UIButton() 30 | Button.setTitle("Example 2", for: .normal) 31 | Button.setTitleColor(.red, for: .normal) 32 | Button.backgroundColor = UIColor.clear 33 | Button.layer.borderWidth = 1 34 | Button.layer.borderColor = UIColor.red.cgColor 35 | Button.layer.cornerRadius = 50 / 2 36 | Button.tag = 1 37 | Button.translatesAutoresizingMaskIntoConstraints = false 38 | Button.addTarget(self, action:#selector(didPressButton(_:)), for: UIControl.Event.touchUpInside) 39 | return Button 40 | }() 41 | 42 | let exampl3_Button: UIButton = { 43 | let Button = UIButton() 44 | Button.setTitle("Example 3", for: .normal) 45 | Button.setTitleColor(.red, for: .normal) 46 | Button.backgroundColor = UIColor.clear 47 | Button.layer.borderWidth = 1 48 | Button.layer.borderColor = UIColor.red.cgColor 49 | Button.layer.cornerRadius = 50 / 2 50 | Button.tag = 2 51 | Button.translatesAutoresizingMaskIntoConstraints = false 52 | Button.addTarget(self, action:#selector(didPressButton(_:)), for: UIControl.Event.touchUpInside) 53 | return Button 54 | }() 55 | 56 | override func viewDidLoad() { 57 | super.viewDidLoad() 58 | // Do any additional setup after loading the view, typically from a nib. 59 | 60 | view.addSubview(example_Button) 61 | view.addSubview(exampl2_Button) 62 | view.addSubview(exampl3_Button) 63 | NSLayoutConstraint.activate([ 64 | 65 | self.example_Button.widthAnchor.constraint(equalToConstant: self.view.frame.width / 1.3), 66 | self.example_Button.heightAnchor.constraint(equalToConstant: 50), 67 | self.example_Button.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor,constant: 50), 68 | self.example_Button.centerXAnchor.constraint(equalTo: view.centerXAnchor), 69 | 70 | self.exampl2_Button.widthAnchor.constraint(equalToConstant: self.view.frame.width / 1.3), 71 | self.exampl2_Button.heightAnchor.constraint(equalToConstant: 50), 72 | self.exampl2_Button.topAnchor.constraint(equalTo: example_Button.bottomAnchor,constant: 20), 73 | self.exampl2_Button.centerXAnchor.constraint(equalTo: view.centerXAnchor), 74 | 75 | self.exampl3_Button.widthAnchor.constraint(equalToConstant: self.view.frame.width / 1.3), 76 | self.exampl3_Button.heightAnchor.constraint(equalToConstant: 50), 77 | self.exampl3_Button.topAnchor.constraint(equalTo: exampl2_Button.bottomAnchor,constant: 20), 78 | self.exampl3_Button.centerXAnchor.constraint(equalTo: view.centerXAnchor), 79 | 80 | ]) 81 | 82 | } 83 | 84 | @objc func didPressButton(_ sender: UIButton) { 85 | if sender.tag == 0 { 86 | example1() 87 | } else if sender.tag == 1 { 88 | example2() 89 | } else { 90 | example3() 91 | } 92 | 93 | 94 | 95 | 96 | } 97 | 98 | 99 | 100 | func example1() { 101 | let Follow : [String: () -> Void] = [ "Follow": { 102 | print("tapped Follow") 103 | }] 104 | 105 | let Notification : [String: () -> Void] = [ "Notification": { 106 | print("tapped Notification") 107 | }] 108 | 109 | let Block : [String: () -> Void] = [ "Block": { 110 | print("tapped Block") 111 | }] 112 | 113 | let arrayActions = [ 114 | AlertAction(buttonAction: Follow, buttonColor: UIColor.black, imageName: "follow", imageColor: UIColor.black), 115 | AlertAction(buttonAction: Notification, buttonColor: UIColor.black, imageName: "notification", imageColor: UIColor.black), 116 | AlertAction(buttonAction: Block, buttonColor: UIColor.red, imageName: "block", imageColor: UIColor.red), 117 | ] 118 | 119 | let imageAvatar = UIImage(named: "avatar") 120 | 121 | self.showAlertControllerOptions( 122 | icons: imageAvatar, 123 | title: "Faris Albalawi", 124 | titleColor: UIColor.black, 125 | messageColor: nil, 126 | message:nil, 127 | backgroundColor:nil, 128 | lineColor: nil, 129 | DismissTitle: nil, 130 | DismissColor: nil, 131 | DismissTitleColor: nil, 132 | actions: arrayActions) 133 | } 134 | 135 | 136 | 137 | func example2() { 138 | let Follow : [String: () -> Void] = [ "Follow": { 139 | print("tapped Follow") 140 | }] 141 | 142 | let arrayActions = [ 143 | AlertActionButtons(buttonAction: Follow, titleColor: UIColor.white, backgroundColor: UIColor.red, borderColor: nil, borderWidth: nil), 144 | 145 | ] 146 | 147 | let imageAvatar = UIImage(named: "avatar") 148 | self.ShowAlertControllerButtons(icons: imageAvatar, 149 | title: "Faris Albalawi", 150 | titleColor: nil, 151 | messageColor: nil, 152 | message:nil, 153 | backgroundColor:nil, 154 | lineColor: nil, 155 | DismissTitle: nil, 156 | DismissColor: nil, 157 | DismissTitleColor: nil, 158 | actions: arrayActions) 159 | 160 | } 161 | 162 | 163 | func example3() { 164 | let image = UIImage(named: "ok") 165 | self.showAlert(icons: image, 166 | title: "Done", 167 | titleColor: nil, 168 | messageColor: UIColor.lightGray, 169 | message:"Your project was successfully saved!", 170 | backgroundColor:nil, 171 | DismissTitle: "Ok", 172 | DismissColor: nil, 173 | DismissTitleColor: nil) 174 | } 175 | 176 | 177 | 178 | 179 | override func didReceiveMemoryWarning() { 180 | super.didReceiveMemoryWarning() 181 | // Dispose of any resources that can be recreated. 182 | } 183 | 184 | } 185 | 186 | 187 | 188 | enum color { 189 | 190 | static let lightGray = UIColor(red: 0.9412, green: 0.9412, blue: 0.9451, alpha: 1.0) 191 | 192 | 193 | 194 | } 195 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'AlertUI_Example' do 4 | pod 'AlertUI', :path => '../' 5 | 6 | target 'AlertUI_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AlertUI (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AlertUI (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AlertUI: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | AlertUI: 9abf910fdea3d45a6dcd56ee9282d83500a37a94 13 | 14 | PODFILE CHECKSUM: 0eec5724445f4c3e6dea3ed0161f9dd2c6abe6bf 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/AlertUI.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AlertUI", 3 | "version": "0.1.0", 4 | "summary": "A short description of AlertUI.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/farisalbalawi/AlertUI", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "farisalbalawi": "xx-301@hotmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/farisalbalawi/AlertUI.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "AlertUI/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AlertUI (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AlertUI (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AlertUI: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | AlertUI: 9abf910fdea3d45a6dcd56ee9282d83500a37a94 13 | 14 | PODFILE CHECKSUM: 0eec5724445f4c3e6dea3ed0161f9dd2c6abe6bf 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 52; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0430B7365DCF21A6E50E51C669334091 /* Pods-AlertUI_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B6F1C1345C78B935E6A678370322F43A /* Pods-AlertUI_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 22091A77D300CDAD8DD674705EEF1CE4 /* Pods-AlertUI_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B076B15950A77D42C730FF64D762685 /* Pods-AlertUI_Tests-dummy.m */; }; 12 | 431672DF7857DA14B45E0DCA4E71309A /* AlertUI-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 91A97F2344D76C9387143E1FF11E470F /* AlertUI-dummy.m */; }; 13 | 64757EC923714F6B00EB68C0 /* AlertControllerOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64757EC823714F6B00EB68C0 /* AlertControllerOptions.swift */; }; 14 | 64757ECB2371732200EB68C0 /* AlertControllerButtons.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64757ECA2371732200EB68C0 /* AlertControllerButtons.swift */; }; 15 | 64757ECF23717FAD00EB68C0 /* AlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64757ECE23717FAD00EB68C0 /* AlertView.swift */; }; 16 | 7A1EF656FD5CB43CDA0F1DF4E813140C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 17 | 8D4B55C2C08084A4AF4B3EDB32985616 /* Pods-AlertUI_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 67F703CA712E23BA27BA9372806C5A65 /* Pods-AlertUI_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 92FAFB5CC5E718F8D37CE1887CC14A62 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 19 | A5D8B47AFA7B142B0B1D9A4A32FF3E10 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 20 | DA0C7BEE9CE0D715644788E7F32D1726 /* Pods-AlertUI_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B74CD2209CCF2D50EAD32989D05A6E0D /* Pods-AlertUI_Example-dummy.m */; }; 21 | DFAC52D73488AC1C8383F97AC0FEFB62 /* AlertUI-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7986705E976BCC65D3974980346D77E2 /* AlertUI-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | 5CEC400358B678620C7FE61AB4340793 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 72A65CBEF1EF914A553260F8A71CF418; 30 | remoteInfo = AlertUI; 31 | }; 32 | 9DBAD0F3A75C273255BD48C874453325 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = 182E84BB00858006DA09E05DD89612E0; 37 | remoteInfo = "Pods-AlertUI_Example"; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 08F271D610B86257A4A2C5C04435EF19 /* AlertUI-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AlertUI-prefix.pch"; sourceTree = ""; }; 43 | 1FCDA2171428A2DC7231C0FBE12629A3 /* Pods-AlertUI_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AlertUI_Tests-acknowledgements.plist"; sourceTree = ""; }; 44 | 216CDD8E9533DC070AAFABA90741A86C /* Pods_AlertUI_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AlertUI_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 2B076B15950A77D42C730FF64D762685 /* Pods-AlertUI_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AlertUI_Tests-dummy.m"; sourceTree = ""; }; 46 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 47 | 3C416C05E867B2760F11C6FA844F443D /* Pods-AlertUI_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AlertUI_Example-acknowledgements.plist"; sourceTree = ""; }; 48 | 409F13C3269A7EBE73E945E4334BACC9 /* Pods-AlertUI_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AlertUI_Example-Info.plist"; sourceTree = ""; }; 49 | 43B9C78E7A80301D84E2150CB5BF5A81 /* AlertUI.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = AlertUI.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 50 | 4EBFD7603403E922F08E2891CD075C34 /* Pods-AlertUI_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AlertUI_Tests.release.xcconfig"; sourceTree = ""; }; 51 | 590B584AFFA962E04B26FA2E07B9209F /* Pods-AlertUI_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AlertUI_Tests.debug.xcconfig"; sourceTree = ""; }; 52 | 5A2F9468AEEF7E98E29CA92616BD69AD /* AlertUI-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "AlertUI-Info.plist"; sourceTree = ""; }; 53 | 64757EC823714F6B00EB68C0 /* AlertControllerOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AlertControllerOptions.swift; path = AlertUI/Classes/AlertControllerOptions.swift; sourceTree = ""; }; 54 | 64757ECA2371732200EB68C0 /* AlertControllerButtons.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AlertControllerButtons.swift; path = AlertUI/Classes/AlertControllerButtons.swift; sourceTree = ""; }; 55 | 64757ECE23717FAD00EB68C0 /* AlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AlertView.swift; path = AlertUI/Classes/AlertView.swift; sourceTree = ""; }; 56 | 67F703CA712E23BA27BA9372806C5A65 /* Pods-AlertUI_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AlertUI_Example-umbrella.h"; sourceTree = ""; }; 57 | 74A53028EA5057E4B83C4E20300211EC /* Pods-AlertUI_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-AlertUI_Tests.modulemap"; sourceTree = ""; }; 58 | 7986705E976BCC65D3974980346D77E2 /* AlertUI-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AlertUI-umbrella.h"; sourceTree = ""; }; 59 | 7A20486C13955D4BD1980D7DE948B1CA /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 60 | 7A8F13C656A87B5D1B4FE48AFFDDC296 /* AlertUI.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AlertUI.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 8FE5AAC667508919FA122C4C16158C50 /* Pods_AlertUI_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AlertUI_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 91A97F2344D76C9387143E1FF11E470F /* AlertUI-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AlertUI-dummy.m"; sourceTree = ""; }; 63 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 64 | A1320AE7BF92434646D4ED5B8796BE60 /* Pods-AlertUI_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-AlertUI_Example.modulemap"; sourceTree = ""; }; 65 | AE857782C9E474097C7F6524F8005FB9 /* Pods-AlertUI_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AlertUI_Tests-acknowledgements.markdown"; sourceTree = ""; }; 66 | B064459DF273F9189667482EBFB850C8 /* Pods-AlertUI_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AlertUI_Example-frameworks.sh"; sourceTree = ""; }; 67 | B6F1C1345C78B935E6A678370322F43A /* Pods-AlertUI_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AlertUI_Tests-umbrella.h"; sourceTree = ""; }; 68 | B74CD2209CCF2D50EAD32989D05A6E0D /* Pods-AlertUI_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AlertUI_Example-dummy.m"; sourceTree = ""; }; 69 | C2C0CF57735E6BFA8EAECB14D4D06FDC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 70 | C948F4B42B4D4A97FECB0078B2169A3E /* Pods-AlertUI_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AlertUI_Example.release.xcconfig"; sourceTree = ""; }; 71 | D8E73BD96388C175AB46FCCD47433D1B /* Pods-AlertUI_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AlertUI_Example.debug.xcconfig"; sourceTree = ""; }; 72 | E3CB0B08FCD4446E5C032382E4C0601C /* Pods-AlertUI_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AlertUI_Tests-Info.plist"; sourceTree = ""; }; 73 | ED63D74B400BA310F9AACC8F7B03A9C2 /* AlertUI.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AlertUI.xcconfig; sourceTree = ""; }; 74 | F4108392D63DCEC8EA7AFA0B33B58003 /* AlertUI.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = AlertUI.modulemap; sourceTree = ""; }; 75 | F5A782279008D5F65D943A72467F363A /* Pods-AlertUI_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AlertUI_Example-acknowledgements.markdown"; sourceTree = ""; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | 83294BDCD6B4A96EA9FB960B88645726 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | A5D8B47AFA7B142B0B1D9A4A32FF3E10 /* Foundation.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | B896B96DEA1930AB297928BD382D898C /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | 7A1EF656FD5CB43CDA0F1DF4E813140C /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | D22A1C0E7EAB312ED39FA6C34BC87759 /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | 92FAFB5CC5E718F8D37CE1887CC14A62 /* Foundation.framework in Frameworks */, 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | /* End PBXFrameworksBuildPhase section */ 104 | 105 | /* Begin PBXGroup section */ 106 | 2C8991FEFB3330486B526BBF02863491 /* Development Pods */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 65CFECE3AED1F1B0236726CC22B85CEB /* AlertUI */, 110 | ); 111 | name = "Development Pods"; 112 | sourceTree = ""; 113 | }; 114 | 573845368683A10985706DCFB2D7DB2B /* Pod */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 43B9C78E7A80301D84E2150CB5BF5A81 /* AlertUI.podspec */, 118 | C2C0CF57735E6BFA8EAECB14D4D06FDC /* LICENSE */, 119 | 7A20486C13955D4BD1980D7DE948B1CA /* README.md */, 120 | ); 121 | name = Pod; 122 | sourceTree = ""; 123 | }; 124 | 6317C32CDAE76A78B545314D6469D4E9 /* Pods-AlertUI_Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 74A53028EA5057E4B83C4E20300211EC /* Pods-AlertUI_Tests.modulemap */, 128 | AE857782C9E474097C7F6524F8005FB9 /* Pods-AlertUI_Tests-acknowledgements.markdown */, 129 | 1FCDA2171428A2DC7231C0FBE12629A3 /* Pods-AlertUI_Tests-acknowledgements.plist */, 130 | 2B076B15950A77D42C730FF64D762685 /* Pods-AlertUI_Tests-dummy.m */, 131 | E3CB0B08FCD4446E5C032382E4C0601C /* Pods-AlertUI_Tests-Info.plist */, 132 | B6F1C1345C78B935E6A678370322F43A /* Pods-AlertUI_Tests-umbrella.h */, 133 | 590B584AFFA962E04B26FA2E07B9209F /* Pods-AlertUI_Tests.debug.xcconfig */, 134 | 4EBFD7603403E922F08E2891CD075C34 /* Pods-AlertUI_Tests.release.xcconfig */, 135 | ); 136 | name = "Pods-AlertUI_Tests"; 137 | path = "Target Support Files/Pods-AlertUI_Tests"; 138 | sourceTree = ""; 139 | }; 140 | 65CFECE3AED1F1B0236726CC22B85CEB /* AlertUI */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 573845368683A10985706DCFB2D7DB2B /* Pod */, 144 | E535A3F54150EB149DACE5F1926E1B2E /* Support Files */, 145 | 64757EC823714F6B00EB68C0 /* AlertControllerOptions.swift */, 146 | 64757ECA2371732200EB68C0 /* AlertControllerButtons.swift */, 147 | 64757ECE23717FAD00EB68C0 /* AlertView.swift */, 148 | ); 149 | name = AlertUI; 150 | path = ../..; 151 | sourceTree = ""; 152 | }; 153 | 7FDAA71E2191AC51F31DA8D72E4F94DF /* Targets Support Files */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 899842CCC8F7A143E9566A55018B2D11 /* Pods-AlertUI_Example */, 157 | 6317C32CDAE76A78B545314D6469D4E9 /* Pods-AlertUI_Tests */, 158 | ); 159 | name = "Targets Support Files"; 160 | sourceTree = ""; 161 | }; 162 | 899842CCC8F7A143E9566A55018B2D11 /* Pods-AlertUI_Example */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | A1320AE7BF92434646D4ED5B8796BE60 /* Pods-AlertUI_Example.modulemap */, 166 | F5A782279008D5F65D943A72467F363A /* Pods-AlertUI_Example-acknowledgements.markdown */, 167 | 3C416C05E867B2760F11C6FA844F443D /* Pods-AlertUI_Example-acknowledgements.plist */, 168 | B74CD2209CCF2D50EAD32989D05A6E0D /* Pods-AlertUI_Example-dummy.m */, 169 | B064459DF273F9189667482EBFB850C8 /* Pods-AlertUI_Example-frameworks.sh */, 170 | 409F13C3269A7EBE73E945E4334BACC9 /* Pods-AlertUI_Example-Info.plist */, 171 | 67F703CA712E23BA27BA9372806C5A65 /* Pods-AlertUI_Example-umbrella.h */, 172 | D8E73BD96388C175AB46FCCD47433D1B /* Pods-AlertUI_Example.debug.xcconfig */, 173 | C948F4B42B4D4A97FECB0078B2169A3E /* Pods-AlertUI_Example.release.xcconfig */, 174 | ); 175 | name = "Pods-AlertUI_Example"; 176 | path = "Target Support Files/Pods-AlertUI_Example"; 177 | sourceTree = ""; 178 | }; 179 | A022F7088108857070C888C7D7478F22 /* Products */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 7A8F13C656A87B5D1B4FE48AFFDDC296 /* AlertUI.framework */, 183 | 216CDD8E9533DC070AAFABA90741A86C /* Pods_AlertUI_Example.framework */, 184 | 8FE5AAC667508919FA122C4C16158C50 /* Pods_AlertUI_Tests.framework */, 185 | ); 186 | name = Products; 187 | sourceTree = ""; 188 | }; 189 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 193 | ); 194 | name = iOS; 195 | sourceTree = ""; 196 | }; 197 | CF1408CF629C7361332E53B88F7BD30C = { 198 | isa = PBXGroup; 199 | children = ( 200 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 201 | 2C8991FEFB3330486B526BBF02863491 /* Development Pods */, 202 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 203 | A022F7088108857070C888C7D7478F22 /* Products */, 204 | 7FDAA71E2191AC51F31DA8D72E4F94DF /* Targets Support Files */, 205 | ); 206 | sourceTree = ""; 207 | }; 208 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 212 | ); 213 | name = Frameworks; 214 | sourceTree = ""; 215 | }; 216 | E535A3F54150EB149DACE5F1926E1B2E /* Support Files */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | F4108392D63DCEC8EA7AFA0B33B58003 /* AlertUI.modulemap */, 220 | ED63D74B400BA310F9AACC8F7B03A9C2 /* AlertUI.xcconfig */, 221 | 91A97F2344D76C9387143E1FF11E470F /* AlertUI-dummy.m */, 222 | 5A2F9468AEEF7E98E29CA92616BD69AD /* AlertUI-Info.plist */, 223 | 08F271D610B86257A4A2C5C04435EF19 /* AlertUI-prefix.pch */, 224 | 7986705E976BCC65D3974980346D77E2 /* AlertUI-umbrella.h */, 225 | ); 226 | name = "Support Files"; 227 | path = "Example/Pods/Target Support Files/AlertUI"; 228 | sourceTree = ""; 229 | }; 230 | /* End PBXGroup section */ 231 | 232 | /* Begin PBXHeadersBuildPhase section */ 233 | 22D3935F61B96C7B38395F80B20F5E19 /* Headers */ = { 234 | isa = PBXHeadersBuildPhase; 235 | buildActionMask = 2147483647; 236 | files = ( 237 | DFAC52D73488AC1C8383F97AC0FEFB62 /* AlertUI-umbrella.h in Headers */, 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | }; 241 | A9C7EC433611F109B5D811953B21113B /* Headers */ = { 242 | isa = PBXHeadersBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | 8D4B55C2C08084A4AF4B3EDB32985616 /* Pods-AlertUI_Example-umbrella.h in Headers */, 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | B0F5E1D9765954E4C0BD674A95D53BD4 /* Headers */ = { 250 | isa = PBXHeadersBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | 0430B7365DCF21A6E50E51C669334091 /* Pods-AlertUI_Tests-umbrella.h in Headers */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | /* End PBXHeadersBuildPhase section */ 258 | 259 | /* Begin PBXNativeTarget section */ 260 | 182E84BB00858006DA09E05DD89612E0 /* Pods-AlertUI_Example */ = { 261 | isa = PBXNativeTarget; 262 | buildConfigurationList = A2AA6FF7CAF9E3C0C0D07AB3A2578662 /* Build configuration list for PBXNativeTarget "Pods-AlertUI_Example" */; 263 | buildPhases = ( 264 | A9C7EC433611F109B5D811953B21113B /* Headers */, 265 | 1D03E04195FB72935859D6ED60643E13 /* Sources */, 266 | D22A1C0E7EAB312ED39FA6C34BC87759 /* Frameworks */, 267 | E25CF5C7382EF746E315F1B61B206624 /* Resources */, 268 | ); 269 | buildRules = ( 270 | ); 271 | dependencies = ( 272 | 21CFF5B482AFB5D64FB2D9C76B9888D3 /* PBXTargetDependency */, 273 | ); 274 | name = "Pods-AlertUI_Example"; 275 | productName = "Pods-AlertUI_Example"; 276 | productReference = 216CDD8E9533DC070AAFABA90741A86C /* Pods_AlertUI_Example.framework */; 277 | productType = "com.apple.product-type.framework"; 278 | }; 279 | 2D512C2B636A6A71303DB8482A922187 /* Pods-AlertUI_Tests */ = { 280 | isa = PBXNativeTarget; 281 | buildConfigurationList = 3F1FB1C11B06CFFA24FD834287D377F3 /* Build configuration list for PBXNativeTarget "Pods-AlertUI_Tests" */; 282 | buildPhases = ( 283 | B0F5E1D9765954E4C0BD674A95D53BD4 /* Headers */, 284 | 86CE3D3783C030300DC8E2AD4346E373 /* Sources */, 285 | B896B96DEA1930AB297928BD382D898C /* Frameworks */, 286 | F545386EA2E7508656A0C8F34BF4B4E9 /* Resources */, 287 | ); 288 | buildRules = ( 289 | ); 290 | dependencies = ( 291 | 6CBA07768E67557D90D57EB6D80A2072 /* PBXTargetDependency */, 292 | ); 293 | name = "Pods-AlertUI_Tests"; 294 | productName = "Pods-AlertUI_Tests"; 295 | productReference = 8FE5AAC667508919FA122C4C16158C50 /* Pods_AlertUI_Tests.framework */; 296 | productType = "com.apple.product-type.framework"; 297 | }; 298 | 72A65CBEF1EF914A553260F8A71CF418 /* AlertUI */ = { 299 | isa = PBXNativeTarget; 300 | buildConfigurationList = F81FFAE4256AEEF2EA87E35B2D38DA1D /* Build configuration list for PBXNativeTarget "AlertUI" */; 301 | buildPhases = ( 302 | 22D3935F61B96C7B38395F80B20F5E19 /* Headers */, 303 | BE756D677AF72F92F8BABB0952ADAB17 /* Sources */, 304 | 83294BDCD6B4A96EA9FB960B88645726 /* Frameworks */, 305 | 109ED784AD2BDC2257281101FC0AD219 /* Resources */, 306 | ); 307 | buildRules = ( 308 | ); 309 | dependencies = ( 310 | ); 311 | name = AlertUI; 312 | productName = AlertUI; 313 | productReference = 7A8F13C656A87B5D1B4FE48AFFDDC296 /* AlertUI.framework */; 314 | productType = "com.apple.product-type.framework"; 315 | }; 316 | /* End PBXNativeTarget section */ 317 | 318 | /* Begin PBXProject section */ 319 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 320 | isa = PBXProject; 321 | attributes = { 322 | LastSwiftUpdateCheck = 1100; 323 | LastUpgradeCheck = 1100; 324 | }; 325 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 326 | compatibilityVersion = "Xcode 11.0"; 327 | developmentRegion = en; 328 | hasScannedForEncodings = 0; 329 | knownRegions = ( 330 | en, 331 | Base, 332 | ); 333 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 334 | productRefGroup = A022F7088108857070C888C7D7478F22 /* Products */; 335 | projectDirPath = ""; 336 | projectRoot = ""; 337 | targets = ( 338 | 72A65CBEF1EF914A553260F8A71CF418 /* AlertUI */, 339 | 182E84BB00858006DA09E05DD89612E0 /* Pods-AlertUI_Example */, 340 | 2D512C2B636A6A71303DB8482A922187 /* Pods-AlertUI_Tests */, 341 | ); 342 | }; 343 | /* End PBXProject section */ 344 | 345 | /* Begin PBXResourcesBuildPhase section */ 346 | 109ED784AD2BDC2257281101FC0AD219 /* Resources */ = { 347 | isa = PBXResourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | }; 353 | E25CF5C7382EF746E315F1B61B206624 /* Resources */ = { 354 | isa = PBXResourcesBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | F545386EA2E7508656A0C8F34BF4B4E9 /* Resources */ = { 361 | isa = PBXResourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | /* End PBXResourcesBuildPhase section */ 368 | 369 | /* Begin PBXSourcesBuildPhase section */ 370 | 1D03E04195FB72935859D6ED60643E13 /* Sources */ = { 371 | isa = PBXSourcesBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | DA0C7BEE9CE0D715644788E7F32D1726 /* Pods-AlertUI_Example-dummy.m in Sources */, 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | 86CE3D3783C030300DC8E2AD4346E373 /* Sources */ = { 379 | isa = PBXSourcesBuildPhase; 380 | buildActionMask = 2147483647; 381 | files = ( 382 | 22091A77D300CDAD8DD674705EEF1CE4 /* Pods-AlertUI_Tests-dummy.m in Sources */, 383 | ); 384 | runOnlyForDeploymentPostprocessing = 0; 385 | }; 386 | BE756D677AF72F92F8BABB0952ADAB17 /* Sources */ = { 387 | isa = PBXSourcesBuildPhase; 388 | buildActionMask = 2147483647; 389 | files = ( 390 | 64757ECF23717FAD00EB68C0 /* AlertView.swift in Sources */, 391 | 431672DF7857DA14B45E0DCA4E71309A /* AlertUI-dummy.m in Sources */, 392 | 64757ECB2371732200EB68C0 /* AlertControllerButtons.swift in Sources */, 393 | 64757EC923714F6B00EB68C0 /* AlertControllerOptions.swift in Sources */, 394 | ); 395 | runOnlyForDeploymentPostprocessing = 0; 396 | }; 397 | /* End PBXSourcesBuildPhase section */ 398 | 399 | /* Begin PBXTargetDependency section */ 400 | 21CFF5B482AFB5D64FB2D9C76B9888D3 /* PBXTargetDependency */ = { 401 | isa = PBXTargetDependency; 402 | name = AlertUI; 403 | target = 72A65CBEF1EF914A553260F8A71CF418 /* AlertUI */; 404 | targetProxy = 5CEC400358B678620C7FE61AB4340793 /* PBXContainerItemProxy */; 405 | }; 406 | 6CBA07768E67557D90D57EB6D80A2072 /* PBXTargetDependency */ = { 407 | isa = PBXTargetDependency; 408 | name = "Pods-AlertUI_Example"; 409 | target = 182E84BB00858006DA09E05DD89612E0 /* Pods-AlertUI_Example */; 410 | targetProxy = 9DBAD0F3A75C273255BD48C874453325 /* PBXContainerItemProxy */; 411 | }; 412 | /* End PBXTargetDependency section */ 413 | 414 | /* Begin XCBuildConfiguration section */ 415 | 070115ADC142591248563F53DCF8AF8D /* Release */ = { 416 | isa = XCBuildConfiguration; 417 | baseConfigurationReference = ED63D74B400BA310F9AACC8F7B03A9C2 /* AlertUI.xcconfig */; 418 | buildSettings = { 419 | CODE_SIGN_IDENTITY = ""; 420 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 421 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 422 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 423 | CURRENT_PROJECT_VERSION = 1; 424 | DEFINES_MODULE = YES; 425 | DEVELOPMENT_TEAM = ""; 426 | DYLIB_COMPATIBILITY_VERSION = 1; 427 | DYLIB_CURRENT_VERSION = 1; 428 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 429 | GCC_PREFIX_HEADER = "Target Support Files/AlertUI/AlertUI-prefix.pch"; 430 | INFOPLIST_FILE = "Target Support Files/AlertUI/AlertUI-Info.plist"; 431 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 432 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 433 | LD_RUNPATH_SEARCH_PATHS = ( 434 | "$(inherited)", 435 | "@executable_path/Frameworks", 436 | "@loader_path/Frameworks", 437 | ); 438 | MODULEMAP_FILE = "Target Support Files/AlertUI/AlertUI.modulemap"; 439 | PRODUCT_MODULE_NAME = AlertUI; 440 | PRODUCT_NAME = AlertUI; 441 | SDKROOT = iphoneos; 442 | SKIP_INSTALL = YES; 443 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 444 | SWIFT_VERSION = 5.0; 445 | TARGETED_DEVICE_FAMILY = "1,2"; 446 | VALIDATE_PRODUCT = YES; 447 | VERSIONING_SYSTEM = "apple-generic"; 448 | VERSION_INFO_PREFIX = ""; 449 | }; 450 | name = Release; 451 | }; 452 | 082DB92FEAC0F11AB5EEF1E17AEA67AB /* Release */ = { 453 | isa = XCBuildConfiguration; 454 | baseConfigurationReference = C948F4B42B4D4A97FECB0078B2169A3E /* Pods-AlertUI_Example.release.xcconfig */; 455 | buildSettings = { 456 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 457 | CODE_SIGN_IDENTITY = ""; 458 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 459 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 460 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 461 | CURRENT_PROJECT_VERSION = 1; 462 | DEFINES_MODULE = YES; 463 | DYLIB_COMPATIBILITY_VERSION = 1; 464 | DYLIB_CURRENT_VERSION = 1; 465 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 466 | INFOPLIST_FILE = "Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-Info.plist"; 467 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 468 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 469 | LD_RUNPATH_SEARCH_PATHS = ( 470 | "$(inherited)", 471 | "@executable_path/Frameworks", 472 | "@loader_path/Frameworks", 473 | ); 474 | MACH_O_TYPE = staticlib; 475 | MODULEMAP_FILE = "Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example.modulemap"; 476 | OTHER_LDFLAGS = ""; 477 | OTHER_LIBTOOLFLAGS = ""; 478 | PODS_ROOT = "$(SRCROOT)"; 479 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 480 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 481 | SDKROOT = iphoneos; 482 | SKIP_INSTALL = YES; 483 | TARGETED_DEVICE_FAMILY = "1,2"; 484 | VALIDATE_PRODUCT = YES; 485 | VERSIONING_SYSTEM = "apple-generic"; 486 | VERSION_INFO_PREFIX = ""; 487 | }; 488 | name = Release; 489 | }; 490 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 491 | isa = XCBuildConfiguration; 492 | buildSettings = { 493 | ALWAYS_SEARCH_USER_PATHS = NO; 494 | CLANG_ANALYZER_NONNULL = YES; 495 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 496 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 497 | CLANG_CXX_LIBRARY = "libc++"; 498 | CLANG_ENABLE_MODULES = YES; 499 | CLANG_ENABLE_OBJC_ARC = YES; 500 | CLANG_ENABLE_OBJC_WEAK = YES; 501 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 502 | CLANG_WARN_BOOL_CONVERSION = YES; 503 | CLANG_WARN_COMMA = YES; 504 | CLANG_WARN_CONSTANT_CONVERSION = YES; 505 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 506 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 507 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 508 | CLANG_WARN_EMPTY_BODY = YES; 509 | CLANG_WARN_ENUM_CONVERSION = YES; 510 | CLANG_WARN_INFINITE_RECURSION = YES; 511 | CLANG_WARN_INT_CONVERSION = YES; 512 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 513 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 514 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 515 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 516 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 517 | CLANG_WARN_STRICT_PROTOTYPES = YES; 518 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 519 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 520 | CLANG_WARN_UNREACHABLE_CODE = YES; 521 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 522 | COPY_PHASE_STRIP = NO; 523 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 524 | ENABLE_NS_ASSERTIONS = NO; 525 | ENABLE_STRICT_OBJC_MSGSEND = YES; 526 | GCC_C_LANGUAGE_STANDARD = gnu11; 527 | GCC_NO_COMMON_BLOCKS = YES; 528 | GCC_PREPROCESSOR_DEFINITIONS = ( 529 | "POD_CONFIGURATION_RELEASE=1", 530 | "$(inherited)", 531 | ); 532 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 533 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 534 | GCC_WARN_UNDECLARED_SELECTOR = YES; 535 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 536 | GCC_WARN_UNUSED_FUNCTION = YES; 537 | GCC_WARN_UNUSED_VARIABLE = YES; 538 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 539 | MTL_ENABLE_DEBUG_INFO = NO; 540 | MTL_FAST_MATH = YES; 541 | PRODUCT_NAME = "$(TARGET_NAME)"; 542 | STRIP_INSTALLED_PRODUCT = NO; 543 | SWIFT_COMPILATION_MODE = wholemodule; 544 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 545 | SWIFT_VERSION = 5.0; 546 | SYMROOT = "${SRCROOT}/../build"; 547 | TARGETED_DEVICE_FAMILY = "1,2"; 548 | }; 549 | name = Release; 550 | }; 551 | B671D785E17350F0E9303164B4EC7300 /* Debug */ = { 552 | isa = XCBuildConfiguration; 553 | baseConfigurationReference = 590B584AFFA962E04B26FA2E07B9209F /* Pods-AlertUI_Tests.debug.xcconfig */; 554 | buildSettings = { 555 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 556 | CODE_SIGN_IDENTITY = ""; 557 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 558 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 559 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 560 | CURRENT_PROJECT_VERSION = 1; 561 | DEFINES_MODULE = YES; 562 | DYLIB_COMPATIBILITY_VERSION = 1; 563 | DYLIB_CURRENT_VERSION = 1; 564 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 565 | INFOPLIST_FILE = "Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests-Info.plist"; 566 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 567 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 568 | LD_RUNPATH_SEARCH_PATHS = ( 569 | "$(inherited)", 570 | "@executable_path/Frameworks", 571 | "@loader_path/Frameworks", 572 | ); 573 | MACH_O_TYPE = staticlib; 574 | MODULEMAP_FILE = "Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests.modulemap"; 575 | OTHER_LDFLAGS = ""; 576 | OTHER_LIBTOOLFLAGS = ""; 577 | PODS_ROOT = "$(SRCROOT)"; 578 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 579 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 580 | SDKROOT = iphoneos; 581 | SKIP_INSTALL = YES; 582 | TARGETED_DEVICE_FAMILY = "1,2"; 583 | VERSIONING_SYSTEM = "apple-generic"; 584 | VERSION_INFO_PREFIX = ""; 585 | }; 586 | name = Debug; 587 | }; 588 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 589 | isa = XCBuildConfiguration; 590 | buildSettings = { 591 | ALWAYS_SEARCH_USER_PATHS = NO; 592 | CLANG_ANALYZER_NONNULL = YES; 593 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 594 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 595 | CLANG_CXX_LIBRARY = "libc++"; 596 | CLANG_ENABLE_MODULES = YES; 597 | CLANG_ENABLE_OBJC_ARC = YES; 598 | CLANG_ENABLE_OBJC_WEAK = YES; 599 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 600 | CLANG_WARN_BOOL_CONVERSION = YES; 601 | CLANG_WARN_COMMA = YES; 602 | CLANG_WARN_CONSTANT_CONVERSION = YES; 603 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 604 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 605 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 606 | CLANG_WARN_EMPTY_BODY = YES; 607 | CLANG_WARN_ENUM_CONVERSION = YES; 608 | CLANG_WARN_INFINITE_RECURSION = YES; 609 | CLANG_WARN_INT_CONVERSION = YES; 610 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 611 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 612 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 613 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 614 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 615 | CLANG_WARN_STRICT_PROTOTYPES = YES; 616 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 617 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 618 | CLANG_WARN_UNREACHABLE_CODE = YES; 619 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 620 | COPY_PHASE_STRIP = NO; 621 | DEBUG_INFORMATION_FORMAT = dwarf; 622 | ENABLE_STRICT_OBJC_MSGSEND = YES; 623 | ENABLE_TESTABILITY = YES; 624 | GCC_C_LANGUAGE_STANDARD = gnu11; 625 | GCC_DYNAMIC_NO_PIC = NO; 626 | GCC_NO_COMMON_BLOCKS = YES; 627 | GCC_OPTIMIZATION_LEVEL = 0; 628 | GCC_PREPROCESSOR_DEFINITIONS = ( 629 | "POD_CONFIGURATION_DEBUG=1", 630 | "DEBUG=1", 631 | "$(inherited)", 632 | ); 633 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 634 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 635 | GCC_WARN_UNDECLARED_SELECTOR = YES; 636 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 637 | GCC_WARN_UNUSED_FUNCTION = YES; 638 | GCC_WARN_UNUSED_VARIABLE = YES; 639 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 640 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 641 | MTL_FAST_MATH = YES; 642 | ONLY_ACTIVE_ARCH = YES; 643 | PRODUCT_NAME = "$(TARGET_NAME)"; 644 | STRIP_INSTALLED_PRODUCT = NO; 645 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 646 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 647 | SWIFT_VERSION = 5.0; 648 | SYMROOT = "${SRCROOT}/../build"; 649 | TARGETED_DEVICE_FAMILY = "1,2"; 650 | }; 651 | name = Debug; 652 | }; 653 | C5B0B37368E8F8FFC61AE1A8E4D21546 /* Debug */ = { 654 | isa = XCBuildConfiguration; 655 | baseConfigurationReference = D8E73BD96388C175AB46FCCD47433D1B /* Pods-AlertUI_Example.debug.xcconfig */; 656 | buildSettings = { 657 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 658 | CODE_SIGN_IDENTITY = ""; 659 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 660 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 661 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 662 | CURRENT_PROJECT_VERSION = 1; 663 | DEFINES_MODULE = YES; 664 | DYLIB_COMPATIBILITY_VERSION = 1; 665 | DYLIB_CURRENT_VERSION = 1; 666 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 667 | INFOPLIST_FILE = "Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-Info.plist"; 668 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 669 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 670 | LD_RUNPATH_SEARCH_PATHS = ( 671 | "$(inherited)", 672 | "@executable_path/Frameworks", 673 | "@loader_path/Frameworks", 674 | ); 675 | MACH_O_TYPE = staticlib; 676 | MODULEMAP_FILE = "Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example.modulemap"; 677 | OTHER_LDFLAGS = ""; 678 | OTHER_LIBTOOLFLAGS = ""; 679 | PODS_ROOT = "$(SRCROOT)"; 680 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 681 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 682 | SDKROOT = iphoneos; 683 | SKIP_INSTALL = YES; 684 | TARGETED_DEVICE_FAMILY = "1,2"; 685 | VERSIONING_SYSTEM = "apple-generic"; 686 | VERSION_INFO_PREFIX = ""; 687 | }; 688 | name = Debug; 689 | }; 690 | D4CF8B894C5F0E5F3A817599B68216AE /* Release */ = { 691 | isa = XCBuildConfiguration; 692 | baseConfigurationReference = 4EBFD7603403E922F08E2891CD075C34 /* Pods-AlertUI_Tests.release.xcconfig */; 693 | buildSettings = { 694 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 695 | CODE_SIGN_IDENTITY = ""; 696 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 697 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 698 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 699 | CURRENT_PROJECT_VERSION = 1; 700 | DEFINES_MODULE = YES; 701 | DYLIB_COMPATIBILITY_VERSION = 1; 702 | DYLIB_CURRENT_VERSION = 1; 703 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 704 | INFOPLIST_FILE = "Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests-Info.plist"; 705 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 706 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 707 | LD_RUNPATH_SEARCH_PATHS = ( 708 | "$(inherited)", 709 | "@executable_path/Frameworks", 710 | "@loader_path/Frameworks", 711 | ); 712 | MACH_O_TYPE = staticlib; 713 | MODULEMAP_FILE = "Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests.modulemap"; 714 | OTHER_LDFLAGS = ""; 715 | OTHER_LIBTOOLFLAGS = ""; 716 | PODS_ROOT = "$(SRCROOT)"; 717 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 718 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 719 | SDKROOT = iphoneos; 720 | SKIP_INSTALL = YES; 721 | TARGETED_DEVICE_FAMILY = "1,2"; 722 | VALIDATE_PRODUCT = YES; 723 | VERSIONING_SYSTEM = "apple-generic"; 724 | VERSION_INFO_PREFIX = ""; 725 | }; 726 | name = Release; 727 | }; 728 | FC862D3CD36633BDD98AF1434B10C4FC /* Debug */ = { 729 | isa = XCBuildConfiguration; 730 | baseConfigurationReference = ED63D74B400BA310F9AACC8F7B03A9C2 /* AlertUI.xcconfig */; 731 | buildSettings = { 732 | CODE_SIGN_IDENTITY = ""; 733 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 734 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 735 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 736 | CURRENT_PROJECT_VERSION = 1; 737 | DEFINES_MODULE = YES; 738 | DEVELOPMENT_TEAM = ""; 739 | DYLIB_COMPATIBILITY_VERSION = 1; 740 | DYLIB_CURRENT_VERSION = 1; 741 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 742 | GCC_PREFIX_HEADER = "Target Support Files/AlertUI/AlertUI-prefix.pch"; 743 | INFOPLIST_FILE = "Target Support Files/AlertUI/AlertUI-Info.plist"; 744 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 745 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 746 | LD_RUNPATH_SEARCH_PATHS = ( 747 | "$(inherited)", 748 | "@executable_path/Frameworks", 749 | "@loader_path/Frameworks", 750 | ); 751 | MODULEMAP_FILE = "Target Support Files/AlertUI/AlertUI.modulemap"; 752 | PRODUCT_MODULE_NAME = AlertUI; 753 | PRODUCT_NAME = AlertUI; 754 | SDKROOT = iphoneos; 755 | SKIP_INSTALL = YES; 756 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 757 | SWIFT_VERSION = 5.0; 758 | TARGETED_DEVICE_FAMILY = "1,2"; 759 | VERSIONING_SYSTEM = "apple-generic"; 760 | VERSION_INFO_PREFIX = ""; 761 | }; 762 | name = Debug; 763 | }; 764 | /* End XCBuildConfiguration section */ 765 | 766 | /* Begin XCConfigurationList section */ 767 | 3F1FB1C11B06CFFA24FD834287D377F3 /* Build configuration list for PBXNativeTarget "Pods-AlertUI_Tests" */ = { 768 | isa = XCConfigurationList; 769 | buildConfigurations = ( 770 | B671D785E17350F0E9303164B4EC7300 /* Debug */, 771 | D4CF8B894C5F0E5F3A817599B68216AE /* Release */, 772 | ); 773 | defaultConfigurationIsVisible = 0; 774 | defaultConfigurationName = Release; 775 | }; 776 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 777 | isa = XCConfigurationList; 778 | buildConfigurations = ( 779 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 780 | B0087CB4594321EF41619F3181FE120E /* Release */, 781 | ); 782 | defaultConfigurationIsVisible = 0; 783 | defaultConfigurationName = Release; 784 | }; 785 | A2AA6FF7CAF9E3C0C0D07AB3A2578662 /* Build configuration list for PBXNativeTarget "Pods-AlertUI_Example" */ = { 786 | isa = XCConfigurationList; 787 | buildConfigurations = ( 788 | C5B0B37368E8F8FFC61AE1A8E4D21546 /* Debug */, 789 | 082DB92FEAC0F11AB5EEF1E17AEA67AB /* Release */, 790 | ); 791 | defaultConfigurationIsVisible = 0; 792 | defaultConfigurationName = Release; 793 | }; 794 | F81FFAE4256AEEF2EA87E35B2D38DA1D /* Build configuration list for PBXNativeTarget "AlertUI" */ = { 795 | isa = XCConfigurationList; 796 | buildConfigurations = ( 797 | FC862D3CD36633BDD98AF1434B10C4FC /* Debug */, 798 | 070115ADC142591248563F53DCF8AF8D /* Release */, 799 | ); 800 | defaultConfigurationIsVisible = 0; 801 | defaultConfigurationName = Release; 802 | }; 803 | /* End XCConfigurationList section */ 804 | }; 805 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 806 | } 807 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AlertUI/AlertUI-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AlertUI/AlertUI-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AlertUI : NSObject 3 | @end 4 | @implementation PodsDummy_AlertUI 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AlertUI/AlertUI-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AlertUI/AlertUI-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double AlertUIVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char AlertUIVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AlertUI/AlertUI.modulemap: -------------------------------------------------------------------------------- 1 | framework module AlertUI { 2 | umbrella header "AlertUI-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AlertUI/AlertUI.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/AlertUI 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## AlertUI 5 | 6 | Copyright (c) 2019 farisalbalawi 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 farisalbalawi <xx-301@hotmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | AlertUI 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AlertUI_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AlertUI_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/AlertUI/AlertUI.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/AlertUI/AlertUI.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AlertUI_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AlertUI_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI/AlertUI.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "AlertUI" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AlertUI_Example { 2 | umbrella header "Pods-AlertUI_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Example/Pods-AlertUI_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI/AlertUI.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "AlertUI" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AlertUI_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AlertUI_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AlertUI_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AlertUI_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI/AlertUI.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "AlertUI" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AlertUI_Tests { 2 | umbrella header "Pods-AlertUI_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-AlertUI_Tests/Pods-AlertUI_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AlertUI/AlertUI.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "AlertUI" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import AlertUI 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 farisalbalawi 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AlertUI 2 | 3 | [![CI Status](https://img.shields.io/travis/farisalbalawi/AlertUI.svg?style=flat)](https://travis-ci.org/farisalbalawi/AlertUI) 4 | [![Version](https://img.shields.io/cocoapods/v/AlertUI.svg?style=flat)](https://cocoapods.org/pods/AlertUI) 5 | [![License](https://img.shields.io/cocoapods/l/AlertUI.svg?style=flat)](https://cocoapods.org/pods/AlertUI) 6 | [![Platform](https://img.shields.io/cocoapods/p/AlertUI.svg?style=flat)](https://cocoapods.org/pods/AlertUI) 7 | 8 | ## Example 9 | ![giphy](https://user-images.githubusercontent.com/18473439/68200640-49328f80-ff8e-11e9-9199-869310f13f99.gif) 10 | 11 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 12 | 13 | ## Features 14 | - Easy to customize: change colors, icons, etc. 15 | - Add image 16 | - Add title 17 | - Add messages 18 | - Add icons 19 | - Add button action as you want 20 | - 3 Alert view each one is different 21 | - swift 5 22 | 23 | ## Requirements 24 | - iOS 13 or later 25 | - Xcode 11 or later 26 | 27 | 28 | ## Screenshot 29 | |![Simulator Screen Shot - iPhone 11 Pro Max - 2019-11-05 at 05 28 39](https://user-images.githubusercontent.com/18473439/68201884-a596ae80-ff90-11e9-87bc-207edc1dd64f.png) | ![Simulator Screen Shot - iPhone 11 Pro Max - 2019-11-05 at 05 28 57](https://user-images.githubusercontent.com/18473439/68201017-fdccb100-ff8e-11e9-93c6-cb0336dbaee8.png) | ![Simulator Screen Shot - iPhone 11 Pro Max - 2019-11-05 at 05 29 07](https://user-images.githubusercontent.com/18473439/68201027-01603800-ff8f-11e9-8a55-edd4d27ecba5.png) 30 | 31 | 32 | ## Installation 33 | AlertUI is available through [CocoaPods](https://cocoapods.org/pods/AlertUI). To install 34 | it, simply add the following line to your Podfile: 35 | 36 | ```ruby 37 | pod 'AlertUI' 38 | ``` 39 | 40 | ```ruby 41 | import AlertUI 42 | ``` 43 | 44 | # Functions 45 | ## AlertAction: 46 | ```swift 47 | init(buttonAction:[String: () -> Void], buttonColor: UIColor, imageName:String? ,imageColor:UIColor? ) 48 | ``` 49 | #### Example 50 | ```swift 51 | let buttonAction : [String: () -> Void] = [ "button title": { 52 | print("tapped") 53 | }] 54 | let arrayActions = [ 55 | AlertAction(buttonAction: buttonAction, buttonColor: UIColor.black, imageName: "follow", imageColor: UIColor.black) 56 | ] 57 | ``` 58 | ### show Alert: 59 | ```swift 60 | func showAlertControllerOptions( 61 | icons: UIImage?, 62 | title: String?, 63 | titleColor: UIColor?, 64 | messageColor: UIColor?, 65 | message:String?, 66 | backgroundColor:UIColor?, 67 | lineColor: UIColor?, 68 | DismissTitle: String?, 69 | DismissColor: UIColor?, 70 | DismissTitleColor: UIColor?, 71 | actions: [AlertAction]?) 72 | ``` 73 | 74 | ## AlertActionButtons: 75 | ```swift 76 | init( 77 | buttonAction:[String: () -> Void], 78 | titleColor:UIColor, 79 | backgroundColor:UIColor?, 80 | borderColor:UIColor?, 81 | borderWidth:CGFloat? 82 | ) 83 | ``` 84 | #### Example 85 | ```swift 86 | let Follow : [String: () -> Void] = [ "Follow": { 87 | print("tapped Follow") 88 | }] 89 | 90 | let arrayActions = [ 91 | AlertActionButtons(buttonAction: Follow, titleColor: UIColor.white, backgroundColor: UIColor.red, borderColor: nil, borderWidth: nil), 92 | ] 93 | ``` 94 | ### show Alert: 95 | ```swift 96 | func ShowAlertControllerButtons(icons: UIImage?, 97 | title: String?, 98 | titleColor: UIColor?, 99 | messageColor: UIColor?, 100 | message:String?, 101 | backgroundColor:UIColor?, 102 | lineColor: UIColor?, 103 | DismissTitle: String?, 104 | DismissColor: UIColor?, 105 | DismissTitleColor: UIColor?, 106 | actions: [AlertActionButtons]?) 107 | ``` 108 | 109 | ## Show Alert with only message and image: 110 | ```swift 111 | func showAlert( 112 | icons: UIImage?, 113 | title: String?, 114 | titleColor: UIColor?, 115 | messageColor: UIColor?, 116 | message:String?, 117 | backgroundColor:UIColor?, 118 | DismissTitle: String?, 119 | DismissColor: UIColor?, 120 | DismissTitleColor: UIColor?) 121 | ``` 122 | 123 | ## Author 124 | Faris Albalawi, 125 | FA.FarisAlbalawi@gmail.com 126 | 127 | ## License 128 | AlertUI is available under the MIT license. See the LICENSE file for more info. 129 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------