Skip to content

Commit

Permalink
FIX: Pod issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Christos Kasketis committed Nov 27, 2015
1 parent 2a9d4dc commit 2403b49
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Very useful and handy for network related issues and bugs

Implemented in Swift 2.1 - bridged also for Objective-C

Current version: 1.3
Current version: 1.3.1

Feel free to contribute :)

Expand Down
4 changes: 2 additions & 2 deletions netfox.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "netfox"
s.version = "1.3"
s.version = "1.3.1"
s.summary = "A lightweight, one line setup, iOS network debugging library!"

s.description = <<-DESC
Expand All @@ -11,7 +11,7 @@ DESC
s.screenshots = "https://raw.githubusercontent.com/kasketis/netfox/master/assets/overview0_2.gif"
s.license = 'MIT'
s.author = "Christos Kasketis"
s.source = { :git => "https://github.com/kasketis/netfox.git", :tag => '1.3' }
s.source = { :git => "https://github.com/kasketis/netfox.git", :tag => '1.3.1' }

s.platform = :ios, '8.0'
s.requires_arc = true
Expand Down
17 changes: 0 additions & 17 deletions netfox/NFXHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,20 +192,3 @@ extension UIImage
return UIImage(data: NFXAssets.getImage(NFXImage.SETTINGS), scale: 1.7)!
}
}

extension UIScreen {

enum SizeType: CGFloat {
case Unknown = 0.0
case iPhone4 = 960.0
case iPhone5 = 1136.0
case iPhone6 = 1334.0
case iPhone6Plus = 1920.0
}

var sizeType: SizeType {
let height = nativeBounds.height
guard let sizeType = SizeType(rawValue: height) else { return .Unknown }
return sizeType
}
}
4 changes: 2 additions & 2 deletions netfox/NFXListCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class NFXListCell: UITableViewCell

self.circleView = UIView(frame: CGRectZero)
self.circleView.backgroundColor = UIColor.NFXGray44Color()
self.circleView.layer.cornerRadius = 4
self.circleView.alpha = 0.2
contentView.addSubview(self.circleView)

self.leftSeparator = UIView(frame: CGRectZero)
Expand Down Expand Up @@ -97,8 +99,6 @@ class NFXListCell: UITableViewCell
self.typeLabel.frame = CGRectMake(CGRectGetMaxX(methodLabel.frame) + padding, CGRectGetMaxY(URLLabel.frame), 180, frame.height - CGRectGetMaxY(URLLabel.frame) - padding)

self.circleView.frame = CGRectMake(CGRectGetMaxX(self.URLLabel.frame) + 5, 17, 8, 8)
self.circleView.layer.cornerRadius = 4
self.circleView.alpha = 0.2

self.leftSeparator.frame = CGRectMake(0, frame.height - 1, CGRectGetWidth(self.statusView.frame), 1)
self.rightSeparator.frame = CGRectMake(CGRectGetMaxX(self.leftSeparator.frame), frame.height - 1, frame.width - CGRectGetMaxX(self.leftSeparator.frame), 1)
Expand Down
9 changes: 5 additions & 4 deletions netfox/NFXSettingsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,23 @@ class NFXSettingsController: NFXGenericController, UITableViewDelegate, UITableV
}

func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat
{
{
let iPhone4s = (UIScreen.mainScreen().bounds.height == 480)
switch section {
case 0:
if UIScreen.mainScreen().sizeType == .iPhone4 {
if iPhone4s {
return 20
} else {
return 40
}
case 1:
if UIScreen.mainScreen().sizeType == .iPhone4 {
if iPhone4s {
return 50
} else {
return 60
}
case 2:
if UIScreen.mainScreen().sizeType == .iPhone4 {
if iPhone4s {
return 25
} else {
return 50
Expand Down

0 comments on commit 2403b49

Please sign in to comment.