codeandtheory / ytags-ios Goto Github PK
View Code? Open in Web Editor NEWAccessible and customizable tag user interface elements for iOS.
License: Apache License 2.0
Accessible and customizable tag user interface elements for iOS.
License: Apache License 2.0
1.7.0
+Images
enum to SystemImage
instead of ImageAsset
and delete the implementation of loadImage()
textStyle
to return .callout
to achieve the image size scalingrenderingMode
to return .alwaysTemplate
Round rect with fixed corner radius can look weird when Dynamic Type has scaled up the tag's text.
We should add the option to specify a scaledRoundRect(cornerRadius: CGFloat)
to TagView.Appearance.Shape
enum.
It should apply a corner radius that is scaled relative to the dynamic text. We should be able to divide label.layout.lineHeight
by label.typography.lineHeight
to get the scale factor to multiply the corner radius by.
Hide the Pull Request Template file by moving it to the .github directory.
Rename PULL_REQUEST_TEMPLATE.md
to .github/pull_request_template.md
Update link in README under the ### Pull Requests
section to reflect the new name and location.
UIColor
's such as .label
can support both dark and light mode. That's because they're really a function rather than an absolute color value, and UIKit is smart enough to re-evaluate this function and update the color when the color mode changes.
CGColor
thought is just a fixed value. That's how we set the border color
layer.borderColor = appearance.borderColor.cgColor
This doesn't update when the user switches between dark mode and light mode (or toggles increased contrast on/off).
What we need to do is:
updateBorderColor()
and call that as part of updateViewAppearance
.traitCollectionDidChange
to also check for traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection
and if true then call updateBorderColor()
.This will update the border color when color mode changes.
Steps to reproduce bug:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.