Skip to content

Commit

Permalink
clean up internal methods; update version
Browse files Browse the repository at this point in the history
  • Loading branch information
Animaxx committed May 31, 2020
1 parent 4b8cb43 commit e8f1cdd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions A_StyleInjection.podspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

Pod::Spec.new do |s|
s.name = "A_StyleInjection"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "Style Injection"
s.description = <<-DESC
Allow to customize whole project style via configuration file, at any moment of development life cycle
Allow to customize whole project style without extra coding, at any moment of development life cycle
DESC

s.license = "MIT"
Expand Down
10 changes: 0 additions & 10 deletions A_StyleInjection/A_StyleManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,4 @@
- (void)applyStyle;


@end

// Private header functions
@interface A_StyleManager()

/// Fetch style setting for appointed view
///
/// @param view Dictionary of style setting
- (NSDictionary<NSString *, id> * _Nonnull)getNormalizedStyle:(UIView * _Nonnull)view;

@end
1 change: 1 addition & 0 deletions A_StyleInjection/Extensions/UIView+Injuection.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "UIView+Injuection.h"
#import <objc/runtime.h>
#import "A_StyleManager.h"
#import "PrivateMethodsHeader.h"

@implementation UIView(Injuection)

Expand Down
15 changes: 13 additions & 2 deletions A_StyleInjection/PrivateMethodsHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UIView()
@interface UIView(PrivateStyleInjection)

/// Reponse path from curent to last UI View
/// return: [[className (Optional: NSNull) , styleIdentifier (Optional: NSNull)]]
- (NSArray<NSArray<NSString *> *> *)styleResponsePath;
- (NSArray<NSArray<NSString *> *> * _Nonnull)styleResponsePath;

/// Trace response chain and save result to `parentController` and `styleResponsePath`
- (BOOL)__traceResponseChain;

@end

// Private header functions
@interface A_StyleManager(PrivateStyleInjection)

/// Fetch style setting for appointed view
///
/// @param view Dictionary of style setting
- (NSDictionary<NSString *, id> * _Nonnull)getNormalizedStyle:(UIView * _Nonnull)view;

@end

0 comments on commit e8f1cdd

Please sign in to comment.