Repository navigation
Releases: Passiolife/Passio-Nutrition-AI-iOS-UI-Module-Distribution
Releases · Passiolife/Passio-Nutrition-AI-iOS-UI-Module-Distribution
Release list
1.0.9
This release includes following bug fixes:
- Logging from favourites was replaced in diary
- Meal plans tab - data not loading at first
- In some cases, food were logged but colour for those calendar dates were not green
- Quick Suggestions food name not capitalised
1.0.8
1.0.7
- From weekly/monthly adherence, user can jump to Diary for specific date
- Bug fixes and enhancements
PassioConnector changes:
Following methods have been added to PassioConnector:
func fetchDayLogFor(fromDate: Date, toDate: Date, completion: @escaping ([DayLog]) -> Void)func fetchAllUserFoodsMatching(name: String, completion: @escaping ([FoodRecordV3]) -> Void)
1.0.6
1.0.5
1.0.4
1.0.4
- You can fully modify the colors of the PassioNutritionUI module, including the primary, secondary, navigation, and status bar.
1.0.3
1.0.3
- Added functionality for changing UI module theme.
How to use:
- In your AppDelegate.swift file go to the
didFinishLaunchingWithOptionsfunction and add below code.
func application(_ application: UIApplication, didFinishLaunchingWithOptions
launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
setThemeAndNavigationAppearance()
return true
}
private func setThemeAndNavigationAppearance() {
PassioThemeManager.shared.setAppTheme(
theme: PassioTheme(
primaryColor: "#FF5600",
secondaryTabColor: "#D1D5DB",
navigationColor: "#f0e6ff",
statusBarColor: "#f0e6ff"
)
)
let appearance = UINavigationBarAppearance()
appearance.configureWithTransparentBackground()
appearance.backgroundColor = .navigationColor
appearance.titleTextAttributes = [.font: UIFont.inter(type: .bold, size: 22),
.foregroundColor: UIColor.gray900]
UINavigationBar.appearance().standardAppearance = appearance
UINavigationBar.appearance().scrollEdgeAppearance = appearance
UINavigationBar.appearance().compactAppearance = appearance
}