Loading...
Searching...
No Matches

Configuration for NCFollowMeButton widget. Allows customization of icons, styles and layout. More...

#include <com/navigine/idl/objc/widgets/NCFollowMeButtonConfig.h>

Inherits NSObject.

Class Methods

(instancetype) + defaultConfig
 

Properties

UIImage * followMeIcon
 
UIImage * followMeIconActive
 
UIColor * buttonBackgroundColor
 
UIColor * accentColor
 
UIColor * textColor
 
CGFloat buttonWidth
 
CGFloat buttonHeight
 
UIEdgeInsets insets
 

Detailed Description

Configuration for NCFollowMeButton widget. Allows customization of icons, styles and layout.

Swift code snippet:

let followMeConfig = NCFollowMeButtonConfig.defaultConfig()
followMeConfig.accentColor = UIColor(red: 48/255, green: 170/255, blue: 217/255, alpha: 1) // 0xFF30AAD9
followMeConfig.buttonBackgroundColor = UIColor(red: 250/255, green: 250/255, blue: 250/255, alpha: 242/255) // 0xF2FAFAFA
followMeConfig.textColor = UIColor(red: 21/255, green: 45/255, blue: 71/255, alpha: 1) // 0xFF152D47
followMeConfig.buttonWidth = 48
followMeConfig.buttonHeight = 48
// followMeConfig.followMeIcon = UIImage(named: "my_follow_icon")
// followMeConfig.followMeIconActive = UIImage(named: "my_follow_icon_active")

Objective C code snippet:

NCFollowMeButtonConfig *followMeConfig = [NCFollowMeButtonConfig defaultConfig];
followMeConfig.accentColor = [UIColor colorWithRed:48/255.0 green:170/255.0 blue:217/255.0 alpha:1]; // 0xFF30AAD9
followMeConfig.buttonBackgroundColor = [UIColor colorWithRed:250/255.0 green:250/255.0 blue:250/255.0 alpha:242/255.0]; // 0xF2FAFAFA
followMeConfig.textColor = [UIColor colorWithRed:21/255.0 green:45/255.0 blue:71/255.0 alpha:1]; // 0xFF152D47
followMeConfig.buttonWidth = 48;
followMeConfig.buttonHeight = 48;
// followMeConfig.followMeIcon = [UIImage imageNamed:@"my_follow_icon"];
// followMeConfig.followMeIconActive = [UIImage imageNamed:@"my_follow_icon_active"];

Definition at line 23 of file NCFollowMeButtonConfig.h.

Method Documentation

◆ defaultConfig

+ (instancetype) defaultConfig

Definition at line 9 of file NCFollowMeButtonConfig.m.

Property Documentation

◆ accentColor

- (UIColor*) accentColor
readwritenonatomicstrong

Definition at line 28 of file NCFollowMeButtonConfig.h.

◆ buttonBackgroundColor

- (UIColor*) buttonBackgroundColor
readwritenonatomicstrong

Definition at line 27 of file NCFollowMeButtonConfig.h.

◆ buttonHeight

- (CGFloat) buttonHeight
readwritenonatomicassign

0 = default 48

Definition at line 31 of file NCFollowMeButtonConfig.h.

◆ buttonWidth

- (CGFloat) buttonWidth
readwritenonatomicassign

0 = default 48

Definition at line 30 of file NCFollowMeButtonConfig.h.

◆ followMeIcon

- (UIImage*) followMeIcon
readwritenonatomicstrong

Definition at line 25 of file NCFollowMeButtonConfig.h.

◆ followMeIconActive

- (UIImage*) followMeIconActive
readwritenonatomicstrong

Definition at line 26 of file NCFollowMeButtonConfig.h.

◆ insets

- (UIEdgeInsets) insets
readwritenonatomicassign

UIEdgeInsetsZero = use defaults

Definition at line 32 of file NCFollowMeButtonConfig.h.

◆ textColor

- (UIColor*) textColor
readwritenonatomicstrong

Definition at line 29 of file NCFollowMeButtonConfig.h.


The documentation for this class was generated from the following files: