From af3d342eb15e22e69bcdc858893da3258e698032 Mon Sep 17 00:00:00 2001 From: Grigory Ulanov Date: Sat, 29 Oct 2016 22:50:06 +0300 Subject: [PATCH] frame fix --- SKPhotoBrowser/SKNavigationBar.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SKPhotoBrowser/SKNavigationBar.swift b/SKPhotoBrowser/SKNavigationBar.swift index b16380e..54ac772 100644 --- a/SKPhotoBrowser/SKNavigationBar.swift +++ b/SKPhotoBrowser/SKNavigationBar.swift @@ -63,10 +63,10 @@ class SKNavigationBar: UIView { override func layoutSubviews() { if UIDevice.current.orientation == .portrait { countLabel?.frame = CGRect(x: 0, y: 20, width: bounds.width, height: bounds.height) - doneButton?.frame = CGRect(x: 20, y: 20, width: 80, height: bounds.height) + doneButton?.frame = CGRect(x: 0, y: 20, width: 85, height: bounds.height) } else { countLabel?.frame = bounds - doneButton?.frame = CGRect(x: 20, y: 0, width: 80, height: bounds.height) + doneButton?.frame = CGRect(x: 0, y: 0, width: 85, height: bounds.height) } }