Skip to content

Commit

Permalink
Replace init-ializable struct with enums
Browse files Browse the repository at this point in the history
  • Loading branch information
giulio92 committed May 13, 2019
1 parent a9edeb1 commit 1be2e8c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PanModal/Animator/PanModalAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct PanModalAnimator {
/**
Constant Animation Properties
*/
struct Constants {
enum Constants {
static let defaultTransitionDuration: TimeInterval = 0.5
}

Expand Down
2 changes: 1 addition & 1 deletion PanModal/Controller/PanModalPresentationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class PanModalPresentationController: UIPresentationController {
/**
Constants
*/
struct Constants {
enum Constants {
static let indicatorYOffset = CGFloat(8.0)
static let snapMovementSensitivity = CGFloat(0.7)
static let dragIndicatorSize = CGSize(width: 36.0, height: 5.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit

class UserGroupHeaderView: UIView {

struct Constants {
enum Constants {
static let contentInsets = UIEdgeInsets(top: 12.0, left: 16.0, bottom: 12.0, right: 16.0)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit

class UserGroupMemberCell: UITableViewCell {

struct Constants {
enum Constants {
static let contentInsets = UIEdgeInsets(top: 8.0, left: 16.0, bottom: 8.0, right: 16.0)
static let avatarSize = CGSize(width: 36.0, height: 36.0)
}
Expand Down

0 comments on commit 1be2e8c

Please sign in to comment.