Skip to content

Commit

Permalink
Merge iOS sizes
Browse files Browse the repository at this point in the history
Recent versions of Xcode seem to generate only a single size for iOS
  • Loading branch information
fwcd committed Sep 28, 2023
1 parent 799c761 commit 62039ad
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions appicongen/size.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class IconSize:
size: Union[int, Fraction]
scale: int
aspect_ratio: Union[int, Fraction] = 1
platform: Optional[str] = None
subtype: Optional[str] = None
role: Optional[str] = None

Expand Down Expand Up @@ -56,23 +57,7 @@ def __str__(self) -> str:

ICON_SIZES = {
'ios': [
IconSize(idiom='iphone', size=20, scale=2),
IconSize(idiom='iphone', size=20, scale=3),
IconSize(idiom='iphone', size=29, scale=2),
IconSize(idiom='iphone', size=29, scale=3),
IconSize(idiom='iphone', size=40, scale=2),
IconSize(idiom='iphone', size=40, scale=3),
IconSize(idiom='iphone', size=60, scale=2),
IconSize(idiom='iphone', size=60, scale=3),
IconSize(idiom='ipad', size=20, scale=1),
IconSize(idiom='ipad', size=20, scale=2),
IconSize(idiom='ipad', size=29, scale=1),
IconSize(idiom='ipad', size=29, scale=2),
IconSize(idiom='ipad', size=40, scale=1),
IconSize(idiom='ipad', size=40, scale=2),
IconSize(idiom='ipad', size=76, scale=2),
IconSize(idiom='ipad', size=Fraction('83.5'), scale=2),
IconSize(idiom='ios-marketing', size=1024, scale=1),
IconSize(idiom='universal', platform='ios', size=1024, scale=1),
],
'macos': [
IconSize(idiom='mac', size=16, scale=1),
Expand Down

0 comments on commit 62039ad

Please sign in to comment.