cosmicmind

Cosmicmind/Material: difference between NavigationController and ToolbarController

拥有回忆 提交于 2020-01-06 17:57:25
问题 I'm working on a app that is written with swift3 in Xcode8. My app implements the Cosmicmind-material-framework. While the working i tried to understand what the difference between NavigationController and ToolbarController is. (maybe someone can additionaly explain the difference to PageTabBarController, too) I don't really get it because it seems that the navigationController contains a toolbarController. So why should i use both if i can only use the navigationController and prepare all

Material Ripple Effect for UICollectionView Cell

↘锁芯ラ 提交于 2019-12-24 09:07:05
问题 I am trying to create a material ripple effect for a UICollectioView cell. For Android, there are several material design options to do so, but for iOS that does not appear to be the case. Below is my custom cell I am using as the prototype to populate the UICollectioView: import UIKit class PollCell: UICollectionViewCell { @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var pollQuestion: UILabel! } Where I initialize the CollectioViewCell: override func viewDidLoad() { super

CosmicMind/Material SideMenu, how to change viewController?

╄→гoц情女王★ 提交于 2019-12-23 05:19:30
问题 I am using CosmicMind/Material with a SideMenu, like in this example: here, but I can not figure out how to change (load) another view controller when I push a cell of the Menu. To illustrate, in the example Material/Example/App, I would like to click on "inbox" and load the InboxViewController. 回答1: To change the mainViewController area of the SideNavigationViewController, use the transitionFromMainViewController method. You would also need a reference to the SideNav... and to get one from

What's the easiest way to play with Material Examples?

血红的双手。 提交于 2019-12-12 09:25:52
问题 I cloned the repro and opened the Material xcode worspace. What is the best way to play with the Examples? When I pick one of the examples under Programmatic, e.g. MaterialLayout I get runtime errors: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /Users/robcecil/Library/Developer/Xcode/DerivedData/Material-gtachugnpsgijdekhozchyiudycc/Build/Products/Debug-iphonesimulator/Material.framework/Material Reason: image not found In other cases, it has a hard time

How to implement a SideNavigationViewController into a UIViewController?

混江龙づ霸主 提交于 2019-12-06 10:44:34
问题 A little confused on how to implement this into my main view controller. The example project shows it as a navigation controller, but I wasn't able to add an existing class on a fresh navigation controller or my current UIViewController. I could just be implementing it wrong though. Much appreciation if I can gain some traction on how to work with these. 回答1: If you could share some code that would be great. How things work: Navigation Controllers There are currently 4 different Navigation

What's the easiest way to play with Material Examples?

元气小坏坏 提交于 2019-12-04 21:06:32
I cloned the repro and opened the Material xcode worspace. What is the best way to play with the Examples? When I pick one of the examples under Programmatic, e.g. MaterialLayout I get runtime errors: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /Users/robcecil/Library/Developer/Xcode/DerivedData/Material-gtachugnpsgijdekhozchyiudycc/Build/Products/Debug-iphonesimulator/Material.framework/Material Reason: image not found In other cases, it has a hard time finding the Material framework... Thanks To setup the example projects, you would need to compile the

swift 3: create a material-design-chip

此生再无相见时 提交于 2019-12-01 14:41:17
heyhey, since a few days I attempt to create the "Material-Design-Chip", but only with half success. The attempt with the most success I had, is to make a subclass from "Button" (Button is a subclass from UIButton created from cosmicmind in his MaterialDesign-Framework for swift). For the people who doesn't know I mean with "chips": click here my examples: The simple / non-deletable chip import UIKit import Material class ChipButton: Button { override func prepare() { super.prepare() cornerRadiusPreset = .cornerRadius5 backgroundColor = UIColor.lightGray titleColor = Color.darkText.primary

swift 3: create a material-design-chip

只愿长相守 提交于 2019-12-01 12:40:16
问题 heyhey, since a few days I attempt to create the "Material-Design-Chip", but only with half success. The attempt with the most success I had, is to make a subclass from "Button" (Button is a subclass from UIButton created from cosmicmind in his MaterialDesign-Framework for swift). For the people who doesn't know I mean with "chips": click here my examples: The simple / non-deletable chip import UIKit import Material class ChipButton: Button { override func prepare() { super.prepare()