Skip to content

Commit

Permalink
minor naming change and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Sep 19, 2016
1 parent bcf7855 commit e95a2b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pod/Classes/DialogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class DialogView : UIView {
public var buttonHeight: CGFloat = 40
public var buttonPadding: CGFloat = 12

public var imageSize: CGSize = CGSizeMake(100, 100)
public var topImageSize: CGSize = CGSizeMake(100, 100)

public var canvasView: UIView = UIView()
public var curtainView: DialogCurtainView = DialogCurtainView()
Expand All @@ -42,7 +42,7 @@ public class DialogView : UIView {

public var object: AnyObject? // Can be used for example to store NSIndexPath, CoreData object, etc ...
public var isShown = false
private var buttonAlignment: DialogViewButtonAlignment = .Default
public var buttonAlignment: DialogViewButtonAlignment = .Default

// MARK: Private variables

Expand Down Expand Up @@ -106,8 +106,8 @@ public class DialogView : UIView {
if let topImgView = topImageView {
canvasView.addSubview(topImgView)
topImgView.snp_makeConstraints() {make in
make.width.equalTo(imageSize.width)
make.height.equalTo(imageSize.height)
make.width.equalTo(topImageSize.width)
make.height.equalTo(topImageSize.height)
make.top.equalTo(innerDialogPadding)
make.centerX.equalTo(canvasView)
}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ let alert: DialogView = DialogView(buttonAlignment: .OneRow)

```

####It might look like this:
![Screenshot 3](https://raw.githubusercontent.com/manGoweb/DialogView/master/_orig/screenshot3.jpg "Screenshot 3")


#### Installation

Expand Down
Binary file added _orig/screenshot3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e95a2b7

Please sign in to comment.