Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Deprecate Components #114

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions Example/LegacyExampleViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
//

#import "MLUIActionButtonViewController.h"
#import "PriceViewController.h"
#import "LegacyExampleViewController.h"
#import "MLUISnackBarExampleViewController.h"
#import "MLUIActionButtonInXibViewController.h"

@interface LegacyExampleViewController () <UITableViewDataSource, UITableViewDelegate>
Expand All @@ -32,24 +30,10 @@ - (void)viewDidLoad
[self.view addSubview:self.tableView];

// El nombre del componente, matchea con un metodo con el mismo nombre que pushea un controller que muestra el componente
NSArray *arrayToSort = @[@"mlUIPriceView", @"mlUIActionButton", @"mlUIActionButtonIntoXib", @"mlUIImageTransformations", @"mlUISnackBarView"];
NSArray *arrayToSort = @[@"mlUIActionButton", @"mlUIActionButtonIntoXib", @"mlUIImageTransformations"];
[self sortArrayByName:arrayToSort];
}

- (void)mlUIPriceView
{
PriceViewController *controller = [[PriceViewController alloc] initWithNibName:nil bundle:nil];
[self.navigationController pushViewController:controller animated:YES];
}

- (void)mlUISnackBarView
{
MLUISnackBarExampleViewController *exampleViewController = [[MLUISnackBarExampleViewController alloc] initWithNibName:nil bundle:nil];
[self.navigationController pushViewController:exampleViewController animated:YES];

[exampleViewController showSnackBar];
}

- (void)mlUIActionButton
{
MLUIActionButtonViewController *controller = [[MLUIActionButtonViewController alloc] initWithNibName:nil bundle:nil];
Expand Down
13 changes: 0 additions & 13 deletions Example/MLLongPressMenu/MLContextualMenuTableViewController.h

This file was deleted.

83 changes: 0 additions & 83 deletions Example/MLLongPressMenu/MLContextualMenuTableViewController.m

This file was deleted.

24 changes: 0 additions & 24 deletions Example/MLLongPressMenu/MLContextualMenuTableViewController.xib

This file was deleted.

10 changes: 0 additions & 10 deletions Example/MLWidgetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#import <MLUI/UIColor+MLColorPalette.h>
#import "MLButtonViewController.h"
#import "MLTitledTextFieldViewController.h"
#import "MLContextualMenuTableViewController.h"
#import <MLUI/MLGenericErrorView.h>
#import "MLTextViewController.h"

Expand Down Expand Up @@ -58,9 +57,6 @@ - (void)viewDidLoad
self.textFieldButton.buttonTitle = @"Titled TextField";
[self.textFieldButton addTarget:self action:@selector(showTextField:) forControlEvents:UIControlEventTouchUpInside];

self.contextualMenuButton.buttonTitle = @"Contextual Menu";
[self.contextualMenuButton addTarget:self action:@selector(showContextualMenu:) forControlEvents:UIControlEventTouchUpInside];

self.errorViewButton.buttonTitle = @"Error View";
[self.errorViewButton addTarget:self action:@selector(showErrorView:) forControlEvents:UIControlEventTouchUpInside];

Expand Down Expand Up @@ -113,12 +109,6 @@ - (void)showTextField:(id)sender
[self.navigationController pushViewController:controller animated:YES];
}

- (void)showContextualMenu:(id)sender
{
MLContextualMenuTableViewController *controller = [[MLContextualMenuTableViewController alloc]init];
[self.navigationController pushViewController:controller animated:YES];
}

- (void)showErrorView:(id)sender
{
UIViewController *errorViewController = [[UIViewController alloc] init];
Expand Down
12 changes: 5 additions & 7 deletions Example/MLWidgetsViewController.xib
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12120" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
Expand Down Expand Up @@ -74,7 +72,7 @@
<constraint firstAttribute="height" constant="48" id="q7c-XY-qg4"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0Zi-e4-Chq" customClass="MLButton">
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0Zi-e4-Chq" customClass="MLButton">
<rect key="frame" x="37.5" y="283" width="300" height="48"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="Pcu-aX-Oes"/>
Expand All @@ -89,7 +87,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uwm-Hx-GxD" userLabel="Text View Button" customClass="MLButton">
<rect key="frame" x="37" y="539" width="300" height="48"/>
<rect key="frame" x="37.5" y="539" width="300" height="48"/>
<constraints>
<constraint firstAttribute="width" constant="300" id="lW6-Q3-eZC"/>
<constraint firstAttribute="height" constant="48" id="zhc-mL-sUP"/>
Expand Down
13 changes: 0 additions & 13 deletions Example/PriceView/PriceViewController.h

This file was deleted.

51 changes: 0 additions & 51 deletions Example/PriceView/PriceViewController.m

This file was deleted.

55 changes: 0 additions & 55 deletions Example/PriceView/PriceViewController.xib

This file was deleted.

15 changes: 0 additions & 15 deletions Example/SnackBar/MLUISnackBarExampleViewController.h

This file was deleted.

37 changes: 0 additions & 37 deletions Example/SnackBar/MLUISnackBarExampleViewController.m

This file was deleted.

Loading