diff --git a/.gitignore b/.gitignore index 425ce0c..35cfb4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .DS_Store xcuserdata -xcshareddata +project.xcworkspace diff --git a/Demos/TinderLike/TinderLike.xcodeproj/xcshareddata/xcschemes/TinderLike.xcscheme b/Demos/TinderLike/TinderLike.xcodeproj/xcshareddata/xcschemes/TinderLike.xcscheme new file mode 100644 index 0000000..819bb99 --- /dev/null +++ b/Demos/TinderLike/TinderLike.xcodeproj/xcshareddata/xcschemes/TinderLike.xcscheme @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demos/TwitterLike/TwitterLike.xcodeproj/xcshareddata/xcschemes/TwitterLike.xcscheme b/Demos/TwitterLike/TwitterLike.xcodeproj/xcshareddata/xcschemes/TwitterLike.xcscheme new file mode 100644 index 0000000..511bbda --- /dev/null +++ b/Demos/TwitterLike/TwitterLike.xcodeproj/xcshareddata/xcschemes/TwitterLike.xcscheme @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SLPagingViewSwift/SLPagingViewSwift.swift b/SLPagingViewSwift/SLPagingViewSwift.swift index c382c74..3aa8b0d 100644 --- a/SLPagingViewSwift/SLPagingViewSwift.swift +++ b/SLPagingViewSwift/SLPagingViewSwift.swift @@ -240,8 +240,7 @@ public class SLPagingViewSwift: UIViewController, UIScrollViewDelegate { self.scrollView.contentSize = CGSize(width: width, height: height) var i: Int = 0 for (key, v) in self.views { - let rect: CGRect = CGRectMake(self.SCREENSIZE.width * CGFloat(i), 0, self.SCREENSIZE.width, self.SCREENSIZE.height) - v.frame = rect + v.frame = CGRectMake(self.SCREENSIZE.width * CGFloat(i), 0, self.SCREENSIZE.width, self.SCREENSIZE.height) self.scrollView.addSubview(v) i++ }