Render themes: SVG resources on iOS

This commit is contained in:
Longri
2016-07-17 09:38:43 +02:00
committed by Emux
parent 166b0ab772
commit 4c5de7453d
34 changed files with 1919 additions and 3 deletions

View File

@@ -0,0 +1,45 @@
//
// SVGTabBarItem.h
// SVGgh
//
// Created by Glenn Howes on 7/9/15.
// Copyright © 2015 Generally Helpful. All rights reserved.
//
#if defined(__has_feature) && __has_feature(modules)
@import Foundation;
@import UIKit;
#else
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
NS_ASSUME_NONNULL_BEGIN
@interface SVGTabBarItem : UITabBarItem
/*! @property artworkPath
* @brief optional subpath to an svg file inside the resources folder, svg is displayed inside the button at appropriate size
* @attention do not append '.svg'
*/
@property(nonatomic, strong) IBInspectable NSString* artworkPath;
/*! @property selectedArtworkPath
* @brief optional subpath to an svg file inside the resources folder, svg is displayed inside the button at appropriate size. When button is in selected state.
* @attention do not append '.svg'
*/
@property(nonatomic, strong) IBInspectable NSString* __nullable selectedArtworkPath;
/*! @property baseColor
* @brief currentColor used when the tab is not selected
*/
@property(nonatomic, strong) IBInspectable UIColor* __nullable baseColor;
/*! @property baseColor
* @brief currentColor used when the tab is selected
*/
@property(nonatomic, strong) IBInspectable UIColor* __nullable selectedColor;
+(void)makeSureLoaded;
@end
NS_ASSUME_NONNULL_END