Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SweetAlert/SweetAlert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public enum AlertStyle {
public class SweetAlert: UIViewController {
let kBakcgroundTansperancy: CGFloat = 0.7
let kHeightMargin: CGFloat = 10.0
let KTopMargin: CGFloat = 20.0
let kTopMargin: CGFloat = 20.0
let kWidthMargin: CGFloat = 10.0
let kAnimatedViewHeight: CGFloat = 70.0
let kMaxHeight: CGFloat = 300.0
Expand Down Expand Up @@ -83,7 +83,7 @@ public class SweetAlert: UIViewController {
let mainScreenBounds = UIScreen.mainScreen().bounds
self.view.frame.size = mainScreenBounds.size
let x: CGFloat = kWidthMargin
var y: CGFloat = KTopMargin
var y: CGFloat = kTopMargin
let width: CGFloat = kContentWidth - (kWidthMargin*2)

if animatedView != nil {
Expand Down