From 2021f90a91b93e005be0342345569b880d364c28 Mon Sep 17 00:00:00 2001 From: Lorenzo Greco Date: Sun, 30 Dec 2018 13:21:40 +0100 Subject: [PATCH 1/4] Update Readme file --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 9861635..cf51760 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ ![logo](media/header_btn.png) -[![build](https://travis-ci.org/loregr/LGButton.svg?branch=master)](https://travis-ci.org/loregr/LGButton) ![platform](https://img.shields.io/badge/platform-ios-blue.svg) [![license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](./LICENSE.md) [![Version](https://img.shields.io/cocoapods/v/LGButton.svg?style=flat)](http://cocoadocs.org/docsets/LGButton) [![gitcheese.com](https://s3.amazonaws.com/gitcheese-ui-master/images/badge.svg)](https://www.gitcheese.com/donate/users/7204248/repos/94624954) - +[![build](https://travis-ci.org/loregr/LGButton.svg?branch=master)](https://travis-ci.org/loregr/LGButton) ![platform](https://img.shields.io/badge/platform-ios-blue.svg) [![license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](./LICENSE.md) [![Version](https://img.shields.io/cocoapods/v/LGButton.svg?style=flat)](http://cocoadocs.org/docsets/LGButton) A fully customisable subclass of the native `UIControl` which allows you to create beautiful buttons without writing any line of code. From 4da71d7e731ddfa465e6d30e283cdd5f68dea3bf Mon Sep 17 00:00:00 2001 From: l3bel Date: Sun, 13 Jan 2019 02:43:33 +0100 Subject: [PATCH 2/4] Bug Fix: rootView added twice, AutoLayout warnings --- LGButton/Classes/LGButton.swift | 1 + LGButton/Resources/LGButton.xib | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LGButton/Classes/LGButton.swift b/LGButton/Classes/LGButton.swift index be3133b..b0b3ca9 100644 --- a/LGButton/Classes/LGButton.swift +++ b/LGButton/Classes/LGButton.swift @@ -631,6 +631,7 @@ public class LGButton: UIControl { // MARK: - Xib file // MARK: fileprivate func xibSetup() { + guard rootView == nil else { return } rootView = loadViewFromNib() rootView.frame = bounds rootView.autoresizingMask = [.flexibleWidth, .flexibleHeight] diff --git a/LGButton/Resources/LGButton.xib b/LGButton/Resources/LGButton.xib index b2d041a..80812ec 100644 --- a/LGButton/Resources/LGButton.xib +++ b/LGButton/Resources/LGButton.xib @@ -4,7 +4,6 @@ - @@ -47,8 +46,8 @@ - - + +