Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

* Upgraded to Swift 5 and Xcode 10.2 project settings#6

Open
Song-Street wants to merge 8 commits into
MarioIannotta:masterfrom
Song-Street:Swift5-Xcode10_2
Open

* Upgraded to Swift 5 and Xcode 10.2 project settings#6
Song-Street wants to merge 8 commits into
MarioIannotta:masterfrom
Song-Street:Swift5-Xcode10_2

Conversation

@Song-Street
Copy link
Copy Markdown

  • Upgraded to Swift 5 and Xcode 10.2 project settings

@MarioIannotta MarioIannotta self-requested a review June 3, 2019 13:58
Copy link
Copy Markdown
Owner

@MarioIannotta MarioIannotta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there, thanks for the effort, I've pointed out a few issues

Comment thread MIAlertController.podspec
spec.version = '1.4'
spec.license = { :type => 'MIT', :file => 'LICENSE' }
spec.homepage = 'https://github.com/MarioIannotta/MIAlertController'
spec.homepage = 'https://github.com/Song-Street/MIAlertController'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this, let's point to the master repository

Comment thread MIAlertController.podspec
spec.authors = { 'Mario Iannotta' => 'info@marioiannotta.com' }
spec.summary = 'A simple fully customizable alert controller'
spec.source = { :git => 'https://github.com/MarioIannotta/MIAlertController.git', :tag => spec.version.to_s }
spec.source = { :git => 'https://github.com/Song-Street/MIAlertController.git', :tag => spec.version.to_s, }
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this too


// Message
public var messageLabelFont = UIFont.systemFont(ofSize: 16)
public var messageLabelFont = UIFont.systemFont(ofSize: 16, weight: UIFont.Weight.light)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be UIFont.systemFont(ofSize: 16, weight: .light)


public enum `Type` {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't commit this kind of changes

font: UIFont.systemFont(ofSize: 16),
textColor: UIColor(red: 33/255.0, green: 129/255.0, blue: 247/255.0, alpha: 1),
textAlignment: .center,
textAlignment: UIControl.ContentHorizontalAlignment.center,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could by just .center

let button = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: config.buttonHeight))

button.setTitle(title, for: UIControlState())
button.setTitle(title, for: UIControl.State())
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be just .State()


transitionContext.completeTransition(completed)

}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As written before, please don't commit insubstantial changes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants