开源软件名称(OpenSource Name):Ramotion/reel-search开源软件地址(OpenSource Url):https://github.com/Ramotion/reel-search开源编程语言(OpenSource Language):Swift 98.0%开源软件介绍(OpenSource Introduction):REEL SEARCHReel Search is a Swift UI controller that allows you to choose options from a listWe specialize in the designing and coding of custom UI for Mobile Apps and Websites.Stay tuned for the latest updates:RAMReelRequirements
InstallationWe recommend using CocoaPods to install our library. Just put this in your pod 'RAMReel' or Carthage users can simply add
UsageIn order to use our control you need to implement the following: Types
Now you can use those types as generic parameters of type declaration of RAMReel<CellClass, TextFieldClass, DataSource> ValuesNext you need to create an instance of
Let's use it to create an instance of let ramReel = RAMReel<CellClass, TextFieldClass, DataSource>(frame: frame, dataSource: dataSource, placeholder: placeholder, hook: hook) Adding action hooksTo add extra actions you may append ramReel.hooks.append { data in
// your code goes here
} Putting on the viewAnd the final step, showing ramReel.view.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
yourView.addSubview(ramReel.view) If you have visual problems, try calling Like this: override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
ramReel.prepareForViewing()
} ThemingIf you want to change To do so, you just to have to implement the Or you can just use the predefined instance of type let textColor: UIColor
let listBackgroundColor: UIColor
let font: UIFont
let theme = RAMTheme(textColor: textColor, listBackgroundColor: listBackgroundColor, font: font) DocsSee more at RAMReel docs |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论